Skip to content

Recipe/main - #38

Merged
MisterPapaye merged 70 commits into
mainfrom
recipe/main
Sep 13, 2026
Merged

MisterPapaye merged 70 commits into
mainfrom
recipe/main

Conversation

@MisterPapaye

Copy link
Copy Markdown
Member

No description provided.

MisterPapaye and others added 30 commits September 10, 2026 19:48
Adds an "Inviter" entry point on voice channels (hover icon + context
menu in VoiceThreadBtn, and an in-call button in CallControls) opening
a new VoiceInviteModal to pick org members. Invited members receive a
clickable "join voice channel" card in their DMs (ChatMessage) that
navigates to the channel and auto-joins the call.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ration

generateRandomBase62 padded output past its CSPRNG byte array using
Math.random(), a non-cryptographic PRNG whose state is practically
recoverable — weakening 8 of 24 webhook token chars and 12 of 36 HMAC
secret chars used to sign/verify webhook payloads.

Now generates exactly targetLength bytes via crypto.getRandomValues,
one per output character, with no non-crypto fallback.

Audit finding #6 (HAUTE) — audits/audit_pentest_2026-09-10.md
callId (the anti-hijacking pivot validated in handleKeyExchangeMessage)
was built from Date.now() + Math.random(), both predictable/non-crypto.
Now uses generateCallId() (crypto.getRandomValues, already used
elsewhere in the codebase) for 128 bits of real entropy.

VITE_THREADS_E2EE_KEY was defined in .env/.env.example/Dockerfile and
inlined into the client bundle at build time, but grep confirms it was
never referenced anywhere in src/ — dead secret shipped for no reason.
Removed from .env, .env.example and the Dockerfile build args.

Audit finding #14 (BASSE) — audits/audit_pentest_2026-09-10.md
Both anti-replay and anti-hijacking checks were written as
`if (field && rejectCondition)`, so a forged KEY_EXCHANGE_* message
that simply omitted `timestamp` or `callId` short-circuited past both
guards and was processed as if it had passed validation — despite
vibe/guide.md documenting these as enforced protections.

Both fields are now mandatory: a message missing either is rejected,
matching what every legitimate call site already always sends.

Audit finding #4 (HAUTE) — audits/audit_pentest_2026-09-10.md
…ffer

deriveSharedSecret used salt: new Uint8Array(32) (32 zero bytes) for
every single call, on every session, forever — a constant salt across
all invocations, contrary to RFC 5869 guidance and removing a layer of
defense-in-depth against any future weakness in ECDH key generation or
an accidental keypair reuse.

The salt is now SHA-256(callId): callId is already a per-call
CSPRNG-backed identifier (generateCallId(), fixed in the previous
commit) that both peers independently possess and have already
validated to match before deriving the key, so no extra handshake
round trip is needed to agree on it.

Audit finding #7 (MOYENNE) — audits/audit_pentest_2026-09-10.md
encryptFileLocal encrypted the file with `iv` under fileKey, then
reused that exact same `iv` to wrap fileKey under spaceKey. Not an
immediate break (different keys per AES-GCM call), but fragile: any
future bug that let spaceKey be reused across files with the same iv
would break fileKey confidentiality. The code's own comments show the
original author flagged and then talked themselves out of fixing it.

Now generates a dedicated random IV for the key-wrap step and prepends
it to encryptedFileKey's ciphertext, so no new wire field or backend
column is needed. decryptFileLocal tries that new layout first and
falls back to the legacy single-IV layout (detected via the AES-GCM
auth tag) so files encrypted before this fix keep decrypting.

