Skip to content

Recipe/main - #45

Merged
MisterPapaye merged 51 commits into
mainfrom
recipe/main
Sep 19, 2026
Merged

MisterPapaye merged 51 commits into
mainfrom
recipe/main

Conversation

@MisterPapaye

Copy link
Copy Markdown
Member

No description provided.

MisterPapaye and others added 30 commits September 18, 2026 09:15
It was gated behind tags.length > 0, which meant there was no way to
create the very first tag for an org/space from the Kanban view — the
button that opens TaskTagPicker (which already supports creating a tag
inline) simply wasn't there yet. TaskTagPicker already handles the
empty state fine ("Aucun tag pour le moment." + the always-visible
"Nouveau tag" toggle), so this only needed the outer button unwrapped.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Two compounding bugs in WeekGrid/DayGrid (MonthGrid was already correct
and served as the reference):

1. The day column listens for native `mousedown` to start the
   create-event flow, but the event block/resize handles only stopped
   `pointerdown` — a different DOM event for the same physical press.
   `mousedown` bubbled straight through to the day column on every
   click on an existing event, arming the "create at this slot" flow
   in parallel with the event's own drag. Added `@mousedown.stop`
   alongside the existing `@pointerdown.stop`.

2. `startEventDrag` set the reactive `eventDrag` ref (which drives the
   `is-event-dragging` → `pointer-events: none` class) immediately on
   pointerdown, with no movement threshold. For a plain click (press +
   release with no movement), pointer-events:none was already applied
   to the event chip by the time the paired mouseup/click fired, so
   the browser re-hit-tested to whatever was underneath — the day
   column's empty-slot create handler — instead of the chip's own
   click handler, so `open-event` never fired and the stray mouseup
   completed the spurious "create" flow from bug 1.
   Fixed by staging the drag in a plain `pendingDrag` variable and only
   promoting it to the reactive `eventDrag` (and thus applying the
   dragging visual state) once the pointer has actually moved past a
   small threshold — a real drag now still works exactly as before,
   but a stationary click leaves the chip hit-testable and its own
   click handler fires normally.

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

EventChip's own click handler is @click.stop="emit('click')" — it stops
the native click's propagation itself and re-emits a plain custom
'click' event with no payload. WeekGrid/DayGrid listened for it with
@click.stop="emit('open-event', occ)", but the `.stop` modifier compiles
to a wrapper that calls event.stopPropagation() on its first argument —
which is undefined here, since the child's emit('click') carries no
event object. Result: "can't access property stopPropagation, e is
undefined" the moment a click actually reached EventChip (previously
masked by the pointer-events bug fixed last time, so this never ran).

MonthGrid.vue already had the correct pattern (plain @click, no .stop,
since EventChip already stopped the native event). Applied the same fix
to both the timed-grid and all-day-row EventChip listeners in
WeekGrid.vue and DayGrid.vue.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
z-1000 was lower than several overlays that legitimately open a
ConfirmDelete on top of themselves (EventPanel's drawer at z-1900, its
catcher at z-1800), so the confirmation dialog rendered underneath and
its buttons weren't clickable. A destructive-action confirmation should
always be the topmost layer regardless of what triggered it — bumped to
z-[3000], above every other overlay z-index in the app (Popup.vue's
z-[2000] included).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…e, mobile sheet

The event-edit drawer's backdrop ("catcher") was fully transparent with
no click handler at all — closing on click-outside did nothing because
there was nothing to click. Also had no Escape-key handling, unlike
every other modal/panel in the app.

- Catcher is now a real dimmed, clickable backdrop (@click="closePanel",
  same cleanup path as the close button — deletes an empty draft when
  closing a freshly-opened "create" panel).
- Escape now closes it too.
- Below the sm breakpoint it becomes a bottom sheet instead of a
  right-anchored drawer — same drag-to-expand/dismiss handle and
  physics as the Tasks module's Popup.vue (duplicated here since only
  these two need it so far, not worth a shared composable yet).

