Repository navigation
Workspace UI flow: P0 safety fixes and a smoother case flow - #26
Merged
Merged
Conversation
A first visit, an unreadable saved workspace and an unreadable encrypted workspace now start with no demo patient or encounter, so the first case never lands in a seeded record. A saved demo patient's placeholder note is no longer sent to AADI as case history. (UI flow audit P0 #1) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ta9C6ZqRNR17D5YJczMjw
A chip still writes its opening sentence into the composer, but the sentence is removed once at submit, so it no longer becomes the SOAP note's Keluhan Utama or the AADI chief complaint. An opening with nothing after it sends nothing. (UI flow audit P0 #2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ta9C6ZqRNR17D5YJczMjw
…ounter When the open encounter already holds a case and the typed age or sex differs from what it knows (saved patient first, then its first case), nothing is sent: the composer offers Kasus baru (a new encounter without the old patient) or Tetap di encounter ini. Unknown values never block. (UI flow audit P0 #3) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ta9C6ZqRNR17D5YJczMjw
Each mode chip and slash-picker row now names its kind: AI for the five modes AADI analyses, Template for the thirteen that only reorganise the typed text. A local draft's chat line says it was built from the typed text without AI analysis. (UI flow audit P0 #4) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ta9C6ZqRNR17D5YJczMjw
…t workspace Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ta9C6ZqRNR17D5YJczMjw
Review findings on the case-boundary guard: - a Kasus baru choice whose AADI analysis fails now sends the local SOAP fallback to a new encounter too, never to the previous patient's; - a held case belongs to the encounter it was held in, so opening another encounter voids the choice instead of filing it there unchecked; - the held text is put in the composer, so a held scribe transcript is not lost when the dialog closes or the doctor types. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ta9C6ZqRNR17D5YJczMjw
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Tambah Konteks, Pasien, Templat, Pusat perintah and the other dialogs now open over a running analysis instead of silently cancelling it and putting the case back in the composer. Scribe still cancels, because it starts a new draft. (UI flow audit #5) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ta9C6ZqRNR17D5YJczMjw
While a draft's required review marks are unticked, a line under the document head says so and opens Peninjauan, instead of a silently disabled status option. (UI flow audit #6) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ta9C6ZqRNR17D5YJczMjw
Mulai Scribe becomes a secondary button so sending is the only primary action in the composer, and the Standar/Extended select shows only for template modes, the only ones it changes. (UI flow audit #9, #10) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ta9C6ZqRNR17D5YJczMjw
The note predates AADI and told doctors to connect a service that now exists. Its unused style goes too. (UI flow audit #12) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ta9C6ZqRNR17D5YJczMjw
…hows it scrolls Between 1201 and 1460 px, with the document pane open, Scribe and Konteks show their icon only (label kept as accessible name and tooltip), so the composer toolbar no longer wraps to two rows. The chip row fades at its right edge to show that more chips scroll in. (UI flow audit #11) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ta9C6ZqRNR17D5YJczMjw
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ta9C6ZqRNR17D5YJczMjw
gaffercode
marked this pull request as ready for review
November 26, 2026 20:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Gafferness · project thread
Status: REVIEW. Do not merge without Gaffer's approval.
Summary
Part 1: P0 safety fixes
These stop wrong or mixed data from entering a clinical document.
Part 2: smoother flow (audit #5, #6, #9-#12)
Verification
npx vitest run: 849 passed, 23 skipped. The skipped tests need private data, as before.npm run lintandnpx tsc --noEmit: pass.next devin local auth mode, at 1440, 1210, 1024 and 390 px. The P0 flows were checked by hand. The composer toolbar is one row (36 px) at 1440, 1210 and 1024 px, and two rows at 390 px, as the phone layout intends.Monorepo port
The public repo is regenerated by
scripts/export-split.mjs. These commits must also be applied in the monorepo capsule before the next export.🤖 Generated with Claude Code
https://claude.ai/code/session_012ta9C6ZqRNR17D5YJczMjw