Audit finding #12 (BASSE) — audits/audit_pentest_2026-09-10.md
sendEncryptedSignal encrypted its payload but never sent it anywhere —
no channel.send() call, no reference to the session's RTCDataChannel —
and unconditionally returned true, as if delivery had succeeded. It
was also unused anywhere in the app (only its own definition and the
composable's export list referenced it), so any future caller relying
on that true would silently lose messages.

Removed rather than "finished": nothing in the app calls it, so
building out a real encrypt+send+receive+decrypt signaling protocol
here would be speculative scope with no current caller to validate it
against.

Audit finding #13 (BASSE) — audits/audit_pentest_2026-09-10.md
verifySecurityFingerprint() existed in useSecurePeer.ts but was never
called from anywhere in the UI, and the fingerprint itself was never
rendered — CallOverlay only showed a green "E2EE Activé" badge as soon
as the ECDH key exchange completed, with no authentication of the
peer's identity. Since the signaling channel (PeerJS) isn't itself
authenticated against a long-term identity, that badge could not
actually distinguish a clean session from a MITM silently negotiating
separate keys with each side.

CallOverlay now has three visible states instead of one binary badge:
unencrypted (yellow), encrypted-but-unverified (blue, clickable),
verified (green). Clicking opens a panel showing the local fingerprint
and a field to enter the peer's — spoken aloud over the call itself,
which is exactly the out-of-band channel this kind of SAS check is
supposed to use. Verification is per-peerId, in-memory only, and reset
on call end.

Audit finding #5 (HAUTE) — audits/audit_pentest_2026-09-10.md
…ng the server silently

recipient.value.publicKey was read straight from the profile API
response and used to encrypt every outgoing DM with no verification.
A compromised/malicious backend could swap in an attacker's key for
any user and every client would encrypt to it transparently — no
error, no warning, nothing detectable from the UI (audit finding #3).

Adds src/assets/utils/keyTrust.ts: a Trust-On-First-Use store (IndexedDB
via idb-keyval, already a dependency) that remembers the first public
key ever seen per userId and flags any later mismatch instead of
accepting it. sendMessage() now checks trust before encrypting — on a
detected key change the message is blocked, restored to the input box,
and a "Code de sécurité" panel opens showing the SHA-256 fingerprint of
the new key so it can be compared with the recipient out-of-band before
anyone explicitly chooses to trust it. Same panel is reachable anytime
from the chat header's dropdown to verify a key ahead of time.

Audit finding #3 (CRITIQUE) — audits/audit_pentest_2026-09-10.md
…patterns

The project explicitly avoids native browser dialogs (unstyled,
untestable in e2e, inconsistent with the rest of the UX) and already
provides ConfirmDelete.vue/Popup.vue + useToast for this — four call
sites still used alert()/confirm() directly.

- App.vue: the two boot-time alert()s (health check failure, initKC
  exception) become toast.show(). Notifications is now mounted
  unconditionally (was gated behind `v-if="authenticated"`) so these
  early-boot toasts actually have somewhere to render.
- downloadFile.ts: alert() on download failure becomes useToast().show()
  — safe to call from a plain module, useToast's state isn't tied to a
  component instance.
- FileViewer.vue: confirm() on closing with unsaved changes becomes a
  Popup.vue confirmation dialog (Annuler / Fermer sans enregistrer).

Audit finding #11 (BASSE) — audits/audit_pentest_2026-09-10.md
…erver)

curl -I confirmed neither the dev server nor docker/nginx.conf sent
X-Frame-Options, Strict-Transport-Security, X-Content-Type-Options,
Referrer-Policy or Permissions-Policy — leaving the app embeddable in a
third-party <iframe> (clickjacking) and exposed to MIME-sniffing on
served assets. index.html's CSP <meta> tag also can't carry
frame-ancestors: browsers only honor that directive from a real HTTP
header, never from <meta>.

docker/nginx.conf now sends the missing headers on every location
(nginx doesn't inherit add_header into a location that sets its own),
including a minimal Content-Security-Policy header carrying only
frame-ancestors — the full policy stays in index.html's <meta> tag as
the single source of truth; delivered CSPs combine restrictively, so
this closes the gap without duplicating/risking drift on the rest of
the policy. vite.config.ts mirrors the same headers for the dev server
(minus HSTS, which browsers cache per-host for a year and would break
the plain-HTTP LAN dev flow via VITE_TAURI_DEV_IP).

Audit finding #8 (MOYENNE) — audits/audit_pentest_2026-09-10.md
…w/reset accounts

The PIN protecting the PBKDF2-wrapped RSA private key was capped at
exactly 4 digits (10,000 combinations) with only 100k PBKDF2-SHA256
iterations — an offline brute force of a leaked encryptedPrivateKey +
pinSalt was feasible in seconds to minutes on commodity hardware,
making the "E2EE" cosmetic against any leak of those fields (backend
compromise, DB dump, stolen device backup).

Can't just raise the global PIN_ITERATIONS or minimum length: every
existing account was provisioned under the old 4-digit/100k-iteration
scheme, and changing it wholesale would silently change the derived
master key and permanently lock every current user out of their
stored private key (and therefore their entire E2EE message history).

So: generateSalt() now prefixes new salts with "v2:", and
deriveMasterKey() branches on that prefix — v2 salts get 600k
iterations (OWASP 2023 guidance for PBKDF2-SHA256), unprefixed
(legacy) salts keep deriving under the original 100k. App.vue requires
8-12 digits for first-time setup and PIN reset (both call
setupFirstTimeSecurity, which now always produces a v2 salt), while
unlocking an existing account still accepts exactly 4 digits and
auto-submits there, matching every legacy account's actual PIN length
unchanged. Existing accounts keep working exactly as before; only new
and reset PINs get the stronger scheme.

Audit finding #2 (CRITIQUE) — audits/audit_pentest_2026-09-10.md
…not a public static secret

getE2EEKey() built the LiveKit media encryption key as
SHA256(VITE_LIVEKIT_E2EE_KEY + orgId + threadId). VITE_LIVEKIT_E2EE_KEY
is a VITE_* var, inlined in cleartext into every build and identical
for every org/user forever; orgId/threadId are visible in any shared
call URL. Anyone who ever saw a room URL — an excluded former member,
a leaked screenshot, a shared link — could compute the exact room key
offline, without ever joining, and decrypt the entire call.

Pairs with a synco_api change (same commit series, other repo): the
LiveKit token endpoints now also return e2eeKey — the thread's
existing ThreadKey.encryptedKey, i.e. the same AES key already used
for that thread's text messages, already distributed per-member via
RSA-OAEP (encryptThreadKeyForMember). The backend only ever handles
that value as opaque ciphertext.

useLiveKit.ts now unwraps that blob with the local RSA private key
instead of deriving anything from public data, and hands LiveKit's
ExternalE2EEKeyProvider the raw key bytes directly (HKDF path) rather
than a "passphrase" string (PBKDF2 path) — the recommended mode for an
already-random key per LiveKit's own docs. A thread with no ThreadKey
(not E2EE-enabled, or a guest joining via invite link — GuestVoiceView
no longer needs its old "mock openedOrg to fake the same key" hack for
that) now honestly falls back to unencrypted-at-app-layer rather than
computing a key that was never actually secret.

VITE_LIVEKIT_E2EE_KEY removed from .env/.env.example/Dockerfile.

Audit finding #1 (CRITIQUE) — audits/audit_pentest_2026-09-10.md
feat(voice): invite members to a voice channel via DM (Discord-like)
MIN_PIN_LENGTH/MAX_PIN_LENGTH were 8/12; lowered to 6/10 per product
request.

Also fixes a real bug this surfaced: isLegacyUnlock only checked
"does this account already have E2EE set up", which is true for every
account after its first PIN screen — so unlocking a session always
capped input at the old 4-digit legacy length, even for accounts
created under the versioned (6-10 digit) scheme. The actual signal for
"is this a pre-versioning account" is the salt format: generateSalt()
in crypto.ts always prefixes new salts with SALT_V2_PREFIX ("v2:"), so
isLegacyUnlock now checks that instead. SALT_V2_PREFIX is exported from
crypto.ts so both files share one source of truth.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Frontend half of the v3 PIN scheme (see synco_api's matching commit for
the server side and full threat-model rationale). Back to a 4-digit PIN,
but the private key is now wrapped with HKDF(PBKDF2(pin, salt), wrapSecret)
instead of PBKDF2(pin, salt) alone — wrapSecret lives server-side and is
only released after a rate-limited verifier check.

- crypto.ts: new setupFirstTimeSecurityV3/unlockSecurityV3 alongside the
  untouched legacy/v2 functions. crypto.ts stays free of HTTP concerns —
  unlockSecurityV3 takes a doFetch callback that App.vue fills with sfetch.
- App.vue: isLegacyUnlock replaced by a 3-way pinScheme ('legacy'/'v2'/'v3')
  computed from the pinSalt prefix, so existing legacy and v2 accounts keep
  unlocking through their exact current code path. New setup and PIN reset
  always target v3 now. Added lockout countdown UI (429 response) distinct
  from the plain "wrong PIN" toast (422/other).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
New org-scoped Agenda view (month/week/day, hand-rolled CSS grid, no external
calendar lib): create/edit events with attendees, RSVP (accepted/declined/
tentative), simple recurrence with per-occurrence edit/cancel, and self-service
reminders. Whole-series vs single-occurrence edit/delete is an explicit choice
in the event modal, routed through ConfirmDelete.vue (new optional
extraWarning prop) for destructive actions.

Wired into routing (org-scoped 'agenda'), the org sidebar, org settings
toggle, and the admin quota panel's feature checklist.

No delegation/cascade mechanism in this pass — a paired "Teams" module that
was going to let a lead view/manage a member's calendar was descoped; each
user manages only their own calendar, plus events they're invited to.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Same treatment as TasksGlobal — the calendar is org-scoped, full-width
content, no need for the thread sidebar.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ditor

Month/week/day grids now support click-and-drag to select a time range
(15-min snapping in week/day, multi-day range in month view) with a live
ghost preview, instead of only a single click at a guessed time. Releasing
opens a small quick-create popover anchored near the cursor: title + optional
all-day toggle, Enter/Save creates the event immediately with sensible
defaults, or "Plus d'options" hands off to the full editor.

Replaced the centered EventModal popup (one long always-expanded form) with
EventPanel, a right-side sliding panel: title and time stay prominent,
location/description are compact single rows, and recurrence/attendees/
reminders collapse into one-line summaries that expand on demand. Same
business logic (RSVP, occurrence-vs-series edit/delete via ConfirmDelete) as
before, reorganized for less visual overload.

Not browser-tested (no interactive browser available in this environment) —
verified via vue-tsc only. Please click-test drag selection and the new
panel before relying on this.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…idebar

Existing events can now be dragged to reschedule (vertically within a day,
or across day columns in week view / across days in month view) and resized
from their top/bottom edge in week/day view, snapped to 15-minute
increments. Both emit a `reschedule` event handled by updating the whole
event or just the clicked occurrence, matching the existing series-vs-
occurrence distinction.

Events can be given a custom color (a small swatch picker next to the title
in EventPanel), rendered on the chip's left border/background — RSVP-decline/
tentative states keep their semantic red/amber regardless, since that's more
important to see at a glance.

The time range selected on the grid (drag or click) now stays visually
highlighted for as long as the quick-create popover or the full panel is
open, instead of disappearing the instant the mouse is released.

Added a left sidebar (MiniCalendar.vue) with a small month picker — click a
day to jump the main view to it, chevrons to browse months — plus the
"Créer" entry point, inspired by Google Calendar's layout.

Not browser-tested (no interactive browser in this environment) — verified
via vue-tsc only. Please click-test drag/resize and the color picker before
relying on this.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Home used to auto-redirect to the org's first shared thread; it's now
a per-user landing page showing unread DMs/threads, upcoming agenda
events and soon-due/recent tasks, each in its own card component.

Also fixes useNotification() keeping its state inside the function
body instead of module scope, which meant every caller got its own
empty, never-populated notification list (SpaceBar/UsersBar/Category
unread badges were silently dead) — state is now shared so the new
dashboard and the existing badges read the same data.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
feat(home): redesign Home into a personal dashboard
…ek view

The click-and-drag create gesture in WeekGrid was locked to the day
column where the drag started — moving the pointer to another column
only changed the vertical (time) extent, never the day. Selecting e.g.
Tuesday 8:00 through Saturday 20:00 in one gesture wasn't possible.

The drag now tracks the hovered day column (same elementFromPoint
technique already used for moving an existing event across days) and
resolves the chronological start/end across the two anchor points, so
the resulting range can span several days. The live ghost and the
persisted selection overlay are rendered per spanned day column
(full-height for days strictly in between, partial for the first/last)
via a shared buildDaySpans() helper.

EventQuickCreate's range label now also shows both dates for a
multi-day timed range instead of only the start day — the quick-create
save() and the full EventPanel editor already handled arbitrary
start/end dates with no changes needed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Month/Week/Day grids were grouping occurrences by their start day only,
  so a multi-day event (now creatable via the week-view multi-day drag
  select) only rendered on the first day and vanished everywhere else.
  All three grids now repeat/clip the occurrence across every day it
  spans; WeekGrid/DayGrid also disable the per-segment move/resize drag
  handles for multi-day occurrences (dragging one day's segment can't
  express "shift just this slice" without corrupting the event — editing
  stays available through the event panel, which already supports
  distinct start/end dates).
- MonthGrid: clicking a day number now switches to day view (@select-day),
  mirroring MiniCalendar's pick-day behavior. Clicking elsewhere in the
  cell still starts the existing quick-create-on-click gesture.
- AgendaView: header now spans the full window width with the sidebar
  and grid below it (was: sidebar spanning full height next to a
  narrower header). Sidebar width now matches ThreadsBar's (15rem/w-60).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…-edit

- A task assigned to me (or a personal task I created) with a due date
  now shows as a marker on its due day in Month/Week/Day view and the
  mini-calendar, with a dashed amber flag-style chip distinct from real
  events. No new backend endpoint: reuses the existing
  /api/tasks/:orgId/lists/me call (same "mine" filter as TodosCard),
  projected client-side into pseudo OccurrenceInstance objects
  (TASK_DEADLINE_PREFIX on eventId) and merged with the real agenda
  occurrences before handing them to the grids.
- Clicking a deadline chip navigates to the task's list instead of
  opening the event editor; dragging/resizing is disabled for these
  (isLocked() in Week/Day, inline guard in Month) since they aren't
  real CalendarEvents and moving them can't silently become "change
  this task's due date".
- Fixed a real bug along the way: in MonthGrid, clicking an event often
  failed to open the edit panel. `is-event-dragging` was applied to
  EventChip's own root (unlike Week/Day where it lands on a wrapper
  div), and that class sets `pointer-events: none` — which armed the
  instant you moused down, before the browser resolved the following
  click, redirecting the click's hit-test away from the chip. Dropped
  pointer-events:none, kept the opacity dimming.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- EventPanel (agenda event details) and TaskDetailsModal (task details)
  no longer have explicit Annuler/Enregistrer buttons. Every watched
  field debounces into an automatic save (600ms), with a small status
  indicator ("Enregistrement..." / "Enregistré") replacing the button
  row. In EventPanel's create mode, the first valid autosave (once a
  title exists) actually creates the event and remembers its id
  (draftEventId) so later edits update it instead of duplicating it;
  closing the panel with an empty title cleans up an unsaved draft.
  Dropped the "cette occurrence / toute la série" save-time choice for
  recurring events — autosave always targets the series now, since
  there's no longer a save action to attach the choice to.
