[P1] U01: Connect the React authenticated shell and authorized conversation history #16

Open
opened 2026-10-21 20:29:26 +02:00 by amiryahaya · 0 comments
Owner

Backlog ID: U01 | Priority: P1 | Phase: M2 — Authorized conversations and Engine contracts

Outcome and scope

Connect the existing static React shell to session and conversation APIs with new/list/open flows, accessible loading/error/expiry states and English/Bahasa Melayu text support.

Dependencies and gates

Engineering prerequisites: #13 (C01), #9 (F04)

Synthetic-data development may proceed. Production use remains subject to the decision gates in the SRS.

Starting points

web/src/App.tsx; web/src/auth/; web/src/conversations/; web/src/api/

These are current files or proposed responsibility boundaries; finalize a focused implementation plan before coding. Existing local scaffolding is uncommitted and is not evidence of completion.

Acceptance criteria

  • Create/list/open conversation flows use server-authorized fields; the client cannot set trusted access attributes.
  • Logout and session expiry clear transcript/source state and active requests; protected text is absent from local storage, service workers, telemetry and crash reports.
  • Expired or revoked conversation access removes protected state; pagination and error UX do not expose unavailable titles/metadata.
  • Keyboard navigation, accessible labels and Unicode/mixed-language rendering work; UI language copy is configurable.

Verification

Browser tests cover create/reopen, expiry/logout, revoked history, cross-user switching and English/Malay content; inspect browser storage/network telemetry.

Behavior changes follow Red → Green → Refactor. Run affected Rust shared contract/unit tests and real PostgreSQL/Qdrant/runtime integration tests where applicable; frontend changes run typecheck/build and the relevant browser tests. Record exact commands/results in the implementation PR. Documentation/decision tasks use recorded review evidence.

Requirements and design

FR-UX-001–002, 007; NFR-I18N-001; architecture §9.4

Sources: SRS, system design. Local planning context: docs/implementation-plan.md and docs/development-backlog.md (not published by this task).

Security impact: Use synthetic fixtures until approved for operational data. Preserve current authorization, markings, provenance and default-deny behavior; exclude protected payloads/secrets from operational telemetry. No classified-deployment or PQC-compliance claim is implied by closing this issue.

Parent roadmap: #1

**Backlog ID:** U01 | **Priority:** P1 | **Phase:** M2 — Authorized conversations and Engine contracts ## Outcome and scope Connect the existing static React shell to session and conversation APIs with new/list/open flows, accessible loading/error/expiry states and English/Bahasa Melayu text support. ## Dependencies and gates **Engineering prerequisites:** #13 (C01), #9 (F04) Synthetic-data development may proceed. Production use remains subject to the decision gates in the SRS. ## Starting points web/src/App.tsx; web/src/auth/; web/src/conversations/; web/src/api/ These are current files or proposed responsibility boundaries; finalize a focused implementation plan before coding. Existing local scaffolding is uncommitted and is not evidence of completion. ## Acceptance criteria - [ ] Create/list/open conversation flows use server-authorized fields; the client cannot set trusted access attributes. - [ ] Logout and session expiry clear transcript/source state and active requests; protected text is absent from local storage, service workers, telemetry and crash reports. - [ ] Expired or revoked conversation access removes protected state; pagination and error UX do not expose unavailable titles/metadata. - [ ] Keyboard navigation, accessible labels and Unicode/mixed-language rendering work; UI language copy is configurable. ## Verification Browser tests cover create/reopen, expiry/logout, revoked history, cross-user switching and English/Malay content; inspect browser storage/network telemetry. Behavior changes follow Red → Green → Refactor. Run affected Rust shared contract/unit tests and real PostgreSQL/Qdrant/runtime integration tests where applicable; frontend changes run typecheck/build and the relevant browser tests. Record exact commands/results in the implementation PR. Documentation/decision tasks use recorded review evidence. ## Requirements and design FR-UX-001–002, 007; NFR-I18N-001; architecture §9.4 Sources: [SRS](https://forgejo.primatekun.tech/primatekuntech/rag-rust/src/branch/main/docs/SRS.md), [system design](https://forgejo.primatekun.tech/primatekuntech/rag-rust/src/branch/main/docs/architecture.md). Local planning context: `docs/implementation-plan.md` and `docs/development-backlog.md` (not published by this task). **Security impact:** Use synthetic fixtures until approved for operational data. Preserve current authorization, markings, provenance and default-deny behavior; exclude protected payloads/secrets from operational telemetry. No classified-deployment or PQC-compliance claim is implied by closing this issue. **Parent roadmap:** #1
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
primatekuntech/rag-rust#16
No description provided.