Skip to content

Recipe/main - #51

Merged
MisterPapaye merged 56 commits into
mainfrom
recipe/main
Sep 23, 2026
Merged

MisterPapaye merged 56 commits into
mainfrom
recipe/main

Conversation

@MisterPapaye

Copy link
Copy Markdown
Member

No description provided.

MisterPapaye and others added 30 commits September 19, 2026 23:18
Two more fixes for "server confirmed up, client never manages to
reconnect" (pure network timeout, no auth/token involved this time):

- transports: ['websocket', 'polling'] meant every single (re)connection
  attempt started with a raw WebSocket handshake, with NO fallback to
  polling on failure — traced through engine.io-client's source
  (socket.js _onError): falling back to the next transport in the list
  only happens when tryAllTransports:true is also set, which we never did.
  A network that structurally can't do a WebSocket upgrade (corporate
  proxy, some public/mobile networks) but can do plain HTTPS would
  therefore fail identically on every retry, forever, even though polling
  would have worked fine. Reordered to ['polling', 'websocket'] — socket.io's
  own well-established default: connect via polling first, upgrade to
  websocket once stable. Costs one extra negotiation round-trip on the very
  first connect, buys reconnecting on networks that block raw WS.

- The previous commit's unconditional connect() retry after any
  connect_error could double up with reconnection:true's own already-running
  retry loop for ordinary (non-auth) errors, since connect_error fires for
  ANY manager-level error, not just the destroy()-triggering CONNECT_ERROR
  packet case it was written for. Now gated on socket.active (the public
  socket.io-client property reflecting whether this Socket is still
  subscribed to the Manager's reconnection events, i.e. whether destroy()
  ran) — only manually reconnects when the automatic path is actually
  broken, leaving ordinary transient errors to reconnection's own loop.

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

sfetch reporte maintenant les échecs réseau et les 502/503/504 (passerelle
injoignable) à useApiHealth, qui relance un polling /health jusqu'au retour
puisque contrairement à socket.io les appels REST ne se retentent pas tout
seuls. ConnectionStatusBanner s'appuie sur ce signal en plus de isConnected —
PeerJS reste volontairement exclu, sa reconnexion est gérée à part.

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

La détection (isConnected/isApiConnected) reste active, seul l'affichage est coupé.

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

--text2 and --primary-rgb were never defined for body.light, so every
secondary-text and glow box-shadow using them silently lost its effect in
light mode. The scrollbar also reused --primary-dark, which is intentionally
pale in light mode (used as a soft highlight tint elsewhere) and made the
thumb nearly invisible on a white track — split into a dedicated
--scrollbar-thumb token per theme instead.
Across ~75 components, hover backgrounds, borders, rings and dividers were
built with literal Tailwind white/N opacity utilities (bg-white/5,
border-white/10, hover:bg-white/10...). That reads fine in dark mode, where
white approximates --text, but on light surfaces a "white" tint is
indistinguishable from the background itself — borders, dividers and hover
feedback simply vanished in light theme. Replaced with (--text)/N, which
already lightens on dark backgrounds and darkens on light ones, matching the
pattern already used correctly elsewhere in the app (button.default,
ConfirmDelete's inputs, etc).

Video/call surfaces that render over a fixed-black tile regardless of app
theme (GuestVoiceView, VoiceThreadView's video tiles, CallControls' toolbar,
and the video-tile-specific parts of CallOverlay) were intentionally left on
literal white/black, since those aren't theme surfaces.
Missed in the previous pass since it lives in style.css rather than a .vue
file. Same fix as the rest: white/10 overlays are invisible on a light
background.
…module)

Colored glows (drag-and-drop highlights, delete-button pulse) and card hover
shadows were hardcoded at opacities tuned for a near-black background
(rgba(...,0.5) to 0.8) — on a light surface the same values read as a
saturated, glaring halo instead of a subtle accent. Introduced
--glow-primary-*/--glow-warning-strong/--glow-danger-strong/--shadow-elevated,
identical to the previous values in dark mode but noticeably softer in light,
and swapped every hardcoded rgba(...) glow in the tasks/kanban module to
reference them.

Also consolidated the module's inconsistent bg-black/20 vs bg-black/40
"recessed" fills (inputs, progress tracks, skeleton loaders) into one
--surface-sunken token (a translucent black in dark mode, same as before;
--bg3 in light, instead of a stray medium-gray box on an otherwise pale UI),
and fixed two more text-white-on-adaptive-background spots that were missed
in the previous pass (TaskCard's and TasksSpace's "+N assignees" bubble).

TasksGlobal's kanban columns also used a permanently dark bg-black/20 card
background regardless of theme (unlike TasksSpace's adaptive bg-(--bg2)/40)
— aligned it to match, since the two views are meant to look the same.
Same issue as the tasks/kanban module: hardcoded rgba(...) glows tuned for a
near-black background, found while checking whether the "flashy in light
mode" complaint was specific to the todo view or systemic. Confirmed
systemic — CapacityGauge's storage bar glow, the update-available toast
shadow, the online/notification pulse dot, SpaceFiles' own drag-to-trash
button (a near-duplicate of the tasks one), and OrgBtn's card hover shadow
all had the same hardcoded intensities. Swapped them to the tokens added in
the previous commit. Also fixed CapacityGauge's "healthy" state glow, which
hardcoded rgba(18,138,96,...) — dark theme's --primary RGB — regardless of
which theme was active, so it silently used the wrong green in light mode.
Adds two agenda sidebar panels: one to connect/manage external Google
Calendar sync (OAuth), and one to generate/revoke a read-only iCal
feed link for subscribing to the user's own agenda from external
calendar clients.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The backend already persists a real Notification row (via
createAndSendNotification) for CALENDAR_ACCESS_REQUEST/INVITE/GRANTED/
DECLINED/REVOKED, but NotificationsCard only grouped MISSED_CALL,
MISSED_MEET and WORKSPACE_ADDED into its "other" bucket, so calendar
access requests never showed up in the home notification list even
though they already appeared inside the Agenda's own access panel.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Notifications.vue's sound/native-notification watcher unconditionally
skipped every toast-type entry (latestNotif.type !== 'toast'), which is
right for generic UI toasts (save success, form errors, etc. — those go
through the same useToast().show() plumbing and shouldn't ding) but also
silently muted every notification-derived toast, including the new
calendar access request/invite/response/revoke ones.

Thread an opt-in `playSound` flag from useToast.show() through
useNotifications.ts's toast entries, and set it in
useNotification.ts's showToastNotification() for the CALENDAR_ACCESS_*
types — so those toasts ring and trigger a native OS notification like
any other important event, while ordinary UI toasts stay silent.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Extends ExternalCalendarProvider with ICS_URL/ICS_FILE and adds
addIcsUrl/addIcsFile/replaceIcsFile to useExternalCalendars, mirroring
the existing connectGoogle/syncNow/disconnect pattern.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The "+" button in the external calendars panel used to redirect
straight to Google's OAuth consent screen with no other option. It now
opens AddExternalCalendarModal.vue (built on Popup.vue, no native
dialog) with three tabs — ICS link, ICS file upload, Google — so
Google becomes one connection method among others instead of the only
one. Each connection row now shows a provider-appropriate icon and
menu actions (ICS_URL: sync + disconnect; ICS_FILE: replace file +
disconnect; GOOGLE: unchanged).

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

- externalConnectionId on OccurrenceInstance (matches the new backend field)
- isExternalCalendarVisible/toggleExternalCalendarVisibility, same
  localStorage-based per-viewer mechanism as useCalendarAccess.ts's
  isVisible/toggleVisibility for shared calendars, under its own key
- updateIcsUrl, for repointing an ICS_URL connection to a new link

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- ExternalCalendarsPanel.vue: each row is now a checkbox (same pattern
  as CalendarAccessPanel.vue's shared-calendar rows) that hides that
  connection's events from the agenda without disconnecting it; the
  "..." menu gains "Modifier le lien" for ICS_URL connections
- AgendaView.vue: visibleOwnOccurrences filters occurrences.value by
  hidden externalConnectionId before merging into displayOccurrences
- AddExternalCalendarModal.vue: takes an optional editConnection prop
  — when set, it drops the tab row, pre-fills label/color (the link
  itself is never sent to the client, so it can't be pre-filled and
  isn't shown), and submits through updateIcsUrl instead of addIcsUrl

Deleting a connection ("Déconnecter") already existed from the earlier
ICS import work; this just adds the two things that didn't.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Both panels' three-dot trigger button used @click.stop, which stops
the click from ever bubbling up to DropDown.vue's own trigger div —
the ancestor whose @click actually opens the panel. Since the trigger
is a direct descendant of that div (through the #trigger slot),
stopPropagation there meant toggleDropdown() was simply never called,
regardless of the row being wrapped in a <label> or not (confirmed:
no other dropdown trigger anywhere else in the app uses .stop, and
none of them have this problem).

The row *is* a <label> for the visibility checkbox added earlier
today, which is why .stop was there in the first place — to guard
against the click also toggling that checkbox. But stopPropagation()
was never what does that (a label's "activate associated control" is
a default action, unaffected by stopPropagation — only
preventDefault() blocks it). Switched to @click.prevent: it still
blocks the unwanted checkbox toggle, while letting the click reach
DropDown's own open/close handler.

CalendarAccessPanel.vue had the identical pattern (and presumably the
identical bug, predating today's changes) — fixed both.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
DropDown.vue only renders <slot name="trigger"> and <slot name="content">
— there is no default slot. Both panels passed their action buttons as
bare children (no <template #content> wrapper), so that markup landed
in Vue's implicit default slot, which DropDown.vue never renders
anywhere. Every other DropDown usage in the app already wraps its
actions in <template #content> (verified: every other call site has a
1:1 match between <DropDown> and #content); these two just didn't.

Wrapped each panel's action buttons in <template #content>, preserving
the existing v-if/v-else-if/v-else branching per provider (Google/
ICS_URL/ICS_FILE) and per grant. Now shows: Synchroniser/Reconnecter/
Modifier le lien/Remplacer le fichier/Déconnecter for external
calendars, Quitter le partage for shared ones.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Swaps the centered ArchivedTasksPanel.vue modal for TasksArchive.vue,
reachable via two new sibling routes (tasks/archived, :spaceId/tasks/
archived) that fully replace the Kanban board instead of overlaying
it. Adds client-side search, multi-select with bulk restore/delete,
and promotes folder classification to a persistent sidebar (chips on
mobile) with drag & drop plus a non-drag "Déplacer vers…" fallback
for touch.

Also fixes archivedCount drift on the Kanban boards: the server
broadcasts 'todo-updated' to the whole org room including the
acting client, and can do so before or after the HTTP response, so
the badge could double-count an archive action or never reflect a
restore performed elsewhere. A per-task dedupe set plus reinserting
restored tasks (mirrored on TasksGlobal with an isMine check, since
that view's count is scoped to the current user) replaces the old
popup's implicit resync-on-open behavior that this change removes.
…erywhere

Generalizes the chat-only, name-based @mention system into a unified,
id-based reference system (@user, #salon, !task, &file) plus <t:unix>
timestamp tokens, usable in chat and task descriptions alike, with one
shared markdown renderer everywhere (chat, AI chat, tasks).

- useReferences.ts / useTimestampTokens.ts / useReferenceNavigation.ts: new
  composables for token extraction, trigger detection, chip rendering
  (2-pass: local/cached label first, batched /mentions/resolve for the
  rest), and click-to-navigate.
- ThreadTextarea.vue: detects all 4 triggers, searches /mentions/search for
  #/!/&, inserts literal id-based tokens (what's typed = what's encrypted,
  no separate serialization step). Gains submitOnEnter/autoFocus so it can
  be reused as a plain multi-line field, not just a chat composer.
- MarkdownRender.vue: reference/timestamp rendering now lives inside the
  component itself (was bolted onto ChatMessage/ThreadMessage only) so every
  consumer gets it for free, including OrgAI.vue, which also drops its own
  duplicated, unrestricted-allowlist marked+DOMPurify pass.
- Old useMentions.ts @pseudo rendering kept untouched for backward
  compatibility with historic messages; new tokens never collide with it.
- Task descriptions (CreateTaskModal/TaskDetailsModal) get markdown +
  references for the first time; extraction happens before the
  create/update API call.
- Chip click navigates to the referenced salon/task/file; file chips gain
  a new ?select= deep-link handler in SpaceFiles.vue (salon/task already
  had one).
- MentionsList.vue: mousedown.prevent on suggestions so picking one doesn't
  blur-close a conditionally-rendered parent editor first (task description
  edit-in-place).
renderReferences ran escapeHtml on the text before matching
REFERENCE_TOKEN_REGEX, which requires literal < / > delimiters. Once
escaped to &lt;/&gt; the regex never matched, so <@:uuid>/<#:uuid>/
<task:uuid>/<file:uuid> tokens stayed as raw text instead of becoming
reference chips, in both the composer preview and sent messages.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
ArrowUp/ArrowDown in ThreadTextarea only moved activeIndex; the
suggestion list (max-h-48 overflow-y-auto) never scrolled to keep the
highlighted item visible once the list overflowed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
<task:id> and <file:id> tokens previously rendered as the same small
icon+label pill as @user/#thread mentions. Chat messages can't embed
live TaskCard.vue/FileCard.vue (rendering goes through v-html'd
markdown, not the Vue tree), so this adds a static block-style card
(title + status badge/due date for tasks, size for files) built from
the richer fields the resolve endpoint now returns. user/thread and
any access-restricted reference keep the compact pill.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
marked (CommonMark) treats <scheme:...> as a URI autolink whenever the
scheme is >=2 chars and starts with a letter — true for "task"/"file"
but not for "@"/"#". So <task:id>/<file:id> were being turned into
<a href="task:id">task:id</a> by marked.parse itself, before
renderReferences ever saw a literal `<`/`>` to match — the raw
"task:uuid" text showed up as a plain link instead of the reference
card. <@:id>/<#:id> were unaffected (invalid scheme, marked already
left them as literal escaped text).

Pre-escape just the task/file tokens' delimiters to &lt;/&gt; before
handing content to marked.parse — verified against the project's
actual marked v18 that this stops the autolink and round-trips back
to literal `<`/`>` in the DOM text node once v-html'd, same path that
already worked for @/#/.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
chipHtml always prepended a literal '#' before the label for 'thread'
kind, but the icon already used bi-hash (a rendered '#' glyph) —
together they read as "##channel-name". Only 'user' still needs a
text prefix since its icon is a person silhouette, not an '@'.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Replace the hand-rolled HTML/CSS "reference-card" with the actual
components used everywhere else in the app (TaskCard.vue, FileCard.vue
as-is, menu and all) — same info, same interactions, instead of a
reimplementation. <task:id>/<file:id> tokens are now stripped from the
markdown source (MarkdownRender.vue) and rendered as real Vue
components below the message text via v-for, each fetching its full
object (GET /tasks/:orgId/tasks/:taskId, GET /mentions/file/:fileId)
with its own loading/restricted-access state — @/# mentions keep going
through the existing inline-chip pipeline unchanged.

TaskCard has no click handling of its own, so it's wired here to
navigateToReference (same "go to where it lives" behavior the chip
already had). FileCard already opens its own FileViewer on click, so
nothing to wire there.

Reply-preview snippets (line-clamp-1, ChatMessage.vue/ThreadMessage.vue)
get the new showReferenceCards=false prop to keep task/file as a
compact inline chip instead — a full card can't fit a 1-line preview.

Known limitation: FileCard's context menu (rename/delete/permissions/
watermark) emits events (request-delete, show-permissions, etc.) that
have no listener in chat, so those specific menu items are inert
there — download, preview, and the "voir le message" action all work
since FileCard handles those internally.

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

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The backend never sends `label` when ok=false (by design — nothing
about the resource leaks to a reader without access), but the
frontend's `item.label ?? item.id` fallback surfaced the raw id as the
chip text instead of a clear "no access" message.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Every place using ThreadTextarea (chat compose, message edit, task
description...) showed the literal <task:id>/<file:id>/<@:id>/<#:id>
code while typing — only the sent/rendered message got the nice chip.

The textarea now displays a readable form ("!Fix login bug" instead of
<task:a1b2c3>) built from a {display, token} map (pendingSubs):
inserting a reference registers the pair and shows `display`; on every
input the DOM's pretty text is converted back to the raw token form
(toRaw) before it reaches modelValue — so the component's outward
contract is unchanged (modelValue is still always raw content with
tokens, exactly as every existing consumer — CreateTaskModal's
handleSubmit reading form.description directly, extractReferenceTokens,
the send flow — already expects). Editing existing content (e.g. a
task description with real tokens) primes the map by resolving labels
on mount, so it displays readable too instead of raw code.

Chose this over rewriting the composer as a contenteditable rich
editor (which would show real colored chips, but meant redoing
cursor/IME/paste handling everywhere ThreadTextarea is used) — no
other file needed to change for this.

Known trade-off: editing inside an inserted reference's display text
breaks its link back to the token (degrades to plain text, no crash);
a restricted/inaccessible token being edited stays as raw code since
there's no label to prime it with.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
'role' joins user/thread/task/file as a reference kind — but unlike
those, it doesn't get its own trigger character: '@' now opens a
mixed picker (members + roles, like Discord), matching how naturally
people expect to reach both from the same key. Role.name isn't
field-encrypted, so — unlike task/file/thread — the whole org's roles
are fetched once and filtered locally, same as members, no debounced
/mentions/search round-trip needed.

useReferences.ts: ReferenceKind gains 'role'; since TRIGGERS is keyed
one-config-per-character, 'role' lives in a separate ROLE_TRIGGER_CONFIG
merged into PREFIX_TO_KIND/KIND_TO_TRIGGER_CHAR (role shares '@' with
user for the reverse kind->char lookup used by the composer's
readable-text display). MentionEntry (useMentions.ts) gains an
optional `kind` field so a single mixed list can carry per-entry kind;
ThreadTextarea's insertMention reads entry.kind first, falling back to
the trigger's kind, so building the right token (<@:id> vs <role:id>)
doesn't depend on the picker being single-kind anymore.

Rendering-wise a role mention stays a small inline chip (never a block
card) — added to escapeReferenceTokensForMarkdown's autolink guard
(marked treats <role:...> as a scheme autolink same as task/file) but
deliberately left out of stripBlockReferenceTokens.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
MisterPapaye and others added 26 commits September 22, 2026 19:21
textSourceContent only ran ONE of stripBlockReferenceTokens (task/file)
or escapeReferenceTokensForMarkdown, picked by showReferenceCards —
never both. In the default/main chat path (showReferenceCards=true),
task/file got stripped but whatever was left (@/#/role) never got
escaped before reaching marked.parse. <@:id>/<#:id> happened to survive
anyway (marked doesn't autolink '@'/'#' schemes), which is why this
went unnoticed until <role:id> was added — "role" is a valid autolink
scheme like "task"/"file", so it turned into a raw <a href="role:...">
link instead of the chip.

Fix: always strip (when showReferenceCards) THEN always escape
whatever tokens remain, instead of choosing one or the other.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
feat(tasks): replace archived-tasks popup with a dedicated page
Replace the plain text+button fallback with a dedicated
ConnectionErrorScreen component: an animated radar-pulse icon badge,
clearer heading/body split, and a styled retry button — matching the
visual language already used by LogoLoader/ConnectionStatusBanner
(--bg2, color-mix, rounded badges) instead of bare paragraph text.
While the "can't reach server" screen is shown, poll /health every 4s
in the background (no toast spam). Once the server answers, run the
real bootstrap() and walk the error screen through a
reconnecting (spinner) -> success (check) transition before handing
off to the normal boot loader, instead of a hard flip from error to
app.

ConnectionErrorScreen now takes a `status` prop (offline/reconnecting/
success) driving the icon and copy, cross-faded via <Transition>.
The offline overlay used to appear the instant bootError flipped to
true — a hard cut. Add a transient "disconnecting" status (brief
shake + red tint on the wifi-off badge, "Connexion interrompue...")
that plays before settling into the stable "offline" state, mirroring
the reconnecting -> success animation already in place.
The loader (logo + progress bar) and ConnectionErrorScreen were two
separate v-else-if branches, so switching between them was an instant
DOM swap. Merge them under one v-else-if guard with a shared
<Transition mode="out-in"> (opacity + blur, ~0.35s each way) so
"connexion impossible" <-> loader reads as one continuous motion
instead of a hard cut.
Clicking "Réessayer" used to only spin the button itself while
calling bootstrap() directly, with no feedback on the rest of the
screen. It now goes through the same runReconnectAttempt() state
machine as the silent auto-poll: reconnecting (spinner) first, then
either success -> smooth fade to the loader, or failure -> the
disconnecting shake back to the offline state (clearly showing the
retry didn't work) and the auto-poll resumes.
The error screen no longer plays its own "arriving" animation (red
trembling icon, text fading in) when bootError flips to true. It now
lands fully settled in the offline state right away — the only motion
left on entry is the shared logo<->error-screen cross-fade
(boot-fade) already handled in App.vue, instead of stacking a second
animation on top of it.
Copies the "Réinitialiser les filtres" button from Mes Tâches so users can clear the member/tag filters in a space's task board too.
The PIN/unlock screen used to fade+scale in as one single block. Split
it into 6 groups (logo, heading, description, PIN dots, keypad,
"forgot PIN" link) that cascade in with an incremental delay (0-380ms)
instead, reusing the existing app-reveal-in keyframe per group.
The raw native file input was nearly invisible against the dark theme,
so it wasn't obvious where to drop/select the .ics file. Replace it
with the same clickable dashed dropzone pattern used elsewhere in the
app (CreateTaskModal's image picker), with drag-and-drop support.
TaskTagPicker only offered 8 preset swatches for tag colors. Add the
same native color-input pattern already used for roles
(RolesSettings.vue): a styled circular swatch wrapping a native
<input type="color"> (system picker, eyedropper included on
Chromium/Tauri) plus a hex text field, alongside the existing presets
— for both the create form and the inline edit form.
saveEdit() used props.msg.sender?.publicKey as the "peer" key passed
to encryptForPeer(). Editing is only ever offered on your own
messages, so msg.sender is always the current user — this wrapped
encryptedAesKey with the sender's own public key instead of the
recipient's. The recipient's client then fails to unwrap it with
their private key, surfacing as an intermittent
"[E2EE] Échec du déchiffrement" / RSA-OAEP DOMException in production,
but only on messages that had been edited.

Requires the companion synco_api fix exposing recipient.publicKey in
the DM message payload.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Raise the max-height cap from 38rem/(100vh-260px) to 41rem/(100vh-230px)
so the three Home columns (Notifications/Agenda/Todos) get a bit more
room, without taking up much more of the viewport.
MobileBackBtn now accepts an optional `to` target and `always-visible`
so it can also navigate back on desktop, not just toggle the mobile
panel — used here since the archive view is a real sub-route of Tasks.
Replace the plain native <input type="color"> swatch with
ColorWheelPicker.vue: a trigger swatch that expands an HSL color wheel
(conic+radial CSS gradient, drag to pick hue/saturation) with a
lightness slider and an eyedropper button (EyeDropper API, feature-
detected and hidden where unsupported) for fully custom tag colors.
Hex input and presets stay as-is alongside it.

Deliberately NOT built on DropDown.vue: TaskTagPicker is used inside
CreateTaskModal/TaskDetailsModal, which are Popup.vue-based (z-2000),
while DropDown's teleported panel is z-1000 — same invisible-behind-
the-backdrop trap the accordion sections in CreateTaskModal already
work around. The wheel panel is a plain in-flow sibling (Vue fragment
root) instead: as a `w-full` item in TaskTagPicker's flex-wrap row it
naturally wraps onto its own line without any float/teleport/z-index
involved, and stays correctly "inside" whichever ambient DropDown
(TasksSpace/TasksGlobal filters) or Popup happens to contain it.

Adds src/assets/utils/color.ts (hexToHsl/hslToHex/isValidHex) — no
existing color conversion helper in the codebase.
The single crammed row (swatch + hex input + 8 presets) was hard to
parse. Split into two lines: preset dots on their own row, and the
custom color picker below as a distinct pill trigger (rainbow-badged
swatch + "Personnalisée" label + chevron) instead of a plain circle
identical to the presets. The hex field moves inside the picker's
expandable panel, alongside the wheel/lightness slider/eyedropper,
instead of always being visible next to the presets.
router.push() to a hardcoded target never triggers the native
WKWebView swipe-back slide animation (iOS/Capacitor) — only a real
history back navigation does. Prefer router.back() when the app
actually has a previous entry to go back to, falling back to `to`
for direct links/refreshes.
…th too

The previous fix only covered the `to` prop branch, but every mobile
entry into a sub-view (thread, task, file, settings...) already pushes
a history entry (showView=1 or a route change) — so the default
back-to-list path needs the same router.back() treatment to get the
native swipe-back slide animation, not just the TasksArchive case.
…ening

- TaskTagPicker.vue: presetColors[0] is string|undefined under
  noUncheckedIndexedAccess (inherited from @vue/tsconfig), so
  newTagColor/editColor inferred as Ref<string|undefined>, which
  ColorWheelPicker's modelValue: string prop rejected. Introduce
  DEFAULT_TAG_COLOR: string with a fallback so both refs are Ref<string>.

- MarkdownRender.vue: chip.kind is ReferenceKind (now includes 'role'
  since the role-mention feature), but the reference-click emit only
  accepts 'thread'|'task'|'file' — a role reference has no navigation
  target (useReferenceNavigation.ts doesn't handle it either). Added an
  explicit inclusion check before the emit so chip.kind narrows to
  exactly what the event expects, instead of relying on the 'user'
  branch's exclusion alone.
The mobile full-screen content panel (OrgLayout "org-content", toggled
by showView) had no transition at all — router.back() alone only gets
the native WKWebView swipe-back gesture, not an explicit in-app CSS
animation for every open/close (including taps, not just swipes).

Wrap it in a Transition using a new .mobile-view-slide-* class (pure
translateX, since the panel is already fixed/full-width — unlike the
existing width-collapsing .slide-in-right-* variants). Gated on
orgContentRevealed so it doesn't fight the initial app-reveal
scale/fade animation on first load; desktop is unaffected since
showRouterView never actually toggles there.
The outer mobile-view-slide only fires when the panel itself toggles
(v-show showRouterView) — it never played for tasks -> tasks archived,
since that navigation is a plain route push that doesn't touch the
showView query, so the panel stays shown throughout.

Wrap RouterView's own Component swap in a second Transition, keyed on
route.name (not fullPath, so incidental query changes like selecting
an item don't replay it). Needs its own mobile-page-slide-* class with
position: absolute during enter/leave, since both the outgoing and
incoming route component are mounted at once — without it they'd stack
in normal flow and double the panel's height for the animation's
duration.
TS narrows repeated reads of chip.kind after the guard, but not the
type of chip as a whole (kind isn't a discriminant across a union of
object shapes, just a union-typed property on one shape) — passing
chip directly still typed as the full ReferenceKind and failed the
reference-click overload. Rebuild the object inline instead.
@MisterPapaye
MisterPapaye merged commit dcad5f2 into main Sep 23, 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