- EventPanel's color picker is always expanded instead of toggling
  behind a click (per request) — removed colorPickerOpen and the
  swatch-panel's v-if.
- Scope: EventQuickCreate (the lightweight drag-to-create popover) and
  CreateTaskModal keep their explicit create button — the request was
  about editing existing tasks/events ("les paramètres"), not the
  quick-add flows.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…as mine

Mirrors the backend fix to listMyTasks(): the client-side "is this my
task" predicate in TodosCard (Home dashboard), the Agenda's
task-deadline markers, and TasksGlobal's personal Kanban all required
creatorId === me AND no spaceId, so a task you created directly inside
a workspace without also self-assigning never counted as yours — its
due-today/due-tomorrow deadline silently never appeared anywhere.
Dropped the no-space restriction; being the creator is now enough,
matching the backend query these views are fed from.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
MisterPapaye and others added 29 commits September 12, 2026 18:21
…vatar)

Adds a fullscreen toggle button on the focused tile and on each tile
in the unfocused grid view, using the native Fullscreen API on the
tile itself (not a bare <video>) so the name/mic badge stay visible.
Tracks which tile is currently fullscreen via the browser's
fullscreenchange event to show the right icon.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…rkspace

Nothing told you that you were still connected to a voice channel
once you navigated away from it within the same workspace (mic still
hot, still broadcasting). Added ActiveCallBanner: a small floating
pill, mounted once in OrgLayout so it follows you across every page
of a workspace (threads, tasks, files...), shown whenever the
connected LiveKit room belongs to the currently open workspace and
you're not already on that thread's voice page. Clicking it jumps
back to the call.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Not what was asked for — the requested indicator belongs on the
space bar's workspace icons instead, like Discord.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
New useVoicePresence composable tracks the socket 'voc:update'
broadcasts for every voice-type thread (the socket is already
auto-joined to every accessible workspace's room server-side, so
this works across all workspaces, not just the one currently open)
and exposes spaceHasVoiceActivity(spaceId).

