Fix/2155 - #323
Merged
Merged
Conversation
Member
|
Claude finished @conradmugabe's task —— View job E2E Coverage Review
Result: ✅ PR approved. No new app routes were introduced and all existing coverage (545 checkpoints) remains intact. |
mamigot
approved these changes
Jul 10, 2026
mamigot
left a comment
Member
There was a problem hiding this comment.
✅ E2E Coverage — No Issues
No new app routes were introduced. All existing coverage is intact.
A visitor arriving via a shareable link (`?token=...`) should be able to chat regardless of RBAC. The backend validates the token on session creation and only returns a sessionId when it accepts it, so a token paired with an active session bypasses the RBAC chat gate. A token alone is not enough (invalid token, or the brief window before create-session resolves), so the input stays gated until the session exists. The RBAC "no permission" placeholder is suppressed whenever a token is present, since RBAC does not apply to share-link visitors. Also extract `isSendDisabled` (RBAC gate + active session) to replace the duplicated `isChatDisabledByRbac || !sessionId` check across the submit guard and send/tool buttons, and add unit coverage for the bypass. This also repairs the chat-input-form test suite, which was failing on main for lack of next/navigation and useChatPrivacy mocks. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The pre-commit hook runs prettier over the whole tree; CHANGELOG.md on main uses `*` list bullets which prettier rewrites to `-`. Isolate that unrelated reformat here so it stays out of the journey 64 test commits. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…lpers Extend EmbedTab with the helpers journey 64 needs to drive the Embed tab's access controls end-to-end: setWhoCanView/setWhoCanChat (Radix Select option resolution), the shareableLinkUrlBlock/whoCanViewSelect/whoCanChatSelect locators, and enableShareableLink/getShareableLinkUrl/getShareableLinkToken for minting and reading a shareable link. Reuses the existing getShareableLinkState/toggleShareableLink primitives. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Cover issue #2155: a shareable-link ?token= lets a non-admin who lacks the RBAC #chat permission chat, but only once the backend accepts the token and a session is created. Three checkpoints against a live backend, each provisioning its own Administrators-view / Authenticated-Users-chat mentor via the Embed tab: valid token enables chat (shl-01), invalid token stays disabled (shl-02, token presence alone must not unlock), no token stays disabled with the RBAC denial placeholder (shl-03). Non-landing is a hard failure — the suite never treats a flow that didn't reach its deterministic state as a pass. Mentors are reaped via MentorTracker + the name-pattern sweeper backstop. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add the shareable-link-rbac-bypass journey (shl-01..03) to coverage.json and COVERAGE.md and refresh the summary totals. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Member
|
Claude finished @conradmugabe's task —— View job E2E Coverage Review
Result: ✅ PR approved. No new app routes were introduced and coverage improved from 583 to 586 checkpoints (+3). |
mamigot
approved these changes
Jul 24, 2026
mamigot
left a comment
Member
There was a problem hiding this comment.
✅ E2E Coverage — No Issues
No new app routes were introduced. All existing coverage is intact.
sonegillis1
approved these changes
Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
Changes
Screenshots
Screencast.from.2026-07-24.03-21-10.mp4