Paired with the ConfirmDelete z-index fix: that dialog now reliably
renders above this panel, so its buttons are clickable when deleting
an event from inside the drawer.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The RouterView/Loader toggle right after PIN unlock swapped instantly
(no transition), so the initial data-loading spinner cut hard to the
app. Wrapped it in a new app-reveal Transition: the loader (fixed,
z-50) fades out while the app, already animating in underneath,
continues to settle — masking the raw layout pop of the RouterView
mounting instead of showing it directly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The page-lock Transition wrapping the app/lock screens had no `appear`,
so Vue never animates a branch's very first render — the "Déverrouillez
votre session" PIN screen just popped in instantly on load. Added
`appear` there, plus a nested app-reveal Transition (also `appear`)
around the pinLoading-spinner → PIN-keypad swap inside the lock branch,
so the actual PIN form fades/scales in once ready instead of appearing
mid-Loader with no transition.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The nested <Transition name="app-reveal" appear> wrappers around the
Loader<->RouterView and Loader<->PIN-form toggles weren't visibly
animating for the user despite a clean dev-server restart and hard
reload. Rather than keep debugging Vue's enter-class/appear timing
blind (no browser access here to inspect it directly), replaced them
with a plain @Keyframes animation applied straight to each branch's
div via an `animate-app-reveal` class. A CSS animation restarts
automatically whenever the browser inserts a new element carrying the
class — which v-if/v-else guarantees on every branch switch — so it
can't silently fail to fire the way a <Transition> can if enter/leave
states happen to resolve within the same tick.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Traced the full render chain after PIN unlock: App.vue (already fixed)
-> OrgLayout.vue (org SpinLoader -> RouterView) -> OrgHome.vue (header
+ 3 dashboard cards, each with its own async skeleton -> content swap).
Every one of those swaps popped in with no transition at all.

- OrgLayout.vue: replaced the org-loading/org-content <Transition> with
  the same animate-app-reveal CSS animation as App.vue, for the same
  reliability reason (a plain @Keyframes animation restarts on element
  insertion regardless of Vue Transition timing).
- OrgHome.vue: header + the 3 dashboard cards (PendingMessagesCard,
  AgendaCard, TodosCard) now fade/scale in with a slight stagger
  instead of appearing all at once.
- Each card's own skeleton -> empty/content swap also gets the reveal,
  so the loading pulse resolves into place instead of popping.

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

Same animate-app-reveal treatment as OrgLayout/OrgHome: SpaceBar's real
nav (v-if="openedOrg") now fades/scales in when it replaces the
skeleton nav, and UsersBar's real member list does the same over its
skeleton — both visible right after unlock since UsersBar defaults to
shown on desktop and SpaceBar always mounts with OrgLayout.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Switched SpaceBar's entrance from the generic animate-app-reveal
(scale+fade) to a dedicated animate-sidebar-reveal (slide in from the
left, 0.5s) — fits a sidebar better than the content-panel reveal, and
is easier to visually confirm since it's a more distinct motion.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Same animate-app-reveal treatment: the real avatar (v-else branch)
and the name/role block (conditionally styled rather than v-if'd,
so the class itself is applied only once openedOrg resolves — a
CSS animation still restarts when the animation-triggering class is
newly applied to a persisting element) fade in once the skeleton
placeholders resolve.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Two mobile-specific issues in the reveal work from the last few
commits:

- The org-content panel toggles via v-show (not v-if) for the mobile
  list<->content switch, and a display:none cycle restarts CSS
  animations — so animate-app-reveal was replaying on every mobile nav
  tap instead of once after unlock. Added an orgContentRevealed flag
  (set via @animationend) so the class is only present until the first
  successful reveal, then never again for that OrgLayout instance.
- initOpenedOrg's fresh-launch redirect now explicitly sets
  ?showView=1, so a phone always lands on the Home content panel
  after unlock instead of depending on the query param being merely
  absent (which happened to also work today, but only incidentally).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Root cause of the flash reported on mobile: isLittleScreen defaulted