SpaceBarBTN gets an `inVoice` prop: a green ring around the icon plus
a small mic badge (bottom-right, opposite the unread dot) when anyone
is in a voice channel inside that workspace — mirroring Discord's
server-icon treatment. SpaceBar requests a snapshot for every voice
thread in the org whenever it (re)loads, so already-active calls show
up without anyone having to re-trigger an update first.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Mitigation for a "patchElement ... el is null" Vue crash reported
after enabling ActiveSpeakersChanged/ConnectionQualityChanged:

- VoiceThreadView's fullscreen tile refs used a new inline arrow
  function on every render (`:ref="(el) => ..."`), forcing Vue to
  unbind/rebind the ref on every single re-render of that tile, even
  unrelated ones. Now memoized per participant identity.
- ActiveSpeakersChanged/ConnectionQualityChanged can fire in bursts
  (several people talking, quality fluctuating); each call triggered
  a full allParticipants re-render. Now coalesced onto a single
  requestAnimationFrame instead of one re-render per event.

These were the most plausible contributors given the stack (the
crash traces back through handleSync's allParticipants update into a
nested element patch with a null el); flagging in case it recurs so
it can be narrowed further with exact repro steps.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Fixed a flexbox truncation bug: the status text block had no
  min-w-0, so it couldn't actually shrink/truncate and could push the
  buttons around in the narrow sidebar.
