Repository navigation
feat: session token visibility (admin user tab + account console) - #3421
Conversation
…index-page button style
A self-service reader cannot include the client relation (the relations read gate requires CLIENT_READ), so token rows carried only raw client UUIDs for regular users. The repository now always joins a client summary (id, name, displayName - the consent-list shape) and the client relation leaves the schema allow-list, so include=client can no longer force the full-column join for anyone.
Tailwind emits .flex in @layer utilities; the identical unlayered rule from the pre-Tailwind generics sheet took cascade priority over every layered utility changing display on a .flex element, so responsive patterns like sm:contents or sm:hidden silently never applied.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughSession-token APIs now return safe client summaries. Account-console sessions display expandable token inventories. Admin session pages add detail links. The theme removes an unlayered ChangesSession token inventory
Theme display utility correction
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant SessionPage
participant SessionTokenController
participant sessionTokenRepository
SessionPage->>SessionTokenController: Request tokens for a session
SessionTokenController->>sessionTokenRepository: Find session tokens
sessionTokenRepository-->>SessionTokenController: Return tokens with client summaries
SessionTokenController-->>SessionPage: Return paginated token data
SessionPage-->>SessionPage: Classify status and render details
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
authup
@authup/client-account-console
@authup/client-admin-console
@authup/client-auth-console
@authup/server-core
@authup/access
@authup/client-web-kit
@authup/client-web-kit-theme
@authup/client-web-nuxt
@authup/client-web-theme
@authup/core-http-kit
@authup/core-kit
@authup/core-realtime-kit
@authup/errors
@authup/i18n
@authup/kit
@authup/server-adapter-kit
@authup/server-adapter-node
@authup/server-adapter-socket-io
@authup/server-adapter-web
@authup/server-kit
@authup/server-test-kit
@authup/specs
commit: |
Summary
Session-token visibility everywhere it was missing, plus two fixes found on the way.
/sessions: the per-row details action was a bare link with no button classes and rendered unstyled; it now uses the standard outline button pattern like every other index page./sessions/:iddetail page, which renders the session's token inventory./session-tokens: reads now always join a client SUMMARY (id,name,displayName; the consent-list shape).clientleft the schema's relations allow-list, so?include=clientcan no longer force the full-column join (redirect patterns, grant types, secret storage flags, accessPolicyId) for anyone, while a self-service reader withoutCLIENT_READstill sees application names on its own token rows./account/sessions: each session card expands into its own token table (application, kind, created/expires, status; column-header grid on desktop, two-line stack on narrow screens). Deliberately no per-token ip/user-agent: server-side renderer refreshes stamp values likenode, which would read as an unknown device to an end user..flex { display: flex }fromgenerics.css. It duplicated Tailwind's own utility, but as an unlayered rule it beat every layered utility changingdisplayon a.flexelement, so responsive patterns likesm:contentsorsm:hiddensilently never applied in any console.Tests
include=clientcannot widen it beyond the summary shape.Summary by CodeRabbit
New Features
Bug Fixes