Skip to content

Admin: read-only 'view as this user' - #223

Merged
apedintensor merged 1 commit into
mainfrom
design/support-view
Oct 24, 2026
Merged

apedintensor merged 1 commit into
mainfrom
design/support-view

Conversation

@apedintensor

Copy link
Copy Markdown
Member

Frontend for h3-studio#552 (backend must deploy first).

  • Admin, Users, Manage: '以 TA 的身份只读查看' (non-admin users only; needs the reason field). It starts a view, stores it in sessionStorage (this tab only) and opens the site.
  • cloud-client sends X-Support-View on every request and support_view= on native media URLs. support_view_* refusals show plain messages ('只读查看中,不能修改。').
  • A red banner on every page shows whose account it is and the minutes left, with 'End'. End posts without the view header and returns to the Users page.
  • Tests: support-view.test.js (expiry, malformed id, end). Suite 880 pass, lint/format clean.

🤖 Generated with Claude Code

…coped header)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@apedintensor
apedintensor merged commit 7c39588 into main Oct 24, 2026
2 checks passed
apedintensor added a commit to inkseq/h3-studio that referenced this pull request Oct 24, 2026
Syncs inkseq/inkseq-design#223.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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