- Grouped status + hang up on one row, moved mic/camera/screen into a
  single consistent 4-button grid and added the missing Deafen
  toggle (every other call surface already has mic/cam/screen/deafen
  as one set; this one was still mic+hangup on top, cam+screen below,
  no deafen at all).
- Was displaying the raw LiveKit room name (= the thread's id) as the
  call's label; now resolves and shows the actual thread name.
- Exposes its rendered height via ResizeObserver into a new shared
  userCardHeight ref (src/assets/var.ts), so sidebars that sit behind
  this floating card can reserve exactly the space it needs instead
  of guessing a fixed margin.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…idth

Each of ThreadsBar's scrollable lists (threads, DMs, settings, the
loading skeleton) used h-full inside a flex-col parent that already
had a header sibling — height percentages don't account for sibling
space in flexbox, so it relied on guessed fixed margins (root pb-20
+ ul mb-11) that didn't match the floating UserCard's actual height,
cutting it too short or leaving a gap depending on whether the
in-call card was shown.

Switched each list to flex-1 min-h-0 (fills exactly what's left
after the header) with padding-bottom bound to the new shared
userCardHeight ref (exact space for whatever UserCard is currently
rendering, call card included). Also swapped overflow-scroll for
overflow-y-auto overflow-x-hidden — the two-axis scroll could open a
horizontal scrollbar/gutter from incidental 1px overflows, making
the list visibly narrower than the bar.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Keeps the flex-1/min-h-0 + userCardHeight sizing fix, but reverts the
overflow-x-hidden change — back to overflow-scroll (overflow-y-auto
on the chat list) as before.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Order is now camera, screen, mic, son — mic sits immediately left of
the son (deafen) button, matching CallControls.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Replaced the flat, opacity-50-washed icon/title/paragraph with a
glowing icon badge, full-contrast heading/copy, and a row of
clickable suggestion chips that prefill the composer with a starter
prompt.

