Skip to content

Admin users page: show optional server notice - #212

Merged
mpge merged 1 commit into
mainfrom
feat/admin-users-notice
Oct 22, 2026
Merged

mpge merged 1 commit into
mainfrom
feat/admin-users-notice

Conversation

@mpge

@mpge mpge commented Oct 22, 2026

Copy link
Copy Markdown
Member

escalated-nestjs #180 sends an optional notice string to Escalated/Admin/Users/Index when the host has not configured a user-list hook.

  • When notice is non-empty, the page shows it as an informational role="status" message above the table (blue variant of the existing banner style) and drops the "No users found." row.
  • The text is server-worded: rendered with interpolation (escaped), not translated.
  • Absent / empty notice: unchanged behaviour.
  • pages.json regenerated (notice added to the page's props, not required).
  • New tests/pages/AdminUsersIndex.test.js (5 cases: notice shown, escaped, alongside rows, absent, empty).
  • CHANGELOG [Unreleased].

Admin/Users/Index accepts an optional notice string. escalated-nestjs
sends one when the host has not configured a user-list hook; the page
shows it as an informational status message above the table, in place
of the empty state. The text is rendered as given (escaped, not
translated). Without the prop the page is unchanged.
@mpge
mpge merged commit 7a386d9 into main Oct 22, 2026
11 checks passed
@mpge mpge mentioned this pull request Oct 22, 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