Skip to content

feat(client): improve chat UI shortcuts and markdown rendering robustness - #20

Merged
rcyw merged 1 commit into
mainfrom
feat/client-chat-ui-shortcuts-markdown-normalization
Mar 2, 2026
Merged

feat(client): improve chat UI shortcuts and markdown rendering robustness#20
rcyw merged 1 commit into
mainfrom
feat/client-chat-ui-shortcuts-markdown-normalization

Conversation

@rcyw

@rcyw rcyw commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR improves apps/client chat and right-panel UX, and hardens markdown rendering behavior for common LLM output patterns.

Changes

  • Chat input

    • Replace send icon with upward arrow.
    • Add send shortcut tooltip (Enter keycap).
    • Align stop button visual style with the send button.
  • Shortcut tooltip UX

    • Add reusable ShortcutTooltipContent.
    • Add platform-aware shortcut formatter (mod => on macOS, Ctrl otherwise).
    • Add shortcut tooltips for panel collapse/expand, fullscreen close (Esc), and right-panel tab cycle (Cmd/Ctrl + Shift + V).
  • Assistant response readability

    • Add markdown tone support and apply high-contrast tone for assistant merged text.
    • Slightly increase assistant step section contrast.
  • Markdown normalization robustness

    • Extract markdown normalization into lib/markdown-normalize.ts.
    • Normalize 1) ordered list markers and immediate nested bullets.
    • Protect fenced code sections (including nested fences in ```md samples).
    • Auto-close unbalanced fences safely.
  • Tests

    • Update SSE summary tests (message.part.updated non-loggable expectation).
    • Add markdown-normalize test coverage for list/fence edge cases.
    • Add shortcut unit tests for platform mapping and key-sequence formatting.
  • Docs

    • Update CHANGELOG.md under [Unreleased].

Validation

  • pnpm --filter @cofy-x/deck-app typecheck
  • pnpm --filter @cofy-x/deck-app test

Both passed.

@rcyw
rcyw merged commit 79298b9 into main Mar 2, 2026
@rcyw
rcyw deleted the feat/client-chat-ui-shortcuts-markdown-normalization branch March 2, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant