feat: move update from navigation to app #2997

Merged
dpschen merged 3 commits from dpschen/frontend:feature/move-update-to-app into main 2023-02-03 16:34:49 +00:00
Member
No description provided.
dpschen added the
area/internal-code
label 2023-01-23 21:24:04 +00:00
konrad was assigned by dpschen 2023-01-23 21:24:04 +00:00
Member

Hi dpschen!

Thank you for creating a PR!

I've deployed the changes of this PR on a preview environment under this URL: https://2997-feature-move-update-to-app--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.

Have a nice day!

Beep boop, I'm a bot.

Hi dpschen! Thank you for creating a PR! I've deployed the changes of this PR on a preview environment under this URL: https://2997-feature-move-update-to-app--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/. Have a nice day! > Beep boop, I'm a bot.
Owner

Any way to test this?

Any way to test this?
Author
Member

I guess you refer mostly to the changes in Update.vue, right?
You can build a version then serve it locally via https-localhost.

Open the app and let the service worker load the stuff.

Rebuild the app with a mini change and serve it again. The update should appear.

I guess you refer mostly to the changes in `Update.vue`, right? You can build a version then serve it locally via [https-localhost](https://github.com/daquinoaldo/https-localhost). Open the app and let the service worker load the stuff. Rebuild the app with a mini change and serve it again. The update should appear.
konrad requested changes 2023-01-25 14:13:45 +00:00
konrad left a comment
Owner

Looks like the update notice is a) only visible when not logged in and b) even there not fully:

image

Looks like the update notice is a) only visible when not logged in and b) even there not fully: ![image](/attachments/6ca1b6ab-1303-4201-9226-b6fcf7967acf)
Owner

Fixed the z-index on the banner so that now it stays on top at all times.

Fixed the z-index on the banner so that now it stays on top at all times.
dpschen was assigned by konrad 2023-01-26 12:11:13 +00:00
Author
Member

I'm confused that the the dark version works without using :global() since the style is scoped and the dark class is neither set from inside nor on the element itself.

I'm confused that the the dark version works without using `:global()` since the style is scoped and the `dark` class is neither set from inside nor on the element itself.
Owner

I'm confused that the the dark version works without using :global() since the style is scoped and the dark class is neither set from inside nor on the element itself.

It actually does not work at all with the :global() helper. The generated class looks like this without it: .dark .update-notification[data-v-4c295d9f] - the scoped data-attribute is only applied to the .update-notification class. With the :global() helper it compiles to .dark only.

This might be a bug in the helper but I'd say we can leave it like this for now.

> I'm confused that the the dark version works without using `:global()` since the style is scoped and the `dark` class is neither set from inside nor on the element itself. It actually does not work at all with the `:global()` helper. The generated class looks like this without it: `.dark .update-notification[data-v-4c295d9f]` - the scoped data-attribute is only applied to the `.update-notification` class. With the `:global()` helper it compiles to `.dark` only. This might be a bug in the helper but I'd say we can leave it like this for now.
konrad approved these changes 2023-01-26 14:49:38 +00:00
Author
Member
Seems like a bug: https://vuejs.org/api/sfc-css-features.html#global-selectors
dpschen reviewed 2023-01-27 15:01:20 +00:00
src/App.vue Outdated
@ -1,5 +1,6 @@
<template>
<ready>
<Update/>
Author
Member

If we move <Update> below <Notification> can we then remove the z-index?.

We might want to move <KeyboardShortcuts> above <Notification> at the same time. I'm unsure but couldn't the current order make the Shortcuts appear above the Notifications?

If we move `<Update>` below `<Notification>` can we then remove the z-index?. We might want to move `<KeyboardShortcuts>` above `<Notification>` at the same time. I'm unsure but couldn't the current order make the Shortcuts appear above the Notifications?

That seems to work on the login page but does not in the rest of Vikunja. Let's leave it with the z-index.

I'm unsure but couldn't the current order make the Shortcuts appear above the Notifications?

Not sure, I checked it and it seems to work fine like it is now.

That seems to work on the login page but does not in the rest of Vikunja. Let's leave it with the z-index. > I'm unsure but couldn't the current order make the Shortcuts appear above the Notifications? Not sure, I checked it and it seems to work fine like it is now.
dpschen force-pushed feature/move-update-to-app from 28fad65d9d to 058cfe1318 2023-02-03 16:05:17 +00:00 Compare
dpschen force-pushed feature/move-update-to-app from 058cfe1318 to eaeddda4e4 2023-02-03 16:25:50 +00:00 Compare
dpschen scheduled this pull request to auto merge when all checks succeed 2023-02-03 16:26:38 +00:00
Author
Member

I found out why the dark styles were broken. I think I found out why we had those bulma-css-variable problems…

But not in this pull request.

I found out why the dark styles were broken. I think I found out why we had those bulma-css-variable problems… But not in this pull request.
dpschen merged commit eaeddda4e4 into main 2023-02-03 16:34:49 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.