Conversation
4ccb852 to
0b80215
Compare
| items={[ | ||
| { | ||
| category: NavigationCategory.Management, | ||
| requiresAttention: ctx.storeNotifications | ||
| .getNotifications() | ||
| .some(n => n.kind === 'access-lists'), | ||
| }, | ||
| { category: NavigationCategory.Resources }, | ||
| ]} |
There was a problem hiding this comment.
woops... this should've been in the previous commit
8915843 to
5238f5d
Compare
|
friendly ping @gzdunek @ryanclark |
There was a problem hiding this comment.
FYI we already have Notifications in shared (you can find them in storybook). We are using them in Connect and Isaiah used them for a desktop session warnings. I'm wondering if these things could (and should) be merged.
I also know that our design team is working on a design system for notifications.
Probably these things are different enough that they should be separated (notifications from shared are more like alerts, while your notifications are more like an inbox). I'm only wondering if there is a long term vision in this - for example, you when you get a notification, you first see it as an alert, and then it goes to that inbox.
this seems like a xin/kenny question, but likely it will evolve in the future as we support more types of notification. |
Also fixes topbar.test act warnings (even though tests passed)
- Made store notification type more generic - Drop opactiy styling for top bar drop downs - Use assertUnreachable in switch cases
8d421c6 to
491aa73
Compare
gzdunek
left a comment
There was a problem hiding this comment.
With some minor comments.
There was a problem hiding this comment.
I would just call it assertUnreachable.ts
|
|
||
| import useAttempt from 'shared/hooks/useAttemptNext'; | ||
| import { getErrMessage } from 'shared/utils/errorType'; | ||
| import { getErrMessage } from '@gravitational/shared/utils/errorType'; |
There was a problem hiding this comment.
The import should be from shared/utils/errorType, not @gravitational/shared/utils/errorType.
It should be fixed in other changed files too.
part of https://github.com/gravitational/teleport.e/issues/2242
note: recommend reviewing by commit
access_listnotifications atm (for review due dates), and first iteration, it will bedumbin that we just fetch it upon init, and updates whenever a user views, lists, edits access list (this is in another PR)attention dotrenderswith the brain:
Can view demos in storybook: