GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add case handover access gate by Storypapst · Pull Request #275 · OpenResilienceInitiative/ORISO-Frontend

Conversation

@Storypapst

@Storypapst Storypapst commented Jun 25, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Summary

  • Add the case handover access gate so locked cases show metadata and request controls without rendering chat history.
  • Add reason selection, required explanation, access states, batch selection flow, and handover notification descriptors.
  • Add tests for handover candidate/status helpers and preserve existing notification registry coverage.

Validation

  • npm run lint:scripts
  • npx vitest run src/components/session/caseHandoverHelpers.test.ts src/components/notificationsCenter/eventDescriptors/registry.test.ts
  • npm run build
  • git diff --check

Notes

This is a draft because Pre-Dev currently deploys fixed :dev images. End-to-end Pre-Dev validation can run after merge/dev-image build or after an explicit temporary custom-image rollout.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added a case-handover access workflow across sessions, including single requests, eligible consultant batch requests, and client consent approve/decline decisions.
    • Introduced a case-handover gate UI with reason selection, explanation input, and clear pending/denied states.
    • Updated the notifications center to support new handover consent events with inline approve/decline actions.
  • Bug Fixes
    • Improved session loading to wait for handover status before revealing or locking content.
  • Tests
    • Expanded coverage for new handover notification event types and helper logic.
  • Style / Localization
    • Added consent/batch/gate UI styles and new English/German handover copy.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@coderabbitai

coderabbitai Bot commented Jun 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Review Change Stack

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 842c291e-0589-4daf-af63-0c83a8574ed9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds case-handover API wrappers and endpoint entries, shared handover predicates and request UI, session-stream gating, batch selection in the sessions list, locked-item controls, and consent actions in notifications, plus supporting localization, registry, and styles.

Changes

Case handover workflow

Layer / File(s) Summary
API surface and endpoints
src/api/apiCaseHandover.ts, src/api/index.ts, src/resources/scripts/endpoints.ts
Adds case-handover payload types, endpoint builders, HTTP wrappers, and the barrel re-export.
Candidate rules and tests
src/components/session/caseHandoverHelpers.ts, src/components/session/caseHandoverHelpers.test.ts
Adds the candidate/pending/denied predicates and test coverage for the new status rules.
Candidate session resolution
src/hooks/useSession.tsx
Falls back to case-handover candidate lookup when primary session loading returns no active session.
Handover request form
src/components/session/CaseHandoverGate.tsx, src/components/session/caseHandoverGate.styles.scss, src/resources/i18n/en/common.json, src/resources/i18n/de/common.json
Renders the session-level handover request form, loads reasons, submits access requests, and adds the shared case-handover copy and styles.
Session access gating
src/components/session/SessionStream.tsx
Loads case-handover status before messages, blocks content while access is unresolved or denied, and renders the gate or loading state.
Batch handover selection
src/components/sessionsList/SessionsList.tsx, src/components/sessionsList/sessionsList.styles.scss
Fetches candidate sessions and reasons, prepends candidates into the list, and renders the batch request panel and submission flow.
Locked session list items
src/components/sessionsListItem/SessionListItemComponent.tsx, src/components/sessionsListItem/sessionsListItem.styles.scss
Fetches per-item handover status, hides locked previews, and renders the case-handover action button and batch checkbox.
Consent notifications
src/components/notificationsCenter/NotificationsCenter.tsx, src/components/notificationsCenter/eventDescriptors/registry.ts, src/components/notificationsCenter/eventDescriptors/registry.test.ts, src/components/notificationsCenter/notificationsCenter.styles.scss, src/resources/i18n/en/common.json, src/resources/i18n/de/common.json
Adds the handover notification descriptors, consent decision handler, approve/decline actions, and the related notification strings and styles.

Estimated code review effort: 4 (Complex) | ~60 minutes

Possibly related issues

  • Track case handover KDG implementation ORISO-UserService#187: Covers the same case-handover flow family, including request submission, consent handling, batch access, and locked-content UI.

Possibly related PRs

  • OpenResilienceInitiative/ORISO-Frontend#249: Extends the notifications-center event-descriptor registry surface that this PR also updates with new handover event types.

Suggested labels: coderabbit

Suggested reviewers: shazia-k, Hassan9215, softwaredevzestgeek

🚥 Pre-merge checks | ✅ 5 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Shared Ui Architecture ⚠️ Warning Case handover gate and batch UI reimplement buttons, radios, and textarea with bespoke SCSS instead of shared Button/Textarea/RadioButton primitives. Refactor these controls onto shared form/button components and shared focus/active/layout tokens; dedupe consentActions/detailActions styling.
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise, conventional, and clearly names the case handover access gate area of the change.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Validation Evidence ✅ Passed PASS: PR adds Vitest coverage for new case-handover helpers/registry and the description lists exact validation commands run.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/case-handover-20260625054644

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.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst
Storypapst requested review from shanzaeimran and shazia-k June 25, 2026 04:15
@Storypapst Storypapst mentioned this pull request Jun 25, 2026
Track case handover KDG implementation OpenResilienceInitiative/ORISO-UserService#187
Closed
4 tasks
@Storypapst

Storypapst commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

Tracked in OpenResilienceInitiative/ORISO-UserService#187

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst

Storypapst commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Jun 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst

Storypapst commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

Cursor thermonuclear review (vs origin/dev)

Verdict: Solid feature scope — access gate, batch flow, notification descriptors, and helper tests align with existing ORISO patterns. Privacy boundary for locked sessions (empty messages, hidden list preview) is respected.

Validation run: npm run lint:scripts (0 errors), vitest run for caseHandoverHelpers.test.ts + registry.test.ts (19/19 passed).

Auto-fix pushed (6aa51b4)

  • SessionStream read receipt: fetchSessionMessages now returns whether content was actually loaded. setSessionRead() is skipped when the case-handover gate blocks visibility (including while status is still loading). Prevents marking sessions read before the counsellor can see chat history.

Review notes (no change)

  • API error fallback: apiGetCaseHandoverStatus failures map to DENIED in both SessionStream and list items — consider softer handling for transient/network errors in a follow-up.
  • Batch UX: batch mode disables selection for pending requests but not denied ones; confirm product intent.
  • A11y: handover reason radiogroup in CaseHandoverGate could use an aria-label / aria-labelledby.
  • Draft PR: E2E on Pre-Dev still blocked until dev image includes backend endpoints (as noted in PR body).

No merge performed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst

Storypapst commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

Thermonuclear review (base: dev)

Verified

  • Access gate / privacy: SessionStream blocks Matrix + REST history when canViewContent is false; list search stays metadata-only; locked list items show a placeholder instead of decrypting previews.
  • Read receipts: setSessionRead() only runs when message load succeeds (loaded === true), including after the handover gate resolves.
  • Direct session routes: useSession falls back to apiGetCaseHandoverCandidates when the normal room lookup misses — needed for handover-only sessions.
  • Timeline: Three new case.handover.* descriptors registered; registry + i18n tests pass (19/19).
  • Build: npm run build succeeds on review HEAD.

Fix pushed

  • b3df57f — Clear injected handover search candidates whenever the toolbar query is empty. Previously, clearing search while a person filter stayed active could leave stale API results in the merged list.

Non-blocking follow-ups

  • N+1 status polling: Each SessionListItemComponent calls apiGetCaseHandoverStatus independently — consider batching/caching for long lists.
  • Fail-closed errors: Status fetch failures map to DENIED; transient network errors may look like a hard denial until retry.
  • Consent UX: NotificationsCenter consent actions have no user-visible error path on API failure.
  • A11y / tokens: Handover gate radiogroup lacks an aria-label; consent buttons use hardcoded hex colors instead of shared tokens.
  • Pre-Dev E2E: Still blocked on :dev image rollout per PR notes.

Not merged.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst

Storypapst commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Jun 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot requested changes Jun 25, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 13

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/hooks/useSession.tsx (1)

95-117: 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

Unwrapped await in the success path lets a failed candidate lookup fall through to a retry.

At line 108 the candidate lookup is awaited without a guard, so a non-abort rejection rejects the whole .then and lands in .catch (line 118), which then calls loadCaseHandoverCandidateSession a second time. This is a redundant network round-trip on the common "no active session" path. Consider guarding it (the .catch(() => false) you already use at line 144) so a failed candidate fetch resolves to false and falls through to setReady(true) instead of re-entering the error flow.

♻️ Suggested guard
 				} else {
 					if (
 						sessionId &&
 						(await loadCaseHandoverCandidateSession(
 							abortController.current?.signal
-						))
+						).catch(() => false))
 					) {
 						return;
 					}
 				}
 				setReady(true);
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/hooks/useSession.tsx` around lines 95 - 117, The no-active-session path
in useSession should not let a failed loadCaseHandoverCandidateSession call
reject the .then chain and trigger the .catch retry path. Update the candidate
lookup inside the activeSession else branch in useSession so it is guarded the
same way as the later retry logic, returning false on non-abort failures instead
of throwing; this lets setReady(true) run once and avoids a second network call.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/api/apiCaseHandover.ts`:
- Around line 5-12: The `CaseHandoverStatusValue` union is widened by the
trailing broad string type, so the named statuses in `apiCaseHandover` no longer
provide useful narrowing for `isCaseHandoverPending` and `isCaseHandoverDenied`.
Update the type definition to keep the literal members as a real union and
replace the broad string fallback with an explicit unknown-value escape hatch,
then make sure the gating helpers still reference `CaseHandoverStatusValue` so
autocomplete and typo protection are preserved.
- Around line 79-122: The case-handover API paths are split between
session-based and static base routes, so verify the backend contract and
consolidate the route definitions in endpoints.ts if they are meant to represent
the same feature; update apiGetCaseHandoverStatus, apiRequestCaseHandoverAccess,
apiRequestCaseHandoverBatchAccess, and apiDecideCaseHandoverClientConsent to use
the same agreed base path source. Also tighten CaseHandoverStatusValue by
removing the broad string fallback unless unknown statuses are expected, and
handle any truly unknown backend values explicitly where the status is consumed.

In `@src/components/notificationsCenter/notificationsCenter.styles.scss`:
- Around line 301-321: The consent button styles in
notificationsCenter.styles.scss are using a one-off approve red instead of the
existing primary-action red, and they are missing a visible keyboard focus
state. Update the `&__consentButton--approve` variant to reuse the same primary
accent color already used by `__openButton` and `__chatComposerSend`, and add a
`:focus-visible` treatment for `&__consentButton` that matches the shared focus
pattern used by `__chip` and `__search` via `list-item-focus-treatment`.
- Line 532: The notifications center stylesheet uses Media Queries Level 4 range
syntax in two `@media (width <= 1200px)` blocks, which breaks IE11 support.
Update both responsive rules in the notifications center styles to use the
standard `@media (max-width: 1200px)` form so the same layout behavior works
with the project’s IE11 target.

