Commit Graph

287 Commits

Author SHA1 Message Date
Nicolas Varrot
0bf25f40a9 feat: add suggestion chips to empty chat state
Clickable example prompts appear when a session has no messages,
giving users quick-start ideas. 2x2 grid on desktop, stacked on mobile.
Fully i18n'd (EN/FR).
2026-02-13 23:55:26 +00:00
togotago
f46d233553 fix: reconcile deleted sessions blacklist against gateway (#4)
Fix: reconcile deleted-sessions blacklist against gateway on each refresh. Permanent sessions like agent:main:main auto-recover from accidental deletion. Closes #3
2026-02-14 00:52:06 +01:00
Nicolas Varrot
d3b1b931b2 fix: clearer update indicator — current version + separate green badge for available update 2026-02-13 22:11:04 +00:00
Nicolas Varrot
89da84dbd6 docs: mark #67 and #68 as done 2026-02-13 22:02:05 +00:00
Nicolas Varrot
6048b9ef13 chore: bump v1.40.1 2026-02-13 22:01:47 +00:00
Nicolas Varrot
d478eee638 fix: cursor desync in highlighted textarea (#68) + update indicator (#67)
- Remove font-style:italic from .ht-italic (different glyph widths cause desync)
- Remove font-weight:600 from .ht-heading (bolder glyphs are wider)
- Remove background/border-radius from code token spans
- Remove text-decoration from .ht-link
- Token spans now ONLY use color — zero text geometry changes
- Use inherit for font-size/line-height in shared .ht-backdrop/.ht-textarea
- Add update check hook: polls GitHub releases, shows indicator in sidebar
2026-02-13 22:01:25 +00:00
Nicolas Varrot
525973b56d chore: bump version to v1.40.0 2026-02-13 21:55:10 +00:00
Nicolas Varrot
2b095278c7 feat: session filter chips in sidebar — filter by channel type, active status 2026-02-13 21:54:45 +00:00
Nicolas Varrot
f1ce872206 chore: bump version to v1.39.2 2026-02-13 20:53:07 +00:00
Nicolas Varrot
48814a263c fix: improve avatar fallback in header, strengthen session switch reset (#63) 2026-02-13 20:52:41 +00:00
Nicolas Varrot
452a18b5e9 chore: bump version to v1.39.1 2026-02-13 20:51:21 +00:00
Nicolas Varrot
84512b1f15 fix: new message indicator, cursor desync, button overlap, avatar fallback
- #63: 'New messages' label only shows when actual new messages arrive while scrolled up; plain arrow button shown otherwise
- #64: Fix cursor desync in HighlightedTextarea by matching backdrop border width to textarea
- #65: Move floating buttons inside scroll container with sticky positioning to prevent overlap with growing textarea
- #66: Graceful fallback to Bot icon when agent avatar image fails to load
2026-02-13 20:51:09 +00:00
Nicolas Varrot
c47bca4e2e chore: bump version to v1.39.0 2026-02-13 19:53:17 +00:00
Nicolas Varrot
c596bdd99a feat: line numbers in code blocks with toggle button
- Show line numbers for code blocks with more than 3 lines
- Toggle button (# icon + line count) in the language header bar
- Preference persisted in localStorage
- Line numbers are non-selectable (won't copy with code)
- Hidden for short snippets to reduce visual noise
2026-02-13 19:53:04 +00:00
Nicolas Varrot
d3989e532d fix: prevent iOS auto-zoom on input focus (maximum-scale=1) 2026-02-13 18:16:21 +00:00
Nicolas Varrot
1927fce788 fix: restore textarea border, only remove accent focus ring 2026-02-13 18:14:46 +00:00
Nicolas Varrot
81cf110f4b chore: bump version to v1.38.0 2026-02-13 18:13:22 +00:00
Nicolas Varrot
51de6984b6 feat: message grouping — hide avatar and reduce spacing for consecutive same-role messages
Consecutive messages from the same role within 2 minutes are visually
grouped: subsequent messages hide the avatar (keeping alignment) and
use tighter vertical spacing. Date separators and role changes break
groups. This matches modern chat UX patterns (Discord, Telegram).
2026-02-13 18:12:44 +00:00
Nicolas Varrot
2f25c45942 fix: remove textarea inner border, keep only container border 2026-02-13 17:57:03 +00:00
Nicolas Varrot
0329fa48bf fix: replace ugly focus ring with subtle border color change on textarea 2026-02-13 17:55:19 +00:00
Nicolas Varrot
ac29646dc8 fix: hide non-essential header buttons on mobile (sound, export, theme, language) 2026-02-13 17:50:49 +00:00
Nicolas Varrot
219d487c43 fix: hide preview and syntax highlight buttons on mobile to give textarea more space 2026-02-13 17:50:00 +00:00
Nicolas Varrot
153d165457 fix: navigator not defined in test environment 2026-02-13 15:51:07 +00:00
Nicolas Varrot
ea8e5e3dab chore: bump version to v1.37.0 2026-02-13 15:46:50 +00:00
Nicolas Varrot
622aa107f8 feat: show response generation time on assistant messages
Track how long each assistant response took to generate and display
it subtly next to the timestamp (e.g. '· 12.3s'). The timing is
measured from the first streaming delta to the final state, and
preserved across the history reload that follows stream completion.

Only visible for messages generated during the current session.
2026-02-13 15:46:29 +00:00
Nicolas Varrot
d31374baf7 docs: add missing features to README (PWA, notifications, keyboard shortcuts, accessibility) 2026-02-13 15:27:10 +00:00
Nicolas Varrot
a9ed8872fb chore: bump version to v1.36.1 2026-02-13 15:12:15 +00:00
Nicolas Varrot
d3e8f3143a fix: sync html lang attribute with i18n locale selection
- Set document.documentElement.lang on initial load and locale change
- Ensures screen readers and browser features respect the active language
- Removes duplicate aria-label on MessageSearch input
2026-02-13 15:11:39 +00:00
Nicolas Varrot
a44b6db77d style: add global focus-visible outline for keyboard navigation accessibility
Adds a consistent focus ring (accent-dim color, 2px) on all focusable
elements when navigated via keyboard (:focus-visible). Mouse/touch clicks
no longer show the default browser outline (:focus:not(:focus-visible)).

Elements with existing Tailwind focus:ring-* classes are unaffected since
they already handle their own focus styling.
2026-02-13 14:57:39 +00:00
Nicolas Varrot
74278476e4 chore: bump version to v1.36.0 2026-02-13 14:43:26 +00:00
Nicolas Varrot
1942ba18c7 feat: semantic <time> elements with full-date tooltip on message timestamps
- Replace raw text timestamps with <time> HTML elements
- Add dateTime attribute (ISO 8601) for accessibility and machine readability
- Add title attribute showing full date+time on hover (weekday, date, time with seconds)
- Localized tooltip using the user's language preference
- Helps users see exact timestamps for older messages shown as abbreviated times
2026-02-13 14:43:05 +00:00
Nicolas Varrot
3d707dbd90 perf: lazy-load ReactMarkdown and plugins for faster initial render
Move react-markdown, remark-gfm, remark-breaks, and rehype-highlight
imports from eager to dynamic via a LazyMarkdown wrapper component.
The ~336KB markdown bundle is now loaded on-demand after initial paint
instead of blocking the critical rendering path.

- Create LazyMarkdown component with Suspense fallback
- Pre-load plugins in parallel on module init
- Replace all ReactMarkdown usage in ChatMessage with LazyMarkdown
2026-02-13 14:26:14 +00:00
Nicolas Varrot
388879e14e style: add print stylesheet for conversation export
- Hide sidebar, header, chat input, and scroll button when printing
- Reset backgrounds to white, text to black for readability
- Code blocks get light background with borders
- Tool calls styled for print (compact, bordered)
- External links show their URL in parentheses
- Chat scroll area becomes fully visible (no overflow)
- Messages avoid page-break-inside for clean pagination
- Remove shadows and backdrop filters in print
2026-02-13 14:12:41 +00:00
Nicolas Varrot
52458b6171 test: add GatewayClient WebSocket unit tests (12 tests)
Cover core networking: connect/disconnect, challenge handshake,
event routing, request/response, error handling, timeout,
reconnect behavior, and credential updates.

Adds __APP_VERSION__ define to vitest.config.ts for test env.
Total test count: 95 → 107.
2026-02-13 14:03:16 +00:00
Nicolas Varrot
98f273649e docs: add reverse proxy configuration guide (Nginx, Caddy, Traefik) 2026-02-13 13:42:13 +00:00
Nicolas Varrot
7c8f3ba78f chore: bump version to v1.35.0 2026-02-13 13:28:28 +00:00
Nicolas Varrot
e230f9791f feat: improve accessibility — semantic HTML landmarks, skip-to-content link, ARIA attributes
- Replace div with <main> for primary chat pane (screen reader landmark)
- Replace div with <section> for split pane
- Add skip-to-content link for keyboard navigation (Tab → jump to chat input)
- Add aria-expanded and aria-label to tool call badge buttons
- Add id='chat-input' to textarea for skip link target
- Add i18n keys for new ARIA labels (EN + FR)
2026-02-13 13:28:02 +00:00
Nicolas Varrot
60411971b7 chore: remove duplicate PR template (keep uppercase version) 2026-02-13 13:10:16 +00:00
Nicolas Varrot
26e433b1a3 chore: bump version to v1.34.1 2026-02-13 12:58:53 +00:00
Nicolas Varrot
be8f5b62ff fix: drop Node 18 from CI matrix — Vite 7.3 requires Node 20.19+
- Remove Node 18 from CI test matrix (crypto.hash not available)
- Update engines field to >=20.19
- Update README Node.js version references
2026-02-13 12:58:23 +00:00
Nicolas Varrot
ad0efe3f5b chore: update dependencies (react 19.2.4, typescript-eslint 8.55, vite-react 5.1.4, lucide 0.564) 2026-02-13 12:41:29 +00:00
Nicolas Varrot
b478f3e89c chore: bump version to v1.34.0 2026-02-13 12:26:22 +00:00
Nicolas Varrot
ee2b244fcd feat: add loading spinner and noscript fallback to index.html
Show a CSS-only spinner while JS bundles load, improving perceived
performance on slow connections. Add noscript message for users with
JavaScript disabled.
2026-02-13 12:26:08 +00:00
Nicolas Varrot
3fab1c0f5e docs: add SEO improvements — robots.txt, sitemap.xml, canonical URL, structured data 2026-02-13 12:12:31 +00:00
Nicolas Varrot
b93d5f54bf chore: bump version to v1.33.1 2026-02-13 11:58:01 +00:00
Nicolas Varrot
72e9bce4c5 fix: bust service worker cache on each build with version+timestamp
The SW cache name was hardcoded to 'pinchchat-v1', meaning PWA users
would get stale cached assets forever. Now the cache name includes
the package version and build timestamp, so each build creates a new
cache and old ones are cleaned up on activation.

Also adds:
- Periodic SW update check (every 30 min)
- Auto-reload when new SW version is detected
2026-02-13 11:57:32 +00:00
Nicolas Varrot
13f5c4ac0c fix: textarea overflow and width in highlighted input container 2026-02-13 11:52:39 +00:00
Nicolas Varrot
beced29c91 fix: textarea not expanding in flex layout with syntax highlight enabled 2026-02-13 11:51:55 +00:00
Nicolas Varrot
daa0ce7494 chore: remove unused dependencies (radix-ui, class-variance-authority)
Remove 5 unused production dependencies:
- @radix-ui/react-collapsible
- @radix-ui/react-scroll-area
- @radix-ui/react-separator
- @radix-ui/react-tooltip
- class-variance-authority

These were leftover from initial scaffolding and never imported.
Reduces install footprint and dependency count.
2026-02-13 11:41:25 +00:00
Nicolas Varrot
879d73e3ac chore: bump version to v1.33.0 2026-02-13 11:30:35 +00:00