to false and was only corrected in OrgLayout's onMounted, AFTER
awaiting fetchPermissions/sockets/peer/notifications init. Until that
resolved, every isLittleScreen-dependent computation used the desktop
answer on an actual phone:
- the content panel got the desktop CSS class (relative column) instead
  of the mobile fullscreen overlay, so SpaceBar/ThreadsBar showed
  through beside it;
- useUsersBar's showUsersBar getter fell through to the desktop
  default (true) instead of the mobile default (false), so UsersBar
  briefly mounted too.

Initializing the ref synchronously from the real media query at module
load removes the window entirely — isLittleScreen is correct from the
very first render, no async gap left for either bar to leak through.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Wrapped the 👋 in OrgHome's greeting in its own span with a wave
keyframe animation (rotate around the wrist, a few oscillations),
delayed 0.5s so it starts once the greeting text has finished its own
reveal fade-in rather than fighting it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
TodosCard rows now stand out (tinted background, filled dot, "Nouveau"/
"Mis à jour" pill) when either:
- the task is behind an unread TASK_ASSIGNED notification (data.taskId
  from tasksService.ts notifyTaskAssignment), or
- task.updatedAt is newer than the last time this widget was mounted
  (persisted in localStorage on unmount) — there's no dedicated
  "task updated" notification anymore (removed in an earlier refactor),
  so this is the closest signal available without adding new backend
  notification plumbing for what's a dashboard polish feature.

Avoided the --primary-rgb custom property used elsewhere in the
codebase for translucent backgrounds — it's referenced in a few
components but never actually defined anywhere, so those rgba(var(...))
calls are silently invalid CSS. Used Tailwind's own bg-(--primary)/8
opacity syntax instead, which is proven to work elsewhere in this app.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
TodosCard's task list previously used its own compact single-line row
(icon + title + space + due date), visually unrelated to the Kanban
cards in the actual task manager. Replaced it with the shared
TaskCard.vue component — same tags, assignee avatars, subtask count,
attachment count and due-date progress bar as the Kanban board, so a
task looks the same whether you're looking at it from Home or from
the task manager itself.