In `@src/components/notificationsCenter/NotificationsCenter.tsx`:
- Around line 351-370: The handleCaseHandoverConsentDecision flow is missing
rejection handling, so apiDecideCaseHandoverClientConsent errors become
unhandled and the UI gives no feedback. Update the promise chain in
NotificationsCenter so the request includes a .catch() after the .then() and
before the .finally(), and surface the failure to the user while still resetting
caseHandoverConsentSubmitting. Use the existing
handleCaseHandoverConsentDecision, apiDecideCaseHandoverClientConsent,
markNotificationAsRead, and refreshNotificationFeed symbols to locate the flow.

In `@src/components/session/CaseHandoverGate.tsx`:
- Around line 118-156: Add programmatic accessible names for both controls in
CaseHandoverGate: the div with role="radiogroup" needs an explicit
label/labelledby tied to the reason group, and the explanation textarea needs a
real label instead of relying on placeholder text. Update the JSX around the
reasons.map block and the textarea so screen readers can announce both controls
clearly, while keeping the existing keyboard/radio behavior intact.

In `@src/components/sessionsList/sessionsList.styles.scss`:
- Around line 106-214: The new case-handover batch styles in
sessionsList.styles.scss use several hardcoded hex colors instead of the shared
design tokens already used elsewhere in this file. Update the styles in the
caseHandoverBatch* block to reuse the existing session/theme variables and
tokenized colors, and make the toggle/submit primary action use the same brand
red as the other primary CTAs in sessionsList so the controls match
consistently. Focus on the selectors like __caseHandoverBatchToggle,
__caseHandoverBatchPanel, __caseHandoverBatchReasons,
__caseHandoverBatchExplanation, and __caseHandoverBatchActions.

In `@src/components/sessionsList/SessionsList.tsx`:
- Around line 1995-2026: The batch reason controls in SessionsList need
programmatic accessibility labels. Update the case handover radio container to
expose a group name using role="radiogroup" with aria-label, or replace it with
a fieldset/legend around the caseHandoverReasons mapping. Also add an aria-label
to the caseHandoverExplanation textarea so it has a readable name beyond the
placeholder.

In `@src/components/sessionsListItem/SessionListItemComponent.tsx`:
- Around line 259-288: The `useEffect` in `SessionListItemComponent` is treating
every failure from `apiGetCaseHandoverStatus` as an authoritative denial, which
mislabels transient errors as `DENIED`. Update the `catch` path to distinguish
non-FORBIDDEN/network failures from true access denial, and only set `status:
'DENIED'` when the API explicitly indicates denial; otherwise preserve a
neutral/unknown state (for example `null` or `UNKNOWN`) and keep the existing
cancellation guard and `setCaseHandoverStatus` flow intact.
- Around line 259-288: The case handover status fetch in
SessionListItemComponent is causing an N+1 request pattern because each rendered
item calls apiGetCaseHandoverStatus independently. Move that orchestration into
SessionsList, keep a shared statusBySessionId map in the parent, and pass the
resolved status down to SessionListItemComponent as a prop instead of fetching
in its useEffect. Add deduplication or debouncing in the parent so repeated
renders or fast scrolling do not trigger redundant requests, and update the
child component to only consume the provided status.
- Around line 1586-1620: The batch-mode case handover button in
SessionListItemComponent currently exposes selection only through visual styling
and an aria-hidden span, so add an accessible pressed state to the existing
button. Update the button in the case handover action area to set aria-pressed
based on caseHandoverSelected when caseHandoverBatchMode is active, using the
existing handleCaseHandoverActionClick and
caseHandoverBatchMode/caseHandoverSelected logic.

In `@src/components/sessionsListItem/sessionsListItem.styles.scss`:
- Around line 773-778: Stylelint is flagging the `sessionsListItem.styles.scss`
rules because the `currentColor` keyword casing is not accepted; update the
`sessionsListItem` style block to use the lowercase keyword form in both the
base rule and the `&--selected` modifier so `npm run lint:style` passes.
- Around line 730-781: The `&__caseHandoverButton` and `&__caseHandoverCheckbox`
rules are nested under `&__consultingTypeIcon`, so they compile to the wrong
selectors and never match the rendered elements. Move both blocks out to the
`sessionsListItem` root scope in `sessionsListItem.styles.scss` so they become
direct BEM children like `sessionsListItem__caseHandoverButton` and
`sessionsListItem__caseHandoverCheckbox`, preserving their modifier states
(`--pending`, `--denied`, `--selected`).

---

Outside diff comments:
In `@src/hooks/useSession.tsx`:
- Around line 95-117: The no-active-session path in useSession should not let a
failed loadCaseHandoverCandidateSession call reject the .then chain and trigger
the .catch retry path. Update the candidate lookup inside the activeSession else
branch in useSession so it is guarded the same way as the later retry logic,
returning false on non-abort failures instead of throwing; this lets
setReady(true) run once and avoids a second network call.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e74ce5c0-9384-45ce-8301-d5eedc419018

📥 Commits

Reviewing files that changed from the base of the PR and between a0ce3e4 and b3df57f.

📒 Files selected for processing (19)
  • src/api/apiCaseHandover.ts
  • src/api/index.ts
  • src/components/notificationsCenter/NotificationsCenter.tsx
  • src/components/notificationsCenter/eventDescriptors/registry.test.ts
  • src/components/notificationsCenter/eventDescriptors/registry.ts
  • src/components/notificationsCenter/notificationsCenter.styles.scss
  • src/components/session/CaseHandoverGate.tsx
  • src/components/session/SessionStream.tsx
  • src/components/session/caseHandoverGate.styles.scss
  • src/components/session/caseHandoverHelpers.test.ts
  • src/components/session/caseHandoverHelpers.ts
  • src/components/sessionsList/SessionsList.tsx
  • src/components/sessionsList/sessionsList.styles.scss
  • src/components/sessionsListItem/SessionListItemComponent.tsx
  • src/components/sessionsListItem/sessionsListItem.styles.scss
  • src/hooks/useSession.tsx
  • src/resources/i18n/de/common.json
  • src/resources/i18n/en/common.json
  • src/resources/scripts/endpoints.ts
📜 Review details
⏰ Context from checks skipped due to timeout. (4)
  • GitHub Check: build
  • GitHub Check: build
  • GitHub Check: build
  • GitHub Check: build