Also: the "100% local" privacy claim was shown unconditionally even
when the configured provider is a cloud one (OpenAI/Mistral/Gemini/
gateway) — now only shown when aiIsLocal is actually true.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ether

ThreadMessage already collapses its own spacing for a stacked
message (mt-0 py-0.5 instead of mt-2 py-2) when it's from the same
sender within 60s, but the list wrapper in ThreadView applied
space-y-4 to every message regardless, adding a 16px gap on top of
that regardless of isStacked. Removed it — ThreadMessage already
fully owns its own vertical spacing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
py-0.5 still left a small but visible gap between stacked (same
sender, <60s apart) messages even after removing the wrapper's
space-y-4. Dropped to py-0 so grouped messages actually touch.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Two bugs in ChatView's sendMessage:
- The guard only checked newMessage.trim(), so clicking send with
  files staged but no caption text was a silent no-op — it returned
  before ever looking at selectedFiles.
- Even with a caption, files.value (already uploaded via
  validUpload) was never linked to the message at all — unlike
  ThreadView, there was no equivalent of its 'edit-message-files'
  emit after the message is created, so uploaded files just sat
  orphaned with no message pointing at them.

Now waits for the dm:send-message ack to get the created message id,
then emits edit-dm-message-files (new backend handler, see
synco_api) to attach the uploaded files — mirrors ThreadView's flow.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
getFileInfo expects a StoredFile (originalName/mimeType); the
pre-upload preview chips pass it raw File objects (name/type)
straight through with an `as any` cast, so file.originalName was
always undefined there — crashed as soon as a file was selected.
ThreadView avoids this by not using getFileInfo for its own (raw
File) preview chips at all.

