Skip to content

[SeerrNG #770] feat(lumen): preview as the real member, settings search on every admin page, no dead-end sections - #46

Closed
ncbudd wants to merge 1 commit into
mainfrom
seerrng-pr-770
Closed

ncbudd wants to merge 1 commit into
mainfrom
seerrng-pr-770

Conversation

@ncbudd

@ncbudd ncbudd commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Mirror of snapetech-org/seerrng#770. The lumen/ tree is identical to that PR's branch. Review and discussion happen upstream; this closes once upstream merges and the sync picks it up.

Builds on snapetech-org/seerrng#768, #767 and #765 (mirrors: [SeerrNG #768], [SeerrNG #767] and [SeerrNG #765] here), so this diff also includes them.

Summary

Builds on #768 (settings steps 3-6), which builds on #767 and #765, so please merge those first; until then this diff also shows their commits. Lumen only, no server changes.

From a server admin setting up members for the first time: Preview as Standard still showed the Download Inbox and everyone's requests, settings search disappeared once you left Overview, and Member experience opened a page with one card that only linked to Member experience.

What admins see

  • Preview is the member's view. A profile or starting-point preview uses the server's default member permissions; a person preview uses that person's. Administration, the Download Inbox, Indexer Search and the like disappear exactly as they would for the member, request buttons follow their request permissions, and Requests, Issues and book series requests show only what that member could see. The banner says which permissions are in use.
  • The preview is a view only: the previewed permissions stay in memory, are never sent or stored, and the server keeps enforcing the admin's real permissions. Exit returns to the page the preview started from. A Kids preview now survives a reload (the stored preview only accepted simple/standard/full).
  • Profile options that also need a permission say so, e.g. "Also needs the Manage Downloads permission. New members don't have it." with a link to Default permissions. Each note reuses the exact check the menu uses (lumen/src/settings/permissionGates.ts), so the two cannot drift. Member experience explains the split in one line: profiles choose what members see, permissions choose what they may do.
  • Settings search on every Administration page, in the same place. On phones and small tablets it lives in the Sections drawer, so pages stay short. Searches like "download inbox", "everyone's requests" and "preview" find the right setting.
  • No dead-end section pages: a section with one page (Member experience, Notifications) opens that page, and the rail no longer lists it twice.

Release notes: release-notes/lumen-preview-and-admin-search.md.

Tested: Lumen tsc, ESLint, i18n:check, unit tests (new lumen/tests/round8.test.mjs: preview storage incl. Kids and the return path, return-path sanitising, single-page sections, the new searches), and the full Playwright suite on desktop, iPhone, Android and tablet, with a new preview test in experience-profiles.spec.ts.

@ncbudd ncbudd closed this Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant