Skip to content

web: add grid/list view toggle to user application library - #22132

Merged
GirlBossRush merged 3 commits into
goauthentik:mainfrom
GirlBossRush:issue-22126-add-list-view-toggle-to-application
Jul 1, 2026
Merged

GirlBossRush merged 3 commits into
goauthentik:mainfrom
GirlBossRush:issue-22126-add-list-view-toggle-to-application

Conversation

@GirlBossRush

@GirlBossRush GirlBossRush commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #22126.

Adds a grid ↔ list view toggle to the user-facing application library so customers with naturally long application names (e.g. AWS accounts displayed as <account-name> (<account-id>)) can scan their apps without name truncation.

  • New icon button in the "My Applications" header swaps between grid (default) and list mode.
  • Preference persisted per-browser via StorageAccessor.local (ak-library-view-mode), mirroring the existing RememberMe pattern.
  • List mode renders each app as a wide row using a CSS subgrid so icon, name+meta, and action menu line up consistently across rows. Full application name displayed without clamp; description, publisher, and slug appear inline as supplementary metadata for substring search use cases (e.g. AWS account ID alongside account name).
  • The kebab action menu (CardMenu) is shared with the grid card and re-anchored to the kebab's right edge in list mode so the popover stays inside the viewport.

Screenshots

Screenshot 2026-05-07 at 21 21 59 Screenshot 2026-05-07 at 21 22 15

Files

  • web/src/user/LibraryPage/ak-library-impl.ts — toggle button, view-mode state, persistence
  • web/src/user/LibraryPage/ak-library-impl.css — header layout for the toggle control
  • web/src/user/LibraryPage/ApplicationList.ts / .css — list-mode container styles
  • web/src/user/LibraryPage/LibraryAppRow.ts — new list-row component
  • web/src/user/LibraryPage/types.ts — view-mode type
  • blueprints/example/long-named-aws-applications.yaml — 25-app fixture blueprint

@GirlBossRush
GirlBossRush requested review from a team as code owners May 7, 2026 19:35
@netlify

netlify Bot commented May 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit b29d1e0
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/69fd26d5d05b8d000895954a
😎 Deploy Preview https://deploy-preview-22132--authentik-integrations.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.

@netlify

netlify Bot commented May 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit a6676dd
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a426ccf54f3260008c4eca7
😎 Deploy Preview https://deploy-preview-22132--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.

@GirlBossRush
GirlBossRush force-pushed the issue-22126-add-list-view-toggle-to-application branch from 6150a36 to b66ded0 Compare May 7, 2026 19:38
@netlify

netlify Bot commented May 7, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 6150a36
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69fce9690869bc00080744bd
😎 Deploy Preview https://deploy-preview-22132--authentik-docs.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.

@netlify

netlify Bot commented May 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit b29d1e0
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69fd26d5ca6aed0008df1df0
😎 Deploy Preview https://deploy-preview-22132--authentik-docs.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.

@codecov

codecov Bot commented May 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.26%. Comparing base (a382472) to head (a6676dd).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22132      +/-   ##
==========================================
+ Coverage   93.15%   93.26%   +0.10%     
==========================================
  Files        1037     1037              
  Lines       60658    60658              
  Branches      400      400              
==========================================
+ Hits        56505    56570      +65     
+ Misses       4153     4088      -65     
Flag Coverage Δ
conformance 36.30% <ø> (+<0.01%) ⬆️
e2e 41.51% <ø> (+0.55%) ⬆️
integration 32.27% <ø> (-0.49%) ⬇️
rust 0.00% <ø> (ø)
unit 92.34% <ø> (+<0.01%) ⬆️
unit-migrate 92.38% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@GirlBossRush
GirlBossRush removed the request for review from a team May 7, 2026 19:53
@GirlBossRush
GirlBossRush force-pushed the issue-22126-add-list-view-toggle-to-application branch from b66ded0 to b29d1e0 Compare May 7, 2026 23:57
…ik#22126)

Implements the long-requested list view for the user-facing application
library so customers with naturally long application names (e.g. AWS
accounts of the form `<account-name> (<account-id>)`) can scan their
apps without name truncation.

- New icon button in the page header swaps between grid (default) and
  list mode; preference persisted per-browser via StorageAccessor.local
  ("ak-library-view-mode") to mirror the RememberMe pattern.
- List mode renders each app as a wide row using a CSS subgrid so icon,
  name+meta, and action menu line up consistently across rows. The full
  application name is shown without clamp; description, publisher, and
  slug appear inline as supplementary metadata.
- The kebab action menu (CardMenu) is shared with the grid card,
  re-anchored to the kebab's right edge in list mode so the popover stays
  inside the viewport.
- Demo blueprint `blueprints/example/long-named-aws-applications.yaml`
  ships 25 fixture applications with title-cased Greek-prefixed names
  spread across five groups, ~19 with brand image icons and the rest
  using letter insignias. Marked `instantiate: "false"` so it stays out
  of fresh dev environments unless explicitly applied.

Co-Authored-By: Agent (authentik-i22126-animated-specific-xanthous) <[email protected]>
@GirlBossRush
GirlBossRush force-pushed the issue-22126-add-list-view-toggle-to-application branch from b29d1e0 to 898ae63 Compare June 8, 2026 20:40
@GirlBossRush GirlBossRush self-assigned this Jun 9, 2026
@GirlBossRush GirlBossRush added the area:frontend Features or issues related to the browser, TypeScript, Node.js, etc label Jun 9, 2026
@GirlBossRush GirlBossRush moved this from Todo to Needs review in authentik Core Jun 9, 2026

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

I made three comments, all of which are about the maintainability of this beast. None of them are broken, so I've approved, but do consider them.

height: 1.5rem;
}

@container (width < 800px) {

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 we invert this? "When the width is greater than or equal to?" Especially in the User app, the "mobile first" approach is really going to be valuable going forward.

<path
d="M10 6h18v2H10zM10 24h18v2H10zM10 15h18v2H10zM4 15h2v2H4zM4 6h2v2H4zM4 24h2v2H4z"
/>
</svg>`,

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.

[Strokes chin] Hmm, ze storage of ze icons in ze app precludes letting ze user choose zir own icons, which is a project we hope to integrate in ze near future, no?

});
},
)}
${isList

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.

Ah, I figured out what was bugging me about this. You have two different renderers here kinda intertwingled, which is why you have to ask isList? twice. If you separate them out into different units chosen with a ternary, you would probably have an easier time reading this in the future.

@github-project-automation github-project-automation Bot moved this from Needs review to In Progress in authentik Core Jul 1, 2026
@GirlBossRush
GirlBossRush merged commit 28841fc into goauthentik:main Jul 1, 2026
105 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Features or issues related to the browser, TypeScript, Node.js, etc

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Add list view toggle to application library for long application names

3 participants