Added a small adapter instead of touching the shared util, since
every other caller (FileCard, ThreadMessage, ChatMessage, FileViewer)
already passes it a real StoredFile correctly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- AgentTurn.vue: guard possibly-undefined array access in isLastTool
- OrgAI.vue: drop the setIndex param of consumeAgentStream, dead since
  every turn now stays at the same index (noUnusedParameters caught it)
…ll/home card mounts

notifications.value (the source the unread DM/thread badges read from) was
only ever populated by init() being called from PendingMessagesCard.vue
(only mounted on OrgHome) or NotificationCenter.vue (dead code, never
actually rendered anywhere). Reloading while on any other route left the
cache empty/stale, making unread state look inconsistent regardless of
what's actually persisted server-side.
Same bug class as the notifications/isInitialized fix already noted in this
file: socket was a per-call local variable, so only the first component to
successfully run init() had it assigned in its own closure. Every other
component calling useNotification() (e.g. ChatView.vue for markDMAsRead)
got a closure where socket was still null, so socket?.value?.emit(...)
silently no-op'd — nothing was ever persisted server-side even though the
local optimistic UI update made it look like it worked.
…tead of after

join-thread doesn't need the decrypted E2EE key — it does its own
server-side permission check and its response (thread-history) is handled
by an already-registered listener. Emitting it only after get-thread-access's
full round-trip + RSA decrypt meant paying two sequential network round
trips just to open a thread, regardless of how many messages it has.

Since thread-history can now arrive before the key finishes decrypting,
added waitForThreadKey() so message decryption waits for the key instead of
silently rendering ciphertext.
…sive design

grid-auto-rows: 1fr let a row grow beyond its equal share whenever a day
had enough events to exceed the divided height (bare 1fr behaves as
minmax(auto, 1fr), so content still influences track size). Switched to
minmax(0, 1fr), which forces strictly equal row heights regardless of how
many events a day has, and dropped the per-cell min-height that fought
against it in favor of overflow:hidden + a floor on the grid as a whole.

Also added responsive breakpoints matching the sidebar's existing 900px
cutoff (AgendaView.vue), plus a 600px tier, and reduced max visible events
per day from 3 to 2 on small screens via isLittleScreen.
@MisterPapaye
MisterPapaye merged commit 406a681 into main Sep 13, 2026
1 check passed
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