Skip to content

web/enterprise: add UI for pending offboardings - #24266

Merged
melizeche merged 53 commits into
mainfrom
offboarding-ui
Jul 27, 2026
Merged

melizeche merged 53 commits into
mainfrom
offboarding-ui

Conversation

@melizeche

@melizeche melizeche commented Jul 21, 2026 •

Copy link
Copy Markdown
Member

Details

UI to show the pending offboardings

PS: I wanted to play with stacked PRs too

offboardings

Linked issues

#23624


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)

Stack created with GitHub Stacks CLI • Give Feedback 💬

@BeryJu BeryJu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless there's an unusual circumstance, use of me should be avoided. Instead, wrap the base class WithSession

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread web/src/admin/lifecycle/utils.ts Resolved
Comment thread web/src/admin/lifecycle/utils.ts Resolved

@dominic-r dominic-r left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some feedback:

  • "Successfully deleted X Offboardings" needs to be pluralized to not have (s) and also the checkmark is missing:
Image
  • Also, the notifications in this PR don't seem to disappear automatically

  • I'm not sure I would see this under Events, probably Directory

@melizeche

melizeche commented Jul 24, 2026 •

Copy link
Copy Markdown
Member Author

@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)

image

Base automatically changed from user_offboarding to main July 27, 2026 18:44
@melizeche
melizeche requested a review from a team as a code owner July 27, 2026 18:44
@netlify

netlify Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 96900f1
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a67abe62b7e730007ca7037
😎 Deploy Preview https://deploy-preview-24266--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@melizeche
melizeche requested review from GirlBossRush and removed request for a team July 27, 2026 19:09
@melizeche

Copy link
Copy Markdown
Member Author

re: packages/client-ts/src/models/UserOffboarding.ts and packages/client-ts/src/models/UserOffboardingRequest.ts

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,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can omit the dots.

@kensternberg-authentik kensternberg-authentik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My one complaint is that "[Cancel] [Cancel Offboarding]" is a rather awkward pairing of buttons.

@melizeche
melizeche merged commit 630e9ec into main Jul 27, 2026
194 of 196 checks passed
@melizeche
melizeche deleted the offboarding-ui branch July 27, 2026 21:50
kensternberg-authentik added a commit that referenced this pull request Jul 27, 2026
* 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)
  ...
kensternberg-authentik added a commit that referenced this pull request Jul 27, 2026
* 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)
  ...
@melizeche melizeche self-assigned this Jul 28, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in authentik Core Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants