GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — feat(modality): getModality() selector — single source of truth (ADR-006 Step 1) by Storypapst · Pull Request #340 · OpenResilienceInitiative/ORISO-Frontend Conversation
Collaborator
WhyA conversation's modality (Live Chat / Agency Counselling / Internal Group / Self-Help) is re-derived from scattered booleans ( WhatAdds Acceptance
Affected repos
Refs ADR-006 (conversation_type as persisted modality), Step 1 (frontend read-contract first). 🤖 Built test-first in an isolated worktree off
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
…uth (ADR-006 Step 1) Introduce a pure getModality(item) selector + Modality enum so the four conversation modalities (Agency Counselling, Live Chat, Internal Group, Self-Help) are decided in ONE place instead of being re-derived from scattered booleans at ~90 call sites — the documented root cause of the recurring 'touching the live chat goes fuzzy' regressions. Prefers an explicit backend conversationType when present (ADR-006 target) and falls back to the verified heuristic (chat -> repetitive?SELF_HELP:INTERNAL_GROUP; else teamSession -> INTERNAL_GROUP; else ANONYMOUS -> LIVE_CHAT; else AGENCY_COUNSELLING) while the field is rolled out. Additive only: new file + 8 vitest cases; no call sites migrated yet (the ~90-site sweep is deferred to avoid colliding with #126/#275). Co-Authored-By: Claude Opus 4.8 <[email protected]>
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Collaborator
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Shirloin
approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. |