Repository navigation
web/enterprise: add UI for pending offboardings - #24266
Conversation
BeryJu
left a comment
There was a problem hiding this comment.
I dont love this being under events but I can't come up with a better suggestion soo yeah
|
|
||
| public connectedCallback(): void { | ||
| super.connectedCallback(); | ||
| me().then((session) => { |
There was a problem hiding this comment.
Unless there's an unusual circumstance, use of me should be avoided. Instead, wrap the base class WithSession
There was a problem hiding this comment.
Dropped me(). Didn't wrap WithSession because Table already does, so TablePage subclasses inherit currentUser (the guard now just uses this.currentUser?.pk).
Wrapping it again here would double-apply the mixin.
|
@dominic-r the (s) thing is a pattern that we use in other parts like Token(s), User(s), Group(s), Provider(s), proper pluralization is a separate cross-cutting change to DeleteBulkForm, and imho out of scope for this PR the checkmark thing is a general bug: when you have 2 toast notifications together the last one loses the checkmark (#24361)
|
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
re: The offboarding client models were generated on an older template and merged stale with #23624, so CI's schema check is red on main. Since that PR's already merged, I'm including the re-make gen here to fix it, it's just the generated client catching up to the current template, nothing UI-related. |
| export const OffboardingStatus: LitFC<OffboardingStatusProps> = ({ status }) => { | ||
| const props: LitPropertyRecord<AkStatusLabel> = match(status) | ||
| .with(OffboardingStatusEnum.Completed, () => ({ | ||
| ".good": true, |
kensternberg-authentik
left a comment
There was a problem hiding this comment.
My one complaint is that "[Cancel] [Cancel Offboarding]" is a rather awkward pairing of buttons.
* main: (70 commits) web/enterprise: add UI for pending offboardings (#24266) website: enterprise CTA (#24416) enterprise/core: add scheduled user offboarding (#23624) website/integrations: Dashy: cleanup (#23636) website/integrations: Arcane: cleanup (#23694) website/integrations: MeshCentral: cleanup (#23685) website/integrations: Proxmox VE: cleanup (#23703) web/elements: key the message list so stacked toasts don't share state (#24361) core, web: update translations (#24411) web/admin: better table filter (#24368) ci: fix source-docs publish (#24405) core, web: update translations (#24364) translate: Updates for project authentik and language sk_SK (#24406) brands: fix schema for current brand's flags (#24376) website/integrations: Google Workspace: cleanup (#23637) website/integrations: Fleet: cleanup (#23692) website/integrations: engomo: cleanup (#23644) website/integrations: Forgejo: cleanup (#23642) website/integrations: Organizr: cleanup (#23640) website/integrations: Linkwarden: cleanup (#23639) ...
* main: (70 commits) web/enterprise: add UI for pending offboardings (#24266) website: enterprise CTA (#24416) enterprise/core: add scheduled user offboarding (#23624) website/integrations: Dashy: cleanup (#23636) website/integrations: Arcane: cleanup (#23694) website/integrations: MeshCentral: cleanup (#23685) website/integrations: Proxmox VE: cleanup (#23703) web/elements: key the message list so stacked toasts don't share state (#24361) core, web: update translations (#24411) web/admin: better table filter (#24368) ci: fix source-docs publish (#24405) core, web: update translations (#24364) translate: Updates for project authentik and language sk_SK (#24406) brands: fix schema for current brand's flags (#24376) website/integrations: Google Workspace: cleanup (#23637) website/integrations: Fleet: cleanup (#23692) website/integrations: engomo: cleanup (#23644) website/integrations: Forgejo: cleanup (#23642) website/integrations: Organizr: cleanup (#23640) website/integrations: Linkwarden: cleanup (#23639) ...


Details
UI to show the pending offboardings
PS: I wanted to play with stacked PRs too
Linked issues
#23624
Checklist
make all)make docs)Stack created with GitHub Stacks CLI • Give Feedback 💬