TaskCard.vue itself was behind the Kanban cards (no tags, no
attachment badge — those were only ever added inline in
TasksSpace/TasksGlobal, never back-ported here since the Kanban views
don't actually use this component). Brought it in sync, and replaced
its `task: any` prop with the real Task type while touching it.

The "new/updated" highlight now uses a ring (box-shadow) instead of
swapping background/border classes — TaskCard's root already sets its
own bg-(--bg2)/border classes, and trying to override those via a
fallthrough class from the parent is a Tailwind cascade-order gamble;
a ring is a different CSS property so it never conflicts.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
TodosCard's taskLink() now appends ?select=<taskId>, matching the deep
-link query param TasksSpace.vue already reads (opens the task detail
modal and does a scroll-into-view + glow highlight on the Kanban
card). TasksGlobal.vue ("Mes Tâches") never actually supported this
param despite personal/unlisted tasks routing there from Home — added
the same handling (find task in the just-loaded list, open it, highlight
its card by id, then clear the query param via router.replace) and
tagged the desktop Kanban card with id="task-<id>" the same way
TasksSpace.vue does.

Deliberately only tagged the desktop card, not the mobile list-item
one — both render in the DOM simultaneously (Tailwind just hides one
via a responsive class, it's not v-if'd), so tagging both would create
duplicate ids. TasksSpace.vue has the same asymmetry already; matched
it rather than fixing something wider than what was asked.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Replaced the per-space swimlane layout (one full 3-column Kanban board
stacked per project) with a single unified board spanning every space
+ personal tasks at once, matching what "Mes Tâches" is actually
supposed to be: one dashboard of everything assigned to or created by
me, not N separate boards.

Also fixes a real bug along the way: TaskProgressGauge (and, before
this rewrite, the swimlane grouping too) was fed raw `rawTasks`
straight from GET /lists/me. That endpoint returns entire TodoLists I
belong to, and a shared list's `tasks` include isn't scoped to just my
own tasks within it — so a list assigned to me but containing
teammates' tasks could leak their tasks into my stats. Introduced a
single `myTasks` computed (same isAssignedToMe || isCreatedByMe rule
already used correctly for swimlane filtering) and pointed everything
at it, including the gauge.

Other changes:
- New space filter (DropDown, same pattern as the existing tag
  filter): "Tous mes espaces" / "Personnel" / one entry per space that
  actually has a task of mine. Combines with the tag filter.
- Desktop board + mobile list both now render tasks with the shared
  TaskCard.vue component (tags, assignees, subtask/attachment counts,
  due-date progress) instead of duplicated inline markup, with a small
  space-name badge in the header-right slot since swimlanes no longer
  imply which project a card belongs to.
- Drag & drop simplified accordingly: no more spaceGroupId tracking or
  cross-project-move rejection, since there's only one board now.
- Dropped the per-swimlane "Ajouter ici" button; the header's single
  "Nouvelle Tâche" already lets you pick a space via CreateTaskModal's
  own selector.
- Removed a dead parent-level useTaskTags()/loadTags() call — it
  populated a `tags` ref nothing read; TaskTagPicker.vue fetches its
  own tags independently.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Space filter entries now show the actual space icon (image/data-URI,
  bootstrap icon class, or initials fallback — same three-way logic as
  SpaceBarBTN.vue) instead of a generic folder icon. task.space from
  GET /lists/me only carries {id, name}, so the logo is looked up from
  openedOrg.spaces (already in memory) instead of requiring a backend
  change.
- The board wasn't actually filling the viewport: main scrolled as one
  block and each column only had a min-height guess (min-h-[50vh]).
  Restructured to the same flex-1/min-h-0 chain TasksSpace.vue already
  uses (main: flex flex-col + md:overflow-hidden; board:
  flex-1 min-h-0; each column: h-full with its own internal
  overflow-y-auto task list) so the 3 columns now stretch to the full
  available height, scrolling individually instead of the whole page
  scrolling under a board of guessed height.
- Consolidated the loading/empty/content branches into a proper
  v-if/v-else-if/template-v-else chain instead of nesting everything
  under one wrapper div, needed for the flex height chain to reach the
  actual board.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Ported TasksSpace.vue's archiving UI/logic wholesale instead of the
divergent one this page had:

- Moved "Tâches archivées" from the top header into the filter row,
  and made it a live drop target while dragging (v-if="archivedCount
  > 0 || isDraggingTask", dragOverArchiveBtn hover state) — dropping a
  card on it now archives directly, matching TasksSpace.vue exactly.
- Removed the floating amber "archive" circle entirely (bottom-right,
  isArchiving/isHoveringArchive) — TasksSpace.vue never had one; the
  header button is the only archive drop target. Only the trash circle
  remains.
- "Archiver tout" on the DONE column no longer archives immediately —
  it now opens the same ConfirmDelete confirmation TasksSpace.vue
  uses ("Archiver toutes les tâches terminées ?"), renamed
  archiveAllDone -> confirmArchiveAll to match.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
LogoLoader.vue gains an optional progress prop (0-100): a determinate
bar when given, an indeterminate sliding one when omitted. App.vue now
tracks real boot progress through bootstrap()/finishAuthInit() (health
check 25%, Keycloak 50%, user+orgs fetched 85%, peer/presence 100% —
hand-weighted steps rather than a byte-transfer percentage, which
wouldn't mean much for this handful of small requests) and feeds it to
the loader shown before the PIN screen and while waiting on
authenticated to resolve. The PIN-submit loading state (crypto work,
not boot) stays indeterminate since bootProgress is already at 100 by
then.

Mirrored the same progress bar (indeterminate, no reactive data
available pre-Vue) in index.html's static #boot-loader so there's no
visual pop when it hands off to the Vue-rendered LogoLoader.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- index.html: <div class="shimmer" /> isn't valid self-closing HTML —
  only void elements (img, br...) can self-close; browsers parse a
  trailing /> on a div as a plain opening tag. The next </div> was
  therefore closing the shimmer instead of the logo box, which pulled
  the newly-added progress-bar div one level too deep — as a third
  flex item inside the logo box's row layout, next to the image
  instead of below it. Explicit </div> fixes the parse tree.
- App.vue/init.ts: the bar sat frozen at 50% for the entire
  init.run() Promise.all (user+orgs+openedOrg fetched in parallel),
  then jumped straight to 85%. init.run() now takes an onStep callback
  fired after each of the 3 requests resolves (in whatever order they
  actually finish), so the bar advances 3 times through that window
  instead of once. Also bumped the fill transition to 500ms for a
  visibly smoother motion between steps.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The "not authenticated" branch and the "authenticated but !user"
branch each had their own separate <Loader>, in two different
subtrees split by the top-level v-if="authenticated"/v-else. The
moment Keycloak resolved and authenticated flipped true (right around
the middle of the boot sequence), the whole v-else subtree — including
its Loader — unmounted, and a brand new Loader mounted inside the
v-if="authenticated" subtree instead. Same visual (shimmering icon +
progress bar), but a fresh component instance, so its animations
restarted from scratch — the reported "icon re-fades in mid-load".

Restructured the top-level branches into a single v-if/else-if/else
chain (isTauri&&!authenticated -> bootError -> !authenticated||!user
-> the real app) so there is exactly one persistent Loader spanning
the entire "not ready yet" window, regardless of which sub-condition
is driving it. It only unmounts once we reach the branch where user
is guaranteed loaded, at which point pinLoading is the only remaining
reason to show a (separate, indeterminate) loader inside the PIN flow.

Also reset bootProgress to 50 at the start of a manual Tauri login,
since bootstrap() may have already pushed it to 100 on a prior failed
auto-auth attempt — without the reset the bar would visibly jump
backward after clicking "Se connecter".

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Each card's own height is entirely driven by the grid's max-height cap
(they're flex flex-col with an internal overflow-y-auto body, so they
just fill whatever height they're given). The old 22rem cap only fit
~3-4 rows before scrolling. Raised it to min(38rem, viewport-aware),
so cards use noticeably more vertical space on typical screens while
still backing off on short viewports instead of pushing the page into
an awkward scroll.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
After a successful PIN, org/user data (already fetching in the
background since before the PIN screen, unrelated to the decrypted
key) can still occasionally be in flight for a moment — the app was
handling that by swapping back to the exact same full-screen
logo+progress-bar used for the real cold boot, which read as "the
whole app just reloaded" even though nothing did.

Replaced both re-appearances of that splash (the isLoaded wait after
unlock, and the pinLoading wait during unlock) with the small SpinLoader
already used elsewhere for localized waits (e.g. OrgLayout's own
orgReady gate), on the same background as the surrounding screen
instead of the boot-tinted one, plus a fade transition on both swaps
so they don't hard-cut. The real boot splash (before authentication)
is untouched.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
/banner.svg (App.vue's PIN form logo) only started fetching once that
form actually mounted, well after the initial page load — so it
visibly popped in after the PIN UI was already on screen. Added a
<link rel="preload"> in the document head so the browser starts
fetching it immediately in parallel with everything else, long before
the PIN screen can ever render.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Capacitor's Android WebView bridge (WebViewLocalServer.java) special-
cases the literal path "/favicon.ico" and always answers it with an
empty response (no body), regardless of what file is actually synced
there — it's meant to silently swallow the WebView's own implicit
favicon probe, but it also intercepts real <img> requests using that
same path. LogoLoader.vue and index.html's static pre-Vue boot screen
both used <img src="/favicon.ico"> as the actual splash logo, so it
rendered blank specifically in the APK build while working fine
everywhere else (dev server, browser, Tauri desktop).

Pointed both at /assets/logo/synco/favicon_synco.svg instead — a
regular, non-intercepted static asset with the same icon. The
<link rel="icon"> tag keeps favicon.ico since that one has no visible
effect in the native app shell anyway.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Message.senderId used to point at the webhook's creator, so any UI
reading `sender` without checking `isWebhook` first leaked the
creator's real name/avatar. Fixes the two spots that did:
- ThreadMessage.vue's reply-to preview (quoting a webhook message
  showed the creator, not the bot)
- Notifications.vue's toast + native desktop notification

Also updates delete ownership (ThreadMessage.vue's isMessageOwner) and
consecutive-message grouping (ThreadView.vue's sameAuthor) now that
senderId is nullable and no longer usable as a webhook's identity —
grouping now keys on webhookId so two different bots posting back to
back aren't visually merged into one sender.

Perf: lazy-load embed images (WebhookEmbed.vue) so a history full of
webhook messages doesn't fire every image request at once on open.
MessageReactions.vue: each reaction bubble now has a title attribute
listing who reacted, shown as a native tooltip on hover.

EmojiPicker.vue: activeCategory was already defaulting to 'recent' but
no such category ever existed, so that tab was dead. Emoji picks are
now tracked in localStorage (per device, capped to 32, most recent
first) and surfaced as a real "Récemment utilisés" category pinned
above the others — shared across all 3 places this picker is used
(reactions, and the message composer in ThreadView/ChatView) since
tracking happens once at the shared selectEmoji().
MisterPapaye and others added 21 commits September 18, 2026 20:41
.md files fell through every FileViewer.vue branch (isImage/isPdf/
isOfficeFile/isTextFile are all mimeType-based, and a .md's mimeType is
unreliable — browsers often send an empty string, and the backend's
TEXT_MIME_ALLOWLIST didn't recognize text/markdown either, so uploads
got forced to application/octet-stream). Detection is now by extension
instead, which also fixes already-uploaded .md files without a data
migration.

Adds an Édition/Aperçu toggle (starts in Aperçu, per the ask to read
first): preview renders through MarkdownRender.vue in a new 'document'
mode (tables/images/h4-h6/hr/GFM checkboxes, none of which chat's
'chat' mode allows), edit reuses the existing Monaco editor + PUT
/api/cdn/content/:id save path already used for other text files.

E2EE markdown files can still be read (fetchTextContent already
decrypts client-side) but editing is gated behind the same
"disable E2EE first" flow already used for OnlyOffice docs, since
saving always re-encrypts server-side regardless of isE2EE.
ChatView.vue uploaded DM attachments with an empty upload context, so
they never took the E2EE branch in uploadFile.ts (which needs a KEK —
previously only ever a workspace key). New dmCrypto.ts mirrors
workspaceCrypto.ts's getWorkspaceKey() but for a persistent per-DM-pair
key (backed by the new DMConversationKey model on the API side) instead
of a workspace-wide one. uploadFile.ts gains a dmPeerId context field
using it as an alternate KEK source, and ChatView.vue now passes
recipient.value.id through. downloadFile.ts resolves the right key
(workspace or DM) from the dmPeerId the backend now includes in file
metadata, so ChatMessage.vue's existing downloadFile(file.id) calls
needed no changes.

FileViewer.vue: saving an edit to an E2EE file now re-encrypts client
side (fresh DEK+IV, same as upload) and posts to the new
PUT /cdn/content-e2ee/:id endpoint instead of the plaintext PUT
/content/:id — removes the "disable E2EE to edit" gate added for
markdown in the previous pass, since editing no longer breaks E2EE.
getWorkspaceKey()'s key-generation path imported each member's public
key itself, then passed the resulting CryptoKey into
encryptSpaceKeyForMember() — which expects a raw JWK and re-runs
importKey("jwk", ...) on whatever it's given. Fed a CryptoKey instead
of a JsonWebKey object, that throws, silently caught by the loop's
try/catch, so every member failed and getWorkspaceKey() always ended
up throwing "No members with valid public keys to distribute to."
Found while adding the DM conversation key (dmCrypto.ts), which needed
the same wrapping step and would have inherited the bug if copied as-is.
The task object passed to TaskDetailsModal often comes straight from
the Kanban/list view (TasksSpace.vue's openTaskDetails/startRenameTask
just assign the list-derived task directly), and that list endpoint
only includes _count.attachments — a number, never the actual
attachment records tasksService.ts's getTask() returns for the
single-task fetch. So `task.attachments` was undefined whenever the
popup wasn't opened through the one call site that already did a full
fetch (handleOpenTask), meaning the thumbnail row and the "click to
enlarge" FileViewer never had anything to render, regardless of
whether the underlying file/preview was fine.

The popup now always refetches the full task (attachments + linkedFiles)
when it opens, instead of trusting whatever the caller happened to pass.
…ening it

The remove button was absolute inset-0 — the same size as the whole
32x32 thumbnail — stacked on top of the <img>, so it intercepted every
click regardless of its opacity-0 (opacity doesn't disable pointer
events). The parent div's @click="openAttachment(...)" never fired;
every click hit the (click-stopping) delete button instead.

Shrunk it to a small corner badge (top-right, 16x16) that only shows
on hover, leaving the rest of the thumbnail free to open the file in
the full FileViewer as intended.
Window.vue (z-100) and Popup.vue (z-[2000]) are both Teleported to
body as fixed-position siblings with hardcoded z-index — opening
FileViewer (a Window) from inside TaskDetailsModal (a Popup) put the
task popup's backdrop on top of the enlarged image, the opposite of
what should happen.

Both components now take an optional zIndex prop (defaulting to their
previous hardcoded values, so every other call site is unaffected).
FileViewer passes 2500 for its own Window — above any Popup — and 2600
for its own nested "unsaved changes" Popup, so that one still renders
above its now-elevated parent Window.
Keeps the frontend permission registry in sync with the backend copy.

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

- Per-remote-participant local volume (0-200%) via Web Audio GainNode,
  since a native <audio> element caps at 100%; persisted to localStorage.
- toggleDeafen now drives the gain nodes instead of el.muted (more
  reliable once an element is captured by createMediaElementSource).
- handleSync() now also resyncs local mic/cam state so a server-forced
  remote mute reflects immediately in the local UI.
- New switchDevice()/applyVideoQuality() to change mic/camera/speaker
  and capture resolution/framerate live without republishing.
- Room now publishes camera simulcast layers (h180/h360/h720) on top of
  the existing adaptiveStream/dynacast, letting the SFU adapt quality
  per viewer's bandwidth.
- New muteParticipant()/disconnectParticipant() wrappers around the
  backend moderation routes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Stores chosen mic/camera/speaker device ids and capture resolution/
framerate presets, plus an "auto" quality mode that picks an initial
preset from the Network Information API when available.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- VoiceParticipantMenu.vue: right-click menu per voice participant with
  a 0-200% local volume slider (always available) and permission-gated
  mute/disconnect actions, confirming disconnect via ConfirmDelete.vue.
- VoiceSettingsModal.vue: mic/camera/speaker device pickers plus
  resolution/framerate presets for camera and screen share, and an
  auto/low/medium/high video quality mode, all persisted via voicePrefs.

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

- CallControls.vue gains a "Paramètres" gear button emitting `settings`.
- VoiceThreadView.vue loads VOICE_MUTE_OTHERS/VOICE_DISCONNECT permissions
  on join, opens VoiceSettingsModal from the new button, and wraps every
  participant tile (grid view, focus view, and the focus view's own
  secondary grid) in VoiceParticipantMenu for a right-click moderation menu.
- Fixed two pre-existing template references to the bare `thread`
  identifier (never resolves in <script setup> without destructuring)
  that should have read `props.thread`.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- connectToRoom() now opens the mic on the saved input device (if any)
  and switches to the saved speaker right after connecting.
- Enabling the camera/screen share from CallControls now applies the
  saved device id and resolution/framerate preset instead of browser
  defaults, via the toggleCamera/toggleScreenShare captureOptions param
  added earlier.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…'s scoped style

Tailwind v4 compiles each SFC <style scoped> block independently, so
@apply couldn't resolve utility classes without an explicit reference
to the app's Tailwind entry (src/style.css) — this was breaking the
dev server with "Cannot apply unknown utility class `rounded-lg`".

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The previous approach wrapped each tile in DropDown's own trigger slot
(click="right"), which didn't reliably open. Switched to the pattern
already proven elsewhere in the app (FileCard.vue): the tile keeps its
original, unmodified structure and gets its own @contextmenu.prevent.stop
handler, which manually calls a toggleDropdown(e) exposed by
VoiceParticipantMenu via a ref — no wrapping, so tile sizing/grid layout
is untouched. VoiceParticipantMenu's DropDown now sits behind a
display:none anchor (still needed for DropDown's internal positioning
logic) so it never affects grid/flex flow as a sibling.

Also removed VoiceSettingsModal — its device/quality controls are being
moved inline into CallControls per user's follow-up request.

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

Replaces the single gear-icon settings modal with per-control split
buttons (Discord-style): screen share, camera, mic and speaker/deafen
are now square (rounded-xl) buttons with a small chevron on their right
edge that opens a focused dropdown — device picker for mic/speaker,
device + resolution/framerate + quality mode for camera, resolution/
framerate for screen share. Device lists refresh on `devicechange`.
Speaker dropdown only renders when the browser actually exposes
audiooutput devices (Firefox doesn't).

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

- Screen share now publishes its own simulcast layers
  (ScreenSharePresets h360fps15/h720fps15) via screenShareSimulcastLayers,
  separate from camera's videoSimulcastLayers — previously only the
  camera had explicit layers, so screen share had no SFU-driven quality
  adaptation for viewers on a weaker connection, causing lag.
- The speaker dropdown no longer disappears silently when
  enumerateDevices() returns no audiooutput devices. Firefox and Safari
  don't implement HTMLMediaElement.setSinkId at all, so they never
  report any audiooutput device — now shown as an explicit message
  instead of a vanished button, distinguishing "unsupported browser"
  from "no device detected".

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Both participant containers (the focused view's secondary strip and the
main grid view) used flex-wrap at some breakpoint — the main grid even
switched to xl:flex xl:flex-wrap specifically at the xl breakpoint,
which is what produced the "just a scrollable flex row" look on wide
screens. Both now use a consistent auto-fill CSS grid
(grid-cols-[repeat(auto-fill,minmax(...,1fr))]) at every breakpoint, so
tiles wrap into evenly sized cells instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Each participant row under a voice channel in the sidebar now:
- left-click opens their profile card (reuses the existing global
  useProfile openProfile(), same mechanism as UserDropDown.vue)
- right-click opens the same moderation menu (volume/mute/disconnect)
  used on the call tiles, via VoiceParticipantMenu

Permissions are now fetched on mount (not just on joining the call)
so a moderator browsing the sidebar without being in the call still
sees the correct mute/disconnect options.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
canMuteOthers/canDisconnectOthers only got populated inside joinCall(),
so a mount where the user is already connected (e.g. navigating to an
active call's tab without clicking "Rejoindre") never fetched
permissions — the right-click menu would then show only the volume
slider even for an OWNER/ADMIN, since usePermissions' can() returns
false until fetchPermissions has resolved at least once for that
org/space key.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Mirrors the existing mechanism in ThreadView.vue (space/channel threads):
a localStorage-backed lastRead_dm_<userId> marker anchors a red divider
at the point where new messages start, shown only when there actually
were unread messages for that DM (getUnreadCountByDMUserId, captured
before markDMAsRead clears it in joinDM). The marker is refreshed on
history load, on scrolling to the bottom, and on receiving a new
message — same three triggers ThreadView.vue already uses.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- SpaceSearchModal.vue: cast the synthetic partial task object passed
  to TaskCard as `any`, matching the existing pattern already used for
  the FileCard/ThreadBtn synthetic objects in the same search-result
  list — search hits only carry a few indexed fields, not a full Task.
- TasksSpace.vue: removed the local useTaskTags()/loadTags() call —
  `tags` was destructured but never read (TS6133), and since
  useTaskTags() creates a fresh per-call ref rather than sharing state,
  this call only ever populated its own unused local ref. The actual
  tag picker/filter UI (TaskTagPicker.vue) already has its own
  independent useTaskTags() instance, so this was a dead, wasted API
  call on every mount, not just a lint warning.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@MisterPapaye
MisterPapaye merged commit 6716039 into main Sep 19, 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