🧰 Additional context used
📓 Path-based instructions (7)
src/api/**

📄 CodeRabbit inference engine (.understand-anything/ORISO-ECOSYSTEM.md)

When changing API usage under src/api/, verify API compatibility against the backend contracts outside this graph.

Files:

  • src/api/index.ts
  • src/api/apiCaseHandover.ts
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx,js,jsx}: Keep shared behavior in hooks/utilities when multiple screens need the same state, route, selection, or formatting logic.
UI changes must have accessible focus/keyboard behavior and must not rely on color alone.

Files:

  • src/api/index.ts
  • src/components/session/caseHandoverHelpers.test.ts
  • src/components/session/CaseHandoverGate.tsx
  • src/components/session/caseHandoverHelpers.ts
  • src/resources/scripts/endpoints.ts
  • src/components/notificationsCenter/eventDescriptors/registry.test.ts
  • src/components/notificationsCenter/eventDescriptors/registry.ts
  • src/components/notificationsCenter/NotificationsCenter.tsx
  • src/hooks/useSession.tsx
  • src/api/apiCaseHandover.ts
  • src/components/session/SessionStream.tsx
  • src/components/sessionsListItem/SessionListItemComponent.tsx
  • src/components/sessionsList/SessionsList.tsx
**/*.{scss,sass,css,ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

Reuse existing design tokens, Sass mixins, and component patterns; avoid one-off hardcoded CSS for controls, active list states, focus rings, and responsive layout.

Files:

  • src/api/index.ts
  • src/components/sessionsListItem/sessionsListItem.styles.scss
  • src/components/session/caseHandoverHelpers.test.ts
  • src/components/sessionsList/sessionsList.styles.scss
  • src/components/notificationsCenter/notificationsCenter.styles.scss
  • src/components/session/CaseHandoverGate.tsx
  • src/components/session/caseHandoverHelpers.ts
  • src/resources/scripts/endpoints.ts
  • src/components/notificationsCenter/eventDescriptors/registry.test.ts
  • src/components/notificationsCenter/eventDescriptors/registry.ts
  • src/components/notificationsCenter/NotificationsCenter.tsx
  • src/hooks/useSession.tsx
  • src/api/apiCaseHandover.ts
  • src/components/session/caseHandoverGate.styles.scss
  • src/components/session/SessionStream.tsx
  • src/components/sessionsListItem/SessionListItemComponent.tsx
  • src/components/sessionsList/SessionsList.tsx
**

⚙️ CodeRabbit configuration file

**: # AGENTS.md

Context First

  • Treat dev as the normal integration branch for ORISO feature PRs unless the task says otherwise.
  • Before non-trivial changes, skim .understand-anything/README.md, .understand-anything/ARCHITECTURE.md, and .understand-anything/knowledge-graph.json for fast repo context.
  • Use CONTEXT.md for Activity Timeline and notification vocabulary; avoid inventing parallel terms.

Frontend Rules

  • Keep behavior in shared hooks/utilities when multiple screens need the same state, route, selection, or formatting logic.
  • Reuse existing design tokens, Sass mixins, and component patterns. Avoid one-off hardcoded CSS for controls, active list states, focus rings, and responsive layout.
  • Preserve Matrix/chat/draft privacy boundaries. Do not move plaintext previews or draft contents into server-visible state.
  • UI changes need accessible focus/keyboard behavior and should not rely on color alone.

Validation

  • Prefer red-green TDD for behavior changes: add or update the smallest test that would fail without the fix, then implement.
  • Useful commands:
    • npm run test:unit
    • npm run lint:scripts
    • npm run lint:style
    • npm run build
  • If a full command is too expensive or blocked by existing unrelated failures, run the narrowest relevant command and state the blocker precisely.

Review Expectations

  • CodeRabbit and Cursor should compare PRs against origin/dev for normal ORISO feature work.
  • Automated review should flag missing tests, duplicated UI architecture, unsafe privacy changes, and mergeability risks.
  • Only auto-fix issues that are clearly scoped and testable. Leave architectural or ambiguous changes as review comments.

**: # Activity Timeline & Notifications

The consultant- and client-facing history of everything that happens around a case: enquiries, accept/deny, messages, drafts, appointments, handovers, calls. It is two things in one surface: an inbox (events that happened *to...

Files:

  • src/api/index.ts
  • src/components/sessionsListItem/sessionsListItem.styles.scss
  • src/components/session/caseHandoverHelpers.test.ts
  • src/components/sessionsList/sessionsList.styles.scss
  • src/components/notificationsCenter/notificationsCenter.styles.scss
  • src/components/session/CaseHandoverGate.tsx
  • src/components/session/caseHandoverHelpers.ts
  • src/resources/scripts/endpoints.ts
  • src/components/notificationsCenter/eventDescriptors/registry.test.ts
  • src/components/notificationsCenter/eventDescriptors/registry.ts
  • src/resources/i18n/en/common.json
  • src/components/notificationsCenter/NotificationsCenter.tsx
  • src/hooks/useSession.tsx
  • src/api/apiCaseHandover.ts
  • src/resources/i18n/de/common.json
  • src/components/session/caseHandoverGate.styles.scss
  • src/components/session/SessionStream.tsx
  • src/components/sessionsListItem/SessionListItemComponent.tsx
  • src/components/sessionsList/SessionsList.tsx
src/**/*.{ts,tsx,js,jsx}

⚙️ CodeRabbit configuration file

src/**/*.{ts,tsx,js,jsx}: Check behavior against the surrounding ORISO flow, not only types.
Flag duplicated route/state logic, missing error/loading handling,
privacy regressions around Matrix/chat/drafts, and changes that should
be expressed through shared hooks or utilities instead of local flags.

Files:

  • src/api/index.ts
  • src/components/session/caseHandoverHelpers.test.ts
  • src/components/session/CaseHandoverGate.tsx
  • src/components/session/caseHandoverHelpers.ts
  • src/resources/scripts/endpoints.ts
  • src/components/notificationsCenter/eventDescriptors/registry.test.ts
  • src/components/notificationsCenter/eventDescriptors/registry.ts
  • src/components/notificationsCenter/NotificationsCenter.tsx
  • src/hooks/useSession.tsx
  • src/api/apiCaseHandover.ts
  • src/components/session/SessionStream.tsx
  • src/components/sessionsListItem/SessionListItemComponent.tsx
  • src/components/sessionsList/SessionsList.tsx
src/**/*.scss

⚙️ CodeRabbit configuration file

src/**/*.scss: Prefer existing design tokens, mixins, and shared component states.
Flag hardcoded one-off styling when the same control/state already
exists elsewhere. Active/focus/list-item behavior should stay shared.

Files:

  • src/components/sessionsListItem/sessionsListItem.styles.scss
  • src/components/sessionsList/sessionsList.styles.scss
  • src/components/notificationsCenter/notificationsCenter.styles.scss
  • src/components/session/caseHandoverGate.styles.scss
src/resources/scripts/endpoints.ts

📄 CodeRabbit inference engine (.understand-anything/ORISO-ECOSYSTEM.md)

When changing endpoint constants in src/resources/scripts/endpoints.ts, verify API compatibility against the backend contracts outside this graph.

Files:

  • src/resources/scripts/endpoints.ts
🪛 Stylelint (17.13.0)
src/components/sessionsListItem/sessionsListItem.styles.scss

[error] 773-773: Expected "currentColor" to be "currentcolor" (value-keyword-case)

(value-keyword-case)


[error] 778-778: Expected "currentColor" to be "currentcolor" (value-keyword-case)

(value-keyword-case)

🔇 Additional comments (20)
src/components/notificationsCenter/eventDescriptors/registry.ts (1)

218-241: LGTM!

src/components/notificationsCenter/eventDescriptors/registry.test.ts (1)

82-84: LGTM!

Also applies to: 104-117, 177-177

src/components/notificationsCenter/NotificationsCenter.tsx (1)

576-595: 🎯 Functional Correctness

False alarm: Keys caseHandover.consent.approve and caseHandover.consent.decline exist in both de/common.json and en/common.json and resolve correctly.

No raw keys will be rendered in the primary locales. Note that the German text "Zugriff freigeben" ("Grant access") is semantically generic for a caseHandover flow compared to the English "Approve access"; consider aligning terminology to bestätigen ("Confirm").

src/resources/scripts/endpoints.ts (1)

52-54: 🗄️ Data Integrity & Integration

Confirm these constants match the backend routes.

caseHandoverBatch/Candidates/Reasons are wired under /service/users/case-handover/*, whereas the per-session status/request/consent calls in apiCaseHandover.ts use sessionBase. Verify both base paths against the deployed service so the gate doesn't 404 in Pre-Dev.

As per path instructions: "When changing endpoint constants in src/resources/scripts/endpoints.ts, verify API compatibility against the backend contracts outside this graph."

Source: Path instructions

src/api/index.ts (1)

10-10: LGTM!

src/hooks/useSession.tsx (2)

130-152: 🎯 Functional Correctness

Summary/code mismatch: the repetitiveId retry was not removed.

The change details for 140-152 state the prior repetitiveId.current → apiGetChatRoomById retry was removed, but that block still exists at lines 130-139 and runs before the new candidate fallback. Behavior to confirm: for a repetitive session that legitimately fails, the hook retries via apiGetChatRoomById(repetitiveId.current) and never reaches loadCaseHandoverCandidateSession. If the candidate fallback should also apply to repetitive sessions, the ordering is wrong; if not, the summary is simply stale.


26-49: 🎯 Functional Correctness

Confirm the candidate search resolves the session by sessionId.

loadCaseHandoverCandidateSession searches with query: String(sessionId) and count: 1, then exact-matches item.session.id === sessionId. This assumes the candidates endpoint's free-text query matches on session id and returns that row within the first result. If query is name/topic-based, a locked session whose id isn't textually searchable will never be found and the hook falls back to setSession(null). Verify the backend search semantics, or pass a dedicated id filter instead of the text query.

src/components/session/SessionStream.tsx (4)

352-364: 🩺 Stability & Availability

Mapping every apiGetCaseHandoverStatus rejection to a hard DENIED state conflates a genuine 403 with transient/network failures, so a flaky request permanently locks the counsellor out of a case they may be allowed to see until remount. This is already captured in the open review notes (softer handling for transient/network errors), so flagging as duplicate.


219-310: LGTM!


409-412: LGTM!

Also applies to: 759-762


889-931: LGTM!

src/resources/i18n/en/common.json (2)

1389-1400: LGTM!


2119-2172: LGTM!

src/resources/i18n/de/common.json (2)

1413-1424: LGTM!


2185-2238: LGTM!

src/components/session/CaseHandoverGate.tsx (1)

70-77: 🎯 Functional Correctness

Verify the FORBIDDEN error shape from fetchData.

fetchData explicitly rejects on HTTP 403 with new Error(FETCH_ERRORS.FORBIDDEN), where FETCH_ERRORS.FORBIDDEN is the string literal 'FORBIDDEN'. The check requestError?.message === 'FORBIDDEN' correctly matches this specific rejection.

src/components/session/caseHandoverGate.styles.scss (1)

1-149: 📐 Maintainability & Code Quality

Replace hardcoded tokens with shared design system variables and use the primary button class.

The stylesheet src/components/session/caseHandoverGate.styles.scss hardcodes colors (e.g. #c4000b, #a5000a, #5c6672) and button styles that violate the rule to reuse existing design tokens.

  • Colors: Hardcoded values like #c4000b (primary/accent) and #a5000a (error) must be replaced with the project tokens found in src/resources/styles/mui-variables-mapping.scss. Use --m3-primary for the submit button background and --m3-error for error text/borders.
  • Button Styling: Do not reimplement the button styles in .caseHandoverGate__submit. Apply the existing .button__primary class from src/components/button/button.styles.scss instead, which handles the background, hover states, and focus outlines correctly.

Ensure the file imports the necessary shared tokens and mixins at the top.

src/components/session/caseHandoverHelpers.ts (1)

9-63: LGTM!

src/components/session/caseHandoverHelpers.test.ts (1)

54-122: LGTM!

src/components/sessionsList/SessionsList.tsx (1)

1380-1415: LGTM!

Also applies to: 1718-1738, 1762-1838

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/api/apiCaseHandover.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/api/apiCaseHandover.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/notificationsCenter/notificationsCenter.styles.scss Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/notificationsCenter/notificationsCenter.styles.scss Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/notificationsCenter/NotificationsCenter.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/sessionsList/SessionsList.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/sessionsListItem/SessionListItemComponent.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/sessionsListItem/SessionListItemComponent.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/sessionsListItem/sessionsListItem.styles.scss Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/sessionsListItem/sessionsListItem.styles.scss Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Hassan9215 Hassan9215 mentioned this pull request Jun 25, 2026
feat: add case handover schema OpenResilienceInitiative/ORISO-Database#13
Merged
@Storypapst

Storypapst commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

Cursor Review (gegen origin/dev)

Ergebnis: Keine Code-Änderungen nötig — der PR ist aus Review-Sicht merge-fähig.

Was gut funktioniert

  • Privacy-Grenze: Chat-Inhalte werden erst geladen, wenn canViewContent true ist; Matrix- und REST-Pfade respektieren das Gate in SessionStream.
  • Read-Receipt-Fix: setSessionRead wird nur ausgeführt, wenn fetchSessionMessages tatsächlich Inhalte geladen hat — verhindert „gelesen“-Markierung bei gesperrtem Zugriff.
  • Session-Metadaten: Fallback über apiGetCaseHandoverCandidates in useSession lädt Session-Infos für Handover-Kandidaten ohne direkten Room-Zugriff.
  • Toolbar-Suche: Kandidaten werden bei leerer Query zuverlässig geleert; Merge-Logik dedupliziert korrekt.
  • Notifications: Consent-Actions und neue Event-Deskriptoren (case.handover.*) sind konsistent mit Registry + i18n.

Validierung

  • npx vitest run src/components/session/caseHandoverHelpers.test.ts src/components/notificationsCenter/eventDescriptors/registry.test.ts — 19/19 grün
  • npm run lint:scripts — 0 Errors (nur bestehende Warnings außerhalb des PR-Scopes)
  • npm run build — erfolgreich

Hinweise (kein Blocker, keine Auto-Fixes)

  1. API-Fehler → „DENIED“: Bei apiGetCaseHandoverStatus-Fehlern wird synthetisch DENIED gesetzt (SessionStream, SessionListItemComponent) — Netzwerkfehler könnten fälschlich als „Zugriff verweigert“ erscheinen.
  2. Consent-Actions: handleCaseHandoverConsentDecision hat kein .catch() — fehlgeschlagene Entscheidungen geben dem Nutzer kein Feedback.
  3. A11y Gate: Radiogruppe/Textarea im CaseHandoverGate ohne sichtbares Label/aria-label — Keyboard/Screenreader könnten verbessert werden.

🤖 Automatisiertes Review via Cursor — keine Commits gepusht.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst

Storypapst commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

Cursor review (vs dev)

Verdict: Solid handover gate architecture — privacy boundaries in SessionStream (block Matrix/REST load, skip read receipts) and shared helpers look correct. Merge with dev is clean. Existing unit tests pass (caseHandoverHelpers, event-descriptor registry).

Fixed (pushed 144a8bd):

  • Session list items could still leak content when handover access was blocked: lastMessageType aliases, attachment chips, and video-call metadata rendered before/without the hidden-preview path. Now gated synchronously on caseHandoverContentLocked.
  • Added aria-label on the handover gate reason radiogroup and explanation textarea.

Review notes (no auto-fix):

  • apiGetCaseHandoverStatus is called per list item and again in SessionStream — consider centralizing later.
  • Network/API errors are fail-closed to DENIED (intentional for security, but may confuse on transient outages).
  • NotificationsCenter consent actions have no user-visible error handling on failure.
  • No component tests for CaseHandoverGate, SessionStream gate flow, or list batch UI — helpers/registry only.
  • Pre-dev E2E still blocked on :dev image per PR notes.

Validation run: vitest run on helper + registry tests; eslint on changed files.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst

Storypapst commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

Cursor review (vs origin/dev)

Checked

  • Case handover API layer, session gate, list/search/batch flow, notification descriptors, and i18n keys
  • Privacy boundaries: gated sessions skip Matrix/REST message hydration and read receipts when canViewContent is false; list previews stay hidden while status is unresolved
  • git diff --check against origin/dev

Changed

  • NotificationsCenter.tsx: add .catch() on client-consent API calls so failures do not produce unhandled rejections and the notification stays unread

Validation

  • npx vitest run src/components/session/caseHandoverHelpers.test.ts src/components/notificationsCenter/eventDescriptors/registry.test.ts — 19 passed
  • npm run build — success
  • npm run lint:scripts — no errors (existing repo warnings only)

Notes (no code changes)

  • Per-list-item handover status fetches may add list-load traffic at scale; worth monitoring
  • New gate/list styles use local hex colors rather than shared tokens — consistent with nearby PR UI but could be tokenized later
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst

Storypapst commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Jun 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst

Storypapst commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

Cursor Review (gegen origin/dev)

Ergebnis: Vier sichere, scoped Fixes gepusht (8ad13da).

Geändert

  • sessionsListItem.styles.scss: Handover-Button/Checkbox-Styles aus dem verschachtelten __consultingTypeIcon-Block an die korrekte BEM-Ebene (sessionsListItem__caseHandover*) verschoben — vorher trafen die Selektoren die gerenderten Elemente nicht. Stylelint-Keyword currentcolor korrigiert.
  • useSession.tsx: Kandidaten-Lookup im Erfolgspfad mit .catch(() => false) abgesichert, damit ein fehlgeschlagener Fetch nicht erneut über den .catch-Retry-Pfad läuft.
  • SessionListItemComponent.tsx: aria-pressed für Batch-Auswahl-Buttons ergänzt.
  • SessionsList.tsx: aria-label für Batch-Radiogruppe und Erklärungs-Textarea ergänzt (analog CaseHandoverGate).

Bereits auf dem Branch (keine weiteren Änderungen)

  • Consent-.catch() in NotificationsCenter, Preview-Gating in List Items, Gate-aria-labels, Read-Receipt-Gating in SessionStream.

Validierung

  • vitest run — helper + registry tests: 19/19
  • eslint auf geänderte TS-Dateien — 0 Errors
  • stylelint auf sessionsListItem.styles.scss — grün

Offene Hinweise (kein Auto-Fix)

  • N+1-Status-Polling pro Listeneintrag
  • Fail-closed DENIED bei transienten API-Fehlern
  • Shared-UI-Tokens / Design-System-Refactor für Handover-Controls
  • Pre-Dev E2E weiterhin blockiert bis :dev-Image Backend-Endpoints enthält
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst

Storypapst commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Jun 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot requested changes Jun 25, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (7)
src/components/session/CaseHandoverGate.tsx (1)

70-76: 📐 Maintainability & Code Quality | 🔵 Trivial

Use the shared FETCH_ERRORS constant instead of a string literal.

The codebase defines FETCH_ERRORS.FORBIDDEN as the string 'FORBIDDEN' in src/api/fetchData.ts. Hardcoding the string creates a maintainability risk: if the constant's value ever shifts, the error message fallback triggers silently. Align this check with the rest of the stack by referencing the constant directly rather than the literal.

♻️ Apply fix
@@
-				const message =
-					requestError?.message === 'FORBIDDEN'
+				const message =
+					requestError?.message === FETCH_ERRORS.FORBIDDEN
 						? translate('caseHandover.error.forbidden')
 						: translate('caseHandover.error.failed');
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/session/CaseHandoverGate.tsx` around lines 70 - 76, The error
handling in CaseHandoverGate uses a hardcoded 'FORBIDDEN' string when mapping
the rejected request to a translated message. Update the catch block in
CaseHandoverGate to compare against the shared FETCH_ERRORS.FORBIDDEN constant
from the fetch layer instead of the literal, so the forbidden branch stays
aligned with the rest of the API error handling.
src/hooks/useSession.tsx (1)

32-39: 🎯 Functional Correctness | 🟠 Major

count: 1 makes the exact-match lookup brittle.

You query the candidates endpoint with count: 1 and then apply a client-side find for the specific ID. If the backend treats the query as a text search (ranking by relevance, name, or topic) rather than an exact ID match, the correct session might not be returned—or might be ranked second and truncated. This causes the function to return false silently, dropping a valid handover candidate.

Increase the page size (e.g., count: 15) to ensure the candidate is captured, or verify that the backend treats the query parameter as a strict exact-id lookup.

```diff - const { sessions } = await apiGetCaseHandoverCandidates({ - query: String(sessionId), - count: 1, - signal - }); ```
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/hooks/useSession.tsx` around lines 32 - 39, The exact-session lookup in
useSession.tsx is too brittle because apiGetCaseHandoverCandidates is called
with count: 1 and then filtered with a client-side find on item?.session?.id.
Update the useSession lookup logic to request a larger candidate set (for
example, increase count) or otherwise ensure the query path is an exact ID match
so the desired session cannot be truncated before the find runs.
src/components/sessionsListItem/SessionListItemComponent.tsx (2)

1596-1620: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Stop button key events from triggering row navigation.

The parent list item handles Enter/Space on keydown. When this nested button has focus, keyboard activation can also call handleOnClick() on the row, breaking batch selection/navigation. Stop propagation for activation keys on the button. As per coding guidelines, UI changes need accessible focus/keyboard behavior.

♿ Proposed fix
 							)}
 							onClick={handleCaseHandoverActionClick}
+							onKeyDown={(event) => {
+								if (
+									event.key === 'Enter' ||
+									event.key === ' '
+								) {
+									event.stopPropagation();
+								}
+							}}
 							disabled={
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/sessionsListItem/SessionListItemComponent.tsx` around lines
1596 - 1620, The nested case handover button in SessionListItemComponent is
allowing Enter/Space keydown events to bubble up and trigger the parent row’s
navigation handler. Update the button’s keyboard handling near
handleCaseHandoverActionClick so activation keys stop propagation before the
parent onKeyDown/onClick logic runs, while preserving normal button activation
and accessible focus behavior.

Source: Coding guidelines


167-174: 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Do not use request eligibility as the privacy gate.

isCaseHandoverCandidate returns false in the archive tab, but SessionsList can still fetch archived handover candidates. Those archived locked items skip status loading and caseHandoverContentLocked, so previews/attachments can render as normal. Split “access-controlled/locked” from “batch-selectable” eligibility. As per coding guidelines, preserve Matrix/chat privacy boundaries; as per path instructions, flag privacy regressions around Matrix/chat/drafts.

🔒 Proposed direction
-	const caseHandoverCandidate = isCaseHandoverCandidate({
+	const caseHandoverAccessControlled = isCaseHandoverCandidate({
+		activeSession,
+		userData,
+		type
+	});
+	const caseHandoverCandidate = isCaseHandoverCandidate({
 		activeSession,
 		userData,
 		type,
 		sessionListTab
 	});
 	const caseHandoverContentLocked =
-		caseHandoverCandidate && !caseHandoverStatus?.canViewContent;
+		caseHandoverAccessControlled && !caseHandoverStatus?.canViewContent;
@@
-		if (!caseHandoverCandidate || !activeSession.item?.id) {
+		if (!caseHandoverAccessControlled || !activeSession.item?.id) {

Also applies to: 259-288

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/sessionsListItem/SessionListItemComponent.tsx` around lines
167 - 174, The privacy gate in SessionListItemComponent is incorrectly tied to
isCaseHandoverCandidate, which only covers batch-selection eligibility and
returns false for archived handover items even when they are still
access-controlled. Update SessionListItemComponent (and the related rendering
path around caseHandoverContentLocked / caseHandoverStatus) to separate
“locked/access-controlled” from “request eligible,” so archived handover
candidates still trigger status loading and content locking before previews or
attachments can render. Use the existing caseHandoverCandidate logic only for
selection behavior, and introduce or reuse a dedicated access-control check for
privacy-sensitive rendering in SessionListItemComponent and the 259-288 related
code path.

Sources: Coding guidelines, Path instructions

src/components/sessionsListItem/sessionsListItem.styles.scss (1)

116-120: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Make the locked border override win.

The later non-active rule resets border-color, so the locked card’s #ffd8d4 border does not apply for normal non-active items. Move the locked border rule after the generic non-active rule or increase specificity.

🎨 Proposed fix
 	&:not(.sessionsListItem--active) .sessionsListItem__content {
 		border-color: $session-light-border;
 	}
+
+	&--caseHandoverLocked:not(.sessionsListItem--active) .sessionsListItem__content {
+		border-color: `#ffd8d4`;
+	}

Also applies to: 172-174

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/sessionsListItem/sessionsListItem.styles.scss` around lines
116 - 120, The case-handover locked border on SessionsListItem is being
overridden by the generic non-active styling, so the locked state does not keep
its intended border color. Update the sessionsListItem.styles.scss rules for the
SessionsListItem content so the &--caseHandoverLocked selector wins over the
non-active rule, either by moving it after the generic non-active block or by
increasing its specificity; make the same adjustment in the other matching block
referenced by the comment.
src/components/sessionsList/SessionsList.tsx (2)

1454-1467: 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

Surface reason-loading failures in the batch panel.

If apiGetCaseHandoverReasons() fails, the UI renders an empty radiogroup and leaves confirm disabled with no explanation. Set an error/summary state or render a retry/loading message so the batch flow does not silently dead-end. As per path instructions, src/**/*.{ts,tsx,js,jsx} should flag missing error/loading handling.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/sessionsList/SessionsList.tsx` around lines 1454 - 1467, The
case handover reason loading in SessionsList is swallowing failures and leaving
the batch panel with no feedback. Update the useEffect around
apiGetCaseHandoverReasons in SessionsList to set a dedicated error or summary
state on rejection and render a retry or loading/failure message in the batch
UI, instead of only clearing caseHandoverReasons. Keep the existing reason
selection logic, but ensure the batch flow surfaces the failure clearly and does
not silently disable confirm.

Source: Path instructions


2063-2066: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Announce batch results as a live status.

This summary appears after validation/submission, but it is not exposed as a live region. Add role="status"/aria-live="polite" so keyboard and screen-reader users receive the result without moving focus. As per coding guidelines, UI changes need accessible focus/keyboard behavior.

♿ Proposed fix
-								<div className="sessionsList__caseHandoverBatchSummary">
+								<div
+									className="sessionsList__caseHandoverBatchSummary"
+									role="status"
+									aria-live="polite"
+								>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/sessionsList/SessionsList.tsx` around lines 2063 - 2066, The
batch summary in SessionsList is rendered visually but not announced to
assistive tech, so update the `caseHandoverBatchSummary` container in
`SessionsList.tsx` to behave as a polite live region. Add accessible status
semantics such as `role="status"` and `aria-live="polite"` on the element that
wraps `caseHandoverBatchSummary`, ensuring validation/submission results are
announced without changing focus or keyboard flow.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/components/sessionsListItem/sessionsListItem.styles.scss`:
- Around line 775-812: The new case handover button state styles in
sessionsListItem.styles.scss use hardcoded colors for the CTA, pending, denied,
selected, and checkbox-fill states; replace these one-off values with existing
shared design tokens or list-item SCSS variables so the new states stay
consistent with the rest of the component. Update the styles in the
caseHandoverButton block and its state modifiers (&--pending, &--denied,
&--selected, and the checkbox-fill rules) to reference the shared token/mixin
names already used elsewhere in the sessionsListItem styles rather than defining
new fixed hex colors.

In `@src/hooks/useSession.tsx`:
- Around line 96-99: Remove the commented-out debug scaffolding from useSession;
the callback still contains several commented console.log blocks that add noise.
Delete these inactive logs in useSession (including the surrounding commented
sections near the API response, error handling, and exit paths) and keep the
control flow clean, relying on the debugger or structured logging if needed.

---

Outside diff comments:
In `@src/components/session/CaseHandoverGate.tsx`:
- Around line 70-76: The error handling in CaseHandoverGate uses a hardcoded
'FORBIDDEN' string when mapping the rejected request to a translated message.
Update the catch block in CaseHandoverGate to compare against the shared
FETCH_ERRORS.FORBIDDEN constant from the fetch layer instead of the literal, so
the forbidden branch stays aligned with the rest of the API error handling.

In `@src/components/sessionsList/SessionsList.tsx`:
- Around line 1454-1467: The case handover reason loading in SessionsList is
swallowing failures and leaving the batch panel with no feedback. Update the
useEffect around apiGetCaseHandoverReasons in SessionsList to set a dedicated
error or summary state on rejection and render a retry or loading/failure
message in the batch UI, instead of only clearing caseHandoverReasons. Keep the
existing reason selection logic, but ensure the batch flow surfaces the failure
clearly and does not silently disable confirm.
- Around line 2063-2066: The batch summary in SessionsList is rendered visually
but not announced to assistive tech, so update the `caseHandoverBatchSummary`
container in `SessionsList.tsx` to behave as a polite live region. Add
accessible status semantics such as `role="status"` and `aria-live="polite"` on
the element that wraps `caseHandoverBatchSummary`, ensuring
validation/submission results are announced without changing focus or keyboard
flow.

In `@src/components/sessionsListItem/SessionListItemComponent.tsx`:
- Around line 1596-1620: The nested case handover button in
SessionListItemComponent is allowing Enter/Space keydown events to bubble up and
trigger the parent row’s navigation handler. Update the button’s keyboard
handling near handleCaseHandoverActionClick so activation keys stop propagation
before the parent onKeyDown/onClick logic runs, while preserving normal button
activation and accessible focus behavior.
- Around line 167-174: The privacy gate in SessionListItemComponent is
incorrectly tied to isCaseHandoverCandidate, which only covers batch-selection
eligibility and returns false for archived handover items even when they are
still access-controlled. Update SessionListItemComponent (and the related
rendering path around caseHandoverContentLocked / caseHandoverStatus) to
separate “locked/access-controlled” from “request eligible,” so archived
handover candidates still trigger status loading and content locking before
previews or attachments can render. Use the existing caseHandoverCandidate logic
only for selection behavior, and introduce or reuse a dedicated access-control
check for privacy-sensitive rendering in SessionListItemComponent and the
259-288 related code path.

In `@src/components/sessionsListItem/sessionsListItem.styles.scss`:
- Around line 116-120: The case-handover locked border on SessionsListItem is
being overridden by the generic non-active styling, so the locked state does not
keep its intended border color. Update the sessionsListItem.styles.scss rules
for the SessionsListItem content so the &--caseHandoverLocked selector wins over
the non-active rule, either by moving it after the generic non-active block or
by increasing its specificity; make the same adjustment in the other matching
block referenced by the comment.

In `@src/hooks/useSession.tsx`:
- Around line 32-39: The exact-session lookup in useSession.tsx is too brittle
because apiGetCaseHandoverCandidates is called with count: 1 and then filtered
with a client-side find on item?.session?.id. Update the useSession lookup logic
to request a larger candidate set (for example, increase count) or otherwise
ensure the query path is an exact ID match so the desired session cannot be
truncated before the find runs.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: db5ac99c-2a97-4897-a4bd-af4ebae0c72f

📥 Commits

Reviewing files that changed from the base of the PR and between b3df57f and 8ad13da.

📒 Files selected for processing (6)
  • src/components/notificationsCenter/NotificationsCenter.tsx
  • src/components/session/CaseHandoverGate.tsx
  • src/components/sessionsList/SessionsList.tsx
  • src/components/sessionsListItem/SessionListItemComponent.tsx
  • src/components/sessionsListItem/sessionsListItem.styles.scss
  • src/hooks/useSession.tsx
📜 Review details
⏰ Context from checks skipped due to timeout. (4)
  • GitHub Check: build
  • GitHub Check: build
  • GitHub Check: build
  • GitHub Check: build
🧰 Additional context used
📓 Path-based instructions (5)
**/*.{scss,sass,css,ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

Reuse existing design tokens, Sass mixins, and component patterns; avoid one-off hardcoded CSS for controls, active list states, focus rings, and responsive layout.

Files:

  • src/components/sessionsListItem/sessionsListItem.styles.scss
  • src/components/session/CaseHandoverGate.tsx
  • src/components/sessionsList/SessionsList.tsx
  • src/components/notificationsCenter/NotificationsCenter.tsx
  • src/hooks/useSession.tsx
  • src/components/sessionsListItem/SessionListItemComponent.tsx
**

⚙️ CodeRabbit configuration file

**: # AGENTS.md

Context First

  • Treat dev as the normal integration branch for ORISO feature PRs unless the task says otherwise.
  • Before non-trivial changes, skim .understand-anything/README.md, .understand-anything/ARCHITECTURE.md, and .understand-anything/knowledge-graph.json for fast repo context.
  • Use CONTEXT.md for Activity Timeline and notification vocabulary; avoid inventing parallel terms.

Frontend Rules

  • Keep behavior in shared hooks/utilities when multiple screens need the same state, route, selection, or formatting logic.
  • Reuse existing design tokens, Sass mixins, and component patterns. Avoid one-off hardcoded CSS for controls, active list states, focus rings, and responsive layout.
  • Preserve Matrix/chat/draft privacy boundaries. Do not move plaintext previews or draft contents into server-visible state.
  • UI changes need accessible focus/keyboard behavior and should not rely on color alone.

Validation

  • Prefer red-green TDD for behavior changes: add or update the smallest test that would fail without the fix, then implement.
  • Useful commands:
    • npm run test:unit
    • npm run lint:scripts
    • npm run lint:style
    • npm run build
  • If a full command is too expensive or blocked by existing unrelated failures, run the narrowest relevant command and state the blocker precisely.

Review Expectations

  • CodeRabbit and Cursor should compare PRs against origin/dev for normal ORISO feature work.
  • Automated review should flag missing tests, duplicated UI architecture, unsafe privacy changes, and mergeability risks.
  • Only auto-fix issues that are clearly scoped and testable. Leave architectural or ambiguous changes as review comments.

**: # Activity Timeline & Notifications

The consultant- and client-facing history of everything that happens around a case: enquiries, accept/deny, messages, drafts, appointments, handovers, calls. It is two things in one surface: an inbox (events that happened *to...

Files:

  • src/components/sessionsListItem/sessionsListItem.styles.scss
  • src/components/session/CaseHandoverGate.tsx
  • src/components/sessionsList/SessionsList.tsx
  • src/components/notificationsCenter/NotificationsCenter.tsx
  • src/hooks/useSession.tsx
  • src/components/sessionsListItem/SessionListItemComponent.tsx
src/**/*.scss

⚙️ CodeRabbit configuration file

src/**/*.scss: Prefer existing design tokens, mixins, and shared component states.
Flag hardcoded one-off styling when the same control/state already
exists elsewhere. Active/focus/list-item behavior should stay shared.

Files:

  • src/components/sessionsListItem/sessionsListItem.styles.scss
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx,js,jsx}: Keep shared behavior in hooks/utilities when multiple screens need the same state, route, selection, or formatting logic.
UI changes must have accessible focus/keyboard behavior and must not rely on color alone.

Files:

  • src/components/session/CaseHandoverGate.tsx
  • src/components/sessionsList/SessionsList.tsx
  • src/components/notificationsCenter/NotificationsCenter.tsx
  • src/hooks/useSession.tsx
  • src/components/sessionsListItem/SessionListItemComponent.tsx
src/**/*.{ts,tsx,js,jsx}

⚙️ CodeRabbit configuration file

src/**/*.{ts,tsx,js,jsx}: Check behavior against the surrounding ORISO flow, not only types.
Flag duplicated route/state logic, missing error/loading handling,
privacy regressions around Matrix/chat/drafts, and changes that should
be expressed through shared hooks or utilities instead of local flags.

Files:

  • src/components/session/CaseHandoverGate.tsx
  • src/components/sessionsList/SessionsList.tsx
  • src/components/notificationsCenter/NotificationsCenter.tsx
  • src/hooks/useSession.tsx
  • src/components/sessionsListItem/SessionListItemComponent.tsx
🔇 Additional comments (6)
src/components/session/CaseHandoverGate.tsx (1)

121-121: LGTM!

Also applies to: 157-159

src/hooks/useSession.tsx (1)

143-154: LGTM!

src/components/sessionsListItem/SessionListItemComponent.tsx (1)

274-281: Still collapsing status lookup failures into DENIED.

Previous review feedback still applies: transient/non-FORBIDDEN failures are rendered as authoritative access denial.

src/components/sessionsList/SessionsList.tsx (1)

1995-2034: LGTM!

src/components/notificationsCenter/NotificationsCenter.tsx (2)

365-372: 🩺 Stability & Availability | ⚡ Quick win

Consent failure is still silent — no user-visible feedback.

The .catch() now prevents the unhandled rejection (good), but it only keeps the notification unread; the counsellor still gets zero feedback when apiDecideCaseHandoverClientConsent rejects on BAD_REQUEST/FORBIDDEN/network. The button just re-enables as if it worked. This matches the open PR note on consent-failure error handling — surface a toast/inline error here.

Source: Path instructions


144-145: LGTM!

Also applies to: 236-244, 351-364, 563-601

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/components/sessionsListItem/sessionsListItem.styles.scss Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/hooks/useSession.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst

Storypapst commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

Cursor Review (vs origin/dev)

Verdict: Approve with minor follow-ups. No additional auto-fix commit — the branch already addresses the scoped CodeRabbit items (BEM selectors, useSession candidate fallback, batch a11y).

What looks solid

  • Privacy boundary: SessionStream blocks Matrix/REST message hydration and read receipts when canViewContent is false; list previews are gated before E2EE decryption.
  • Routing edge case: useSession falls back to case-handover candidates when direct session lookup returns empty.
  • Coverage: caseHandoverHelpers.test.ts + registry i18n tests pass; EN/DE strings for new notification types are present.
  • Notifications: Client-consent approve/decline wired; failed API calls stay unread (no unhandled rejection).

Follow-ups (non-blocking)

  1. Merge risk: origin/dev moved ahead with Theme: value-matched hex sweep (#143) — zero visual change on dev (supersedes #155) #269 (hex sweep) and touches the same hotspots as this PR — SessionsList.tsx and SessionListItemComponent.tsx. Rebase/merge dev before merge and re-check handover UI styling.
  2. N+1 status calls: Each handover candidate list row calls apiGetCaseHandoverStatus independently. Consider batching/caching in a follow-up if lists are large.
  3. Fail-closed errors: Status fetch failures map to DENIED in stream + list (safe, but network errors look like policy denial). Optional UX improvement later.
  4. Consent failure UX: Approve/decline .catch() is silent — notification stays unread (correct), but no inline error for the user.
  5. Design tokens: Handover controls use hardcoded hex values; align with M3/token sweep when merging Theme: value-matched hex sweep (#143) — zero visual change on dev (supersedes #155) #269.

Validation run

  • npx vitest run src/components/session/caseHandoverHelpers.test.ts src/components/notificationsCenter/eventDescriptors/registry.test.ts — 19/19 passed
  • npm run lint:scripts — 0 errors (pre-existing warnings elsewhere)
  • npm run build — passed
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst

Storypapst commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

Cursor Review (vs origin/dev)

Verdict: Approve — solid case-handover feature with privacy boundaries, tests, and prior review fixes intact. One additional scoped commit pushed (0119aa2).

Fix pushed

  • isCaseHandoverAccessControlled: Split batch eligibility from access-control so archived handover sessions still fetch status and lock previews (privacy regression from CodeRabbit).
  • CaseHandoverGate: Use FETCH_ERRORS.FORBIDDEN instead of string literal.
  • SessionListItemComponent: Stop Enter/Space propagation on batch handover button to avoid row navigation.
  • sessionsListItem.styles.scss: Locked-card border now wins over generic non-active rule.
  • SessionsList: Batch summary uses role="status" / aria-live="polite".
  • useSession: Candidate lookup requests count: 15 to avoid truncating exact-id matches.

Validation

  • vitest run — helper + registry tests: 20/20 passed
  • eslint on changed TS files — 0 errors
  • stylelint on sessionsListItem.styles.scss — passed

Non-blocking follow-ups

  • N+1 per-item apiGetCaseHandoverStatus calls; consider batching/caching later.
  • Fail-closed DENIED on transient API errors (stream + list).
  • Consent approve/decline .catch() is silent — no inline user feedback on failure.
  • Handover UI uses local hex colors; align with token sweep when merging Theme: value-matched hex sweep (#143) — zero visual change on dev (supersedes #155) #269.
  • Rebase/merge dev before merge — Theme: value-matched hex sweep (#143) — zero visual change on dev (supersedes #155) #269 touches same list hotspots.
  • Pre-Dev E2E blocked until :dev image includes backend endpoints.

Not merged.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst

Storypapst commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

Cursor thermonuclear review (vs origin/dev)

Fix pushed (489e168)

  • Auth bypass (high): SessionStream used isCaseHandoverCandidate, which excludes the archive tab. Archived handover sessions could open chat content without the gate while list previews were already locked via isCaseHandoverAccessControlled. Switched the stream gate to isCaseHandoverAccessControlled (aligned with SessionListItemComponent).

Already addressed on branch (prior commits)

  • Split access-control vs batch-candidate eligibility; archive previews stay locked.
  • Read receipts skipped while gate blocks/loads.
  • Consent API failures leave notification unread (no false-positive read).
  • FETCH_ERRORS.FORBIDDEN constant, candidate lookup count: 15, a11y on batch summary.

Mergeability

  • Clean merge with origin/dev (no conflicts observed via merge-tree).

Remaining notes (no auto-fix)

  • Tests: Helper + registry unit coverage is good; no integration/E2E for gate → grant → message load or consent buttons in NotificationsCenter.
  • UX: Consent approve/decline failures are silent (notification stays unread); consider a toast/error string.
  • Scope: Large surface area (~1.9k LOC); manual QA on archive tab deep-link, batch handover, Matrix vs legacy sessions, and client consent flow recommended.

Validation run

  • vitest run src/components/session/caseHandoverHelpers.test.ts src/components/notificationsCenter/eventDescriptors/registry.test.ts — 20/20 passed
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst

Storypapst commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

Cursor review (vs dev)

Scope: Case handover access gate, list/search/batch UX, notifications consent, Matrix privacy boundaries.

Strengths

  • Gate blocks REST/Matrix message hydration until canViewContent; list previews stay hidden when locked.
  • SessionStream correctly uses isCaseHandoverAccessControlled (not batch-candidate) so archived handover sessions cannot bypass the gate.
  • Read receipts are skipped when the gate blocks content loading.
  • Handover notification types are seeded in the WP-06 descriptor registry; consent events stay system (no embedded chat preview leak).
  • useSession falls back to case-handover candidates for deep-linked session routes.

Fixes applied (pushed to codex/case-handover-20260625054644, e7aabae)

  1. Archive batch UI — hide batch handover controls on the archive tab and close batch mode when entering archive (batch selection was already impossible there via isCaseHandoverCandidate).
  2. Consent API failures — show caseHandover.error.failed when client approve/decline API calls fail; notification stays unread (no false success).

Remaining notes (no auto-fix)

  • apiGetCaseHandoverStatus errors are synthesized as DENIED in list/stream (fail-closed for content, but network errors show “access denied”).
  • Denied handover still exposes the request form in CaseHandoverGate (re-request path — confirm product intent).
  • No component tests for CaseHandoverGate, SessionStream gate flow, or NotificationsCenter consent UI.

Validation

  • npm run test:unit — caseHandoverHelpers.test.ts, registry.test.ts (20 passed).
  • npm run lint:scripts on changed files — no new errors (repo has pre-existing warnings).
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst

Storypapst commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Jun 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst

Storypapst commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator Author

Cursor PR Review

Profile: thermonuclear, fix mode: safe-fix, budget: 75m
Status: failed
Head: e7aabae9
Local full log: /Users/frankgerhardt/Documents/Codex/2026-06-24/bitte-nutze-die-in-meinem-browser/work/ai-pr-review/runs/20260626T204001Z/frontend-pr275-e7aabae9-failed.md

STDERR:
ActionRequiredError: You've hit your usage limit You've saved $140 on API model usage this month with Pro. Switch to a different model or set a Spend Limit to continue with this model. Your usage limits will reset when your monthly cycle ends on 7/16/2026.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst Storypapst mentioned this pull request Jun 30, 2026
feat(modality): getModality() selector — single source of truth (ADR-006 Step 1) #340
Merged
Storypapst and others added 10 commits July 2, 2026 09:12
@Storypapst @cursoragent
fix: skip read receipt when case handover gate blocks chat content
0a6ded2
Avoid marking sessions as read while the handover access gate is still
loading or denying message visibility.

Co-authored-by: Cursor <[email protected]>
@Storypapst @claude
fix: load case handover candidates by session route
521b99e
Co-Authored-By: Claude Opus 4.8 <[email protected]>
@Storypapst @cursoragent
fix: clear handover search candidates when query is empty
da54e1d
Prevent stale API-injected sessions from lingering after the toolbar
search is cleared, including when a person filter remains active.

Co-authored-by: Cursor <[email protected]>
@Storypapst @cursoragent
fix: hide locked handover list previews and gate labels
fa4dd25
Hide list-item aliases, attachments, and video metadata when handover
access is blocked. Add accessible labels to the handover gate form.

Co-authored-by: Cursor <[email protected]>
@Storypapst @cursoragent
fix: handle failed case handover consent API calls
49a4efc
Avoid unhandled rejections on consent failures and keep the notification unread.

Co-authored-by: Cursor <[email protected]>
@Storypapst @cursoragent
fix: address scoped CodeRabbit review findings for case handover
871b829
Fix handover list button BEM selectors, guard useSession candidate lookup
failures, and add batch-mode a11y labels.

Co-authored-by: Cursor <[email protected]>
@Storypapst @cursoragent
fix: address remaining scoped review findings for case handover
92bd471
Split access-control from batch eligibility so archived handover
sessions still lock previews. Add small a11y, CSS, and lookup fixes.

Co-authored-by: Cursor <[email protected]>
@Storypapst @cursoragent
fix: apply case handover gate for archived session views
36312ce
SessionStream must use access-control eligibility, not batch-candidate
eligibility, so archived handover sessions cannot bypass the chat gate.

Co-authored-by: Cursor <[email protected]>
@Storypapst @cursoragent
fix: tighten case handover archive batch and consent errors
cf5a8a4
Hide batch handover UI on the archive tab.
Show API errors when client consent decisions fail.

Co-authored-by: Cursor <[email protected]>
@Storypapst
fix: pass case handover gate session id
6b35acf
@Storypapst
Storypapst force-pushed the codex/case-handover-20260625054644 branch from e7aabae to 6b35acf Compare July 2, 2026 07:18
@Storypapst
Storypapst marked this pull request as ready for review July 2, 2026 07:18
@Storypapst

Storypapst commented Jul 2, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator Author

Rebased this PR onto current dev and resolved the stale conflicts on the current frontend baseline.

What changed during the rescue pass:

  • Kept the current Matrix/chat transport message-loading path in SessionStream and layered the case-handover gate/status check on top.
  • Kept the current live-chat/nearby session-list UI and restored the case-handover locked-preview/status/batch-selection behavior there.
  • Kept the current service-origin endpoint split and added the case-handover batch/candidates/reasons endpoints via userServiceOrigin.
  • Marked the PR ready for review.

Local validation:

  • npm ci --legacy-peer-deps to refresh the stale local dependency tree (react-router-dom now resolves to 7.18.0 as required by package.json).
  • npm run test:unit -- src/components/session/caseHandoverHelpers.test.ts passes.
  • npm run build passes; remaining output is existing warnings only.
  • Targeted ESLint on the touched session files has no errors; existing warnings remain.

Current branch relation: origin/dev...HEAD is 0 12, so the PR is no longer behind dev. GitHub CI/checks are still pending at the time of this comment.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sentry[bot]
sentry Bot reviewed Jul 2, 2026
View reviewed changes
Comment thread src/components/sessionsListItem/SessionListItemComponent.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/notificationsCenter/NotificationsCenter.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

@coderabbitai review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Jul 2, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot requested changes Jul 2, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 8

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/components/session/caseHandoverGate.styles.scss (1)

1-150: 📐 Maintainability & Code Quality | 🟠 Major | 🏗️ Heavy lift

Entire stylesheet hardcodes colors/radii/shadows instead of reusing tokens; no explicit focus states.

Every value here (#ffffff, #c4000b, #ffd8d4, border-radius, box-shadow, etc.) is a one-off literal — none reference existing Sass tokens/mixins. Given the "Active item" design language already defines a shared focus-ring treatment app-wide, this gate reimplements colors from scratch rather than reusing it. Additionally, none of the interactive controls (.caseHandoverGate__reason input, .caseHandoverGate__explanation, .caseHandoverGate__submit) define an explicit :focus-visible style, relying entirely on browser defaults that may be stripped by a global reset elsewhere in the app.

As per path instructions: "Prefer existing design tokens, mixins, and shared component states. Flag hardcoded one-off styling when the same control/state already exists elsewhere." As per coding guidelines: "avoid one-off hardcoded CSS for controls, active list states, focus rings, and responsive layout."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/session/caseHandoverGate.styles.scss` around lines 1 - 150,
The stylesheet for caseHandoverGate hardcodes colors, radii, and shadows instead
of reusing shared Sass tokens/mixins, and its interactive controls lack explicit
focus-visible styling. Refactor the rules in caseHandoverGate.styles.scss to
replace one-off literals with the existing design system tokens and shared
“active item”/focus-ring treatment, and add consistent :focus-visible states for
.caseHandoverGate__reason input, .caseHandoverGate__explanation, and
.caseHandoverGate__submit.

Sources: Coding guidelines, Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/components/notificationsCenter/notificationsCenter.styles.scss`:
- Around line 294-299: `__consentActions` is a duplicate of the existing
`__detailActions` flex layout, so avoid keeping two identical style blocks.
Update the notifications center SCSS to reuse the existing `__detailActions`
rule or extract a shared mixin/placeholders for the common flex/gap/wrap/center
layout, then apply it to `__consentActions` so both states stay in sync.

In `@src/components/notificationsCenter/NotificationsCenter.tsx`:
- Around line 588-613: Update the consent UI in NotificationsCenter so the
`caseHandoverConsentError` message is announced by assistive tech by giving the
error container an alert/live-region role, and add fallback default strings to
the `translate` calls for `caseHandover.consent.approve`,
`caseHandover.consent.decline`, and `caseHandover.error.failed` to match the
existing translation pattern used elsewhere in `NotificationsCenter`.

In `@src/components/session/CaseHandoverGate.tsx`:
- Around line 4-10: The import in CaseHandoverGate is using the `../../api`
barrel, which pulls in extra code unnecessarily. Update the imports to use the
specific modules that export `apiGetCaseHandoverReasons`,
`apiRequestCaseHandoverAccess`, `CaseHandoverReason`, and `CaseHandoverStatus`
from `../../api/apiCaseHandover`, and `FETCH_ERRORS` from `../../api/fetchData`.
Keep the rest of the `CaseHandoverGate` component unchanged.
- Around line 17-47: The local form state in CaseHandoverGate is only
initialized once, so switching to a different session can leave stale
reason/explanation/error values in the UI. Update the component’s
sessionId-driven behavior in CaseHandoverGate to reset reasonCode, explanation,
and error whenever sessionId changes, while still preserving the existing
reasons loading logic and selected reason validation. Make the reset happen
alongside the current useEffect-based state management so the form always
reflects the active session.

In `@src/components/session/caseHandoverHelpers.test.ts`:
- Around line 63-79: Add direct negative-path test coverage for
isCaseHandoverAccessControlled in caseHandoverHelpers.test.ts. The current tests
only verify the allowed/access-granted path, so mirror the existing negative
scenarios already used for isCaseHandoverCandidate (asker, group, enquiry-status
cases) and assert isCaseHandoverAccessControlled returns false for each. Use the
existing helper and fixture symbols such as baseSession, consultantUser,
MY_SESSION_TYPE, and the access-control function itself to keep the tests
aligned with SessionStream gating behavior.

In `@src/components/session/caseHandoverHelpers.ts`:
- Around line 19-24: The CaseHandoverCandidateInput interface is using loose any
types for activeSession and userData, which leaves property access in the
session handover helpers unchecked. Replace those any annotations with the
existing typed session/user interfaces from sessionHelpers or globalState, and
update any related function signatures in caseHandoverHelpers to use those
concrete types so accesses like item.status, consultant?.id, isGroup, isSession,
and isEmptyEnquiry are type-safe.

In `@src/components/session/SessionStream.tsx`:
- Around line 376-391: The forced load-and-mark-read sequence is duplicated
between the gate-status effect and handleCaseHandoverStatusChange in
SessionStream. Extract the shared setLoading(true) →
fetchSessionMessagesRef.current(true).then(setSessionRead).catch(setMessagesItem({
messages: [] })).finally(setLoading(false)) flow into a single helper/callback
such as loadAfterCaseHandoverGranted, and call that helper from both places so
the loading and read-marking behavior stays centralized.
- Around line 361-421: SessionStream is retaining the previous session’s gate
and messages state when activeSession.item.id changes because the component
stays mounted, so clear caseHandoverStatus and messagesItem immediately on
session switch. Update the SessionStream effect that references
apiGetCaseHandoverStatus, setCaseHandoverStatus, and setMessagesItem so the old
session state is reset synchronously when the session id changes, or key
SessionStream by activeSession.item.id in the parent SessionView to force a
fresh mount.

---

Outside diff comments:
In `@src/components/session/caseHandoverGate.styles.scss`:
- Around line 1-150: The stylesheet for caseHandoverGate hardcodes colors,
radii, and shadows instead of reusing shared Sass tokens/mixins, and its
interactive controls lack explicit focus-visible styling. Refactor the rules in
caseHandoverGate.styles.scss to replace one-off literals with the existing
design system tokens and shared “active item”/focus-ring treatment, and add
consistent :focus-visible states for .caseHandoverGate__reason input,
.caseHandoverGate__explanation, and .caseHandoverGate__submit.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 3c69b905-f654-4ff6-b175-0e40139dbb80

📥 Commits

Reviewing files that changed from the base of the PR and between 8ad13da and 6b35acf.

📒 Files selected for processing (18)
  • src/api/apiCaseHandover.ts
  • src/api/index.ts
  • src/components/notificationsCenter/NotificationsCenter.tsx
  • src/components/notificationsCenter/eventDescriptors/registry.test.ts
  • src/components/notificationsCenter/eventDescriptors/registry.ts
  • src/components/notificationsCenter/notificationsCenter.styles.scss
  • src/components/session/CaseHandoverGate.tsx
  • src/components/session/SessionStream.tsx
  • src/components/session/caseHandoverGate.styles.scss
  • src/components/session/caseHandoverHelpers.test.ts
  • src/components/session/caseHandoverHelpers.ts
  • src/components/sessionsList/SessionsList.tsx
  • src/components/sessionsList/sessionsList.styles.scss
  • src/components/sessionsListItem/SessionListItemComponent.tsx
  • src/components/sessionsListItem/sessionsListItem.styles.scss
  • src/hooks/useSession.tsx
  • src/resources/i18n/de/common.json
  • src/resources/i18n/en/common.json
💤 Files with no reviewable changes (7)
  • src/components/sessionsListItem/sessionsListItem.styles.scss
  • src/components/sessionsList/sessionsList.styles.scss
  • src/resources/i18n/en/common.json
  • src/components/sessionsListItem/SessionListItemComponent.tsx
  • src/hooks/useSession.tsx
  • src/resources/i18n/de/common.json
  • src/components/sessionsList/SessionsList.tsx
📜 Review details
🧰 Additional context used
📓 Path-based instructions (6)
src/api/**

📄 CodeRabbit inference engine (.understand-anything/ORISO-ECOSYSTEM.md)

When changing API usage under src/api/, verify API compatibility against the backend contracts outside this graph.

Files:

  • src/api/index.ts
  • src/api/apiCaseHandover.ts
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx,js,jsx}: Keep shared behavior in hooks/utilities when multiple screens need the same state, route, selection, or formatting logic.
UI changes must have accessible focus/keyboard behavior and must not rely on color alone.

Files:

  • src/api/index.ts
  • src/components/session/caseHandoverHelpers.test.ts
  • src/components/session/caseHandoverHelpers.ts
  • src/components/session/CaseHandoverGate.tsx
  • src/components/notificationsCenter/eventDescriptors/registry.ts
  • src/components/notificationsCenter/NotificationsCenter.tsx
  • src/components/notificationsCenter/eventDescriptors/registry.test.ts
  • src/components/session/SessionStream.tsx
  • src/api/apiCaseHandover.ts
**/*.{scss,sass,css,ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

Reuse existing design tokens, Sass mixins, and component patterns; avoid one-off hardcoded CSS for controls, active list states, focus rings, and responsive layout.

Files:

  • src/api/index.ts
  • src/components/session/caseHandoverHelpers.test.ts
  • src/components/session/caseHandoverHelpers.ts
  • src/components/notificationsCenter/notificationsCenter.styles.scss
  • src/components/session/caseHandoverGate.styles.scss
  • src/components/session/CaseHandoverGate.tsx
  • src/components/notificationsCenter/eventDescriptors/registry.ts
  • src/components/notificationsCenter/NotificationsCenter.tsx
  • src/components/notificationsCenter/eventDescriptors/registry.test.ts
  • src/components/session/SessionStream.tsx
  • src/api/apiCaseHandover.ts
**

⚙️ CodeRabbit configuration file

**: # AGENTS.md

Context First

  • Treat dev as the normal integration branch for ORISO feature PRs unless the task says otherwise.
  • Before non-trivial changes, skim .understand-anything/README.md, .understand-anything/ARCHITECTURE.md, and .understand-anything/knowledge-graph.json for fast repo context.
  • Use CONTEXT.md for Activity Timeline and notification vocabulary; avoid inventing parallel terms.

Frontend Rules

  • Keep behavior in shared hooks/utilities when multiple screens need the same state, route, selection, or formatting logic.
  • Reuse existing design tokens, Sass mixins, and component patterns. Avoid one-off hardcoded CSS for controls, active list states, focus rings, and responsive layout.
  • Preserve Matrix/chat/draft privacy boundaries. Do not move plaintext previews or draft contents into server-visible state.
  • UI changes need accessible focus/keyboard behavior and should not rely on color alone.

Validation

  • Prefer red-green TDD for behavior changes: add or update the smallest test that would fail without the fix, then implement.
  • Useful commands:
    • npm run test:unit
    • npm run lint:scripts
    • npm run lint:style
    • npm run build
  • If a full command is too expensive or blocked by existing unrelated failures, run the narrowest relevant command and state the blocker precisely.

Review Expectations

  • Cursor should compare PRs against origin/dev for normal ORISO feature work.
  • CodeRabbit is optional/manual and should not be treated as the primary automated reviewer.
  • Automated review should flag missing tests, duplicated UI architecture, unsafe privacy changes, and mergeability risks.
  • Only auto-fix issues that are clearly scoped and testable. Leave architectural or ambiguous changes as review comments.

**: # Activity Timeline & Notifications

The consultant- and client-facing history of everything that happens around a case: enquiries, accept/deny, messages, drafts, appointments, handovers, call...

Files:

  • src/api/index.ts
  • src/components/session/caseHandoverHelpers.test.ts
  • src/components/session/caseHandoverHelpers.ts
  • src/components/notificationsCenter/notificationsCenter.styles.scss
  • src/components/session/caseHandoverGate.styles.scss
  • src/components/session/CaseHandoverGate.tsx
  • src/components/notificationsCenter/eventDescriptors/registry.ts
  • src/components/notificationsCenter/NotificationsCenter.tsx
  • src/components/notificationsCenter/eventDescriptors/registry.test.ts
  • src/components/session/SessionStream.tsx
  • src/api/apiCaseHandover.ts
src/**/*.{ts,tsx,js,jsx}

⚙️ CodeRabbit configuration file

src/**/*.{ts,tsx,js,jsx}: Check behavior against the surrounding ORISO flow, not only types.
Flag duplicated route/state logic, missing error/loading handling,
privacy regressions around Matrix/chat/drafts, and changes that should
be expressed through shared hooks or utilities instead of local flags.

Files:

  • src/api/index.ts
  • src/components/session/caseHandoverHelpers.test.ts
  • src/components/session/caseHandoverHelpers.ts
  • src/components/session/CaseHandoverGate.tsx
  • src/components/notificationsCenter/eventDescriptors/registry.ts
  • src/components/notificationsCenter/NotificationsCenter.tsx
  • src/components/notificationsCenter/eventDescriptors/registry.test.ts
  • src/components/session/SessionStream.tsx
  • src/api/apiCaseHandover.ts
src/**/*.scss

⚙️ CodeRabbit configuration file

src/**/*.scss: Prefer existing design tokens, mixins, and shared component states.
Flag hardcoded one-off styling when the same control/state already
exists elsewhere. Active/focus/list-item behavior should stay shared.

Files:

  • src/components/notificationsCenter/notificationsCenter.styles.scss
  • src/components/session/caseHandoverGate.styles.scss
🪛 React Doctor (0.5.8)
src/components/session/CaseHandoverGate.tsx

[warning] 4-4: This ships extra code to your users & slows page load. Import directly from: "../../api/apiCaseHandover", "../../api/fetchData".

Import from the direct path: import { Button } from './components/Button' instead of ./components

(no-barrel-import)

src/components/session/SessionStream.tsx

[warning] 299-299: This loops over your list twice because .map().filter(Boolean) makes two passes, so use .flatMap() to change & drop items in one pass

Use .flatMap(item => condition ? [value] : []) to change and drop items in one pass, instead of building a throwaway array in between

(js-flatmap-filter)

🔇 Additional comments (15)
src/components/notificationsCenter/notificationsCenter.styles.scss (3)

301-321: Reuse the primary-action red and add :focus-visible — still unresolved.

__consentButton--approve hardcodes a third red (#c4000b) distinct from the established primary action red (#e63946 used by __openButton/__chatComposerSend), and __consentButton has no :focus-visible treatment while sibling controls (__chip, __search) reuse list-item-focus-treatment.

Source: Path instructions


532-532: Range media-query syntax (width <= 1200px) — still unresolved for IE11 target.


745-745: Range media-query syntax (width <= 900px) — still unresolved for IE11 target.

src/components/session/SessionStream.tsx (2)

393-405: apiGetCaseHandoverStatus failure maps to hard DENIED regardless of cause.

Network/timeout errors get the same terminal DENIED status as an actual authorization refusal, blocking retry via a transient failure.


243-350: LGTM! Gating logic inside fetchSessionMessages correctly bails out (clears messages, stops loading) when the handover gate applies and access hasn't been forced/granted, and real-time refresh paths (Matrix timeline, live-message emitter, fallback interval) all funnel through the same gated function.

src/api/apiCaseHandover.ts (2)

5-12: | string still collapses CaseHandoverStatusValue to string — unresolved.


79-122: Mixed endpoint base paths (dynamic sessionBase vs static caseHandover* constants) — unresolved.

Still worth confirming with the backend contract given this is a new API surface under src/api/.

Source: Coding guidelines

src/api/index.ts (1)

10-10: LGTM!

src/components/notificationsCenter/NotificationsCenter.tsx (1)

357-382: LGTM! The previously-flagged missing .catch() is now handled and surfaces caseHandoverConsentError.

src/components/session/caseHandoverHelpers.test.ts (1)

9-9: 🎯 Functional Correctness

No change needed SESSION_LIST_TYPES is an enum export, so import type { SESSION_LIST_TYPES as SessionListType } and the as SessionListType cast are valid.

			> Likely an incorrect or invalid review comment.
src/components/session/caseHandoverHelpers.ts (2)

26-53: LGTM!


55-72: LGTM!

src/components/session/CaseHandoverGate.tsx (1)

118-161: LGTM! Accessibility labels for the radiogroup and textarea are already in place.

src/components/notificationsCenter/eventDescriptors/registry.ts (1)

218-239: LGTM! Matches the existing descriptor pattern and correctly targets the conversation per the handover action-target rule.

src/components/notificationsCenter/eventDescriptors/registry.test.ts (1)

82-117: LGTM!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/components/notificationsCenter/notificationsCenter.styles.scss Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/notificationsCenter/NotificationsCenter.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/session/CaseHandoverGate.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/session/CaseHandoverGate.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/session/caseHandoverHelpers.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/session/caseHandoverHelpers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/session/SessionStream.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/session/SessionStream.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Storypapst added 3 commits July 2, 2026 10:09
@Storypapst
fix: address case handover review feedback
6ec0f7a
@Storypapst
fix: harden case handover consent and list state
792f2db
@Storypapst
fix: avoid denied state for handover status failures
8fcb2f4
coderabbitai[bot]
coderabbitai Bot approved these changes Jul 2, 2026
View reviewed changes
@Storypapst

Storypapst commented Jul 2, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator Author

Follow-up cleanup on the current head:

  • Fixed the session-list handover status fallback so only an explicit FETCH_ERRORS.FORBIDDEN is rendered as denied access. Transient/network/server failures now clear the status instead of presenting a business denial.
  • Verified the endpoint split against the UserService controller: reasons, candidates, and batch are static /service/users/case-handover/* endpoints, while status/request/consent are session-scoped /service/users/sessions/{sessionId}/case-handover... endpoints.

Local validation on commit 8fcb2f4:

  • npm exec -- tsc --noEmit --pretty false
  • npm exec -- eslint src/components/sessionsListItem/SessionListItemComponent.tsx (existing warnings only)
  • git diff --check
  • npm run build (existing project warnings only)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst
Storypapst merged commit 5a86af5 into dev Jul 2, 2026
6 of 7 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst
Storypapst deleted the codex/case-handover-20260625054644 branch July 2, 2026 10:27
@coderabbitai coderabbitai Bot mentioned this pull request Jul 20, 2026
[Bug Fix Run] Show the DPA contract and transfer encrypted handover history #561
Closed
5 of 6 tasks
@Storypapst Storypapst mentioned this pull request Jul 22, 2026
feat: add case handover access gate #671
Closed
This was referenced Aug 2, 2026
Storybook: case-handover and feedback mails #864
Closed
Refresh tenant call permissions when a new session opens #908
Closed
In-conversation client consent card for case-handover requests #954
Closed
feat(session): inline client consent card for case-handover requests #955
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] approved these changes
@shanzaeimran shanzaeimran Awaiting requested review from shanzaeimran
@shazia-k shazia-k Awaiting requested review from shazia-k
+1 more reviewer
@sentry sentry[bot] sentry[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@Storypapst
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.