Repository navigation
Recipe/main - #43
Merged
Merged
Recipe/main#43
Conversation
Persist the currently viewed org id to localStorage whenever OrgLayout mounts, and on a fresh launch landing on "/" (no org in the URL), redirect to that org's home instead of always showing the org selection screen. Falls back to org selection and clears the stale preference if the saved org is no longer accessible.
- App.vue: PIN screen no longer flashes "set up your access" before flipping to "unlock your session" once the user profile loads; boot failures (health check / init errors) now show a retry state instead of leaving the user stuck on a silent spinner forever. - OrgLayout.vue: gate the routed view behind orgReady so switching org no longer briefly renders the previous org's data (member count, settings, etc.) before the new one loads. - OrgSelection.vue: reuse the already-loaded global user instead of a redundant refetch (removes the default-avatar flash), and make canCreateOrg a tri-state so the "create org" tile reserves its slot instead of popping into an already-rendered grid.
Replace the edit-message popup with an inline textarea that swaps in for the message content, in both threads and DMs. Pressing ArrowUp in an empty composer now edits the current user's last message in the conversation (ThreadTextarea emits edit-last; the parent view resolves it to a message id and passes isEditing down). Enter saves, Escape cancels. The socket payloads and encryption (per-thread key vs per-peer E2EE) are unchanged, only the trigger/UI is. Also gated ThreadMessage's edit button to the message owner, matching the check ChatMessage already had (and that the server already enforced) — removed the now-unused EditMessage popup component.
The backend deliberately omits the token from the webhook list response (audit H3 — never leak it in a listing), and useWebhooks.ts's patchWebhookUrl() silently no-ops without a token, so webhook.url stayed undefined everywhere: the list rows and the details modal, which just reused the masked list item instead of fetching the single-webhook endpoint that does return the token to its creator. - WebhooksSettings.vue: openDetailsModal now calls getWebhook(id) to load the unmasked version (URL included, for the creator) before showing it. - WebhookCreate.vue now emits the created webhook (URL included, the one moment it's fully available) so the details modal can open with it immediately, before the following list reload masks it again. - WebhookList.vue falls back to the backend's urlPreview (masked preview) instead of rendering blank when the full url isn't available.
Saving or cancelling an inline edit (edit-end) left focus nowhere — the inline textarea it was on had just been removed from the DOM. Refocus the main composer textarea afterward, same as after sending a message.
Remove the "Valider les pièces jointes" step that used to swap out the
whole composer (textarea + emoji/send buttons) and block typing/sending
until files were uploaded via a separate REST call. Attaching files no
longer blocks anything: the composer stays fully usable, and the upload
now happens inside sendMessage() itself, right alongside the text send,
with the send button showing a spinner meanwhile.
Also:
- ThreadView.vue: sendMessage() required non-empty text, silently
dropping file-only sends even though the send button was already
enabled for that case — fixed to match ChatView.vue's existing guard.
- ThreadView.vue: replaced the per-chip icon cascade (which included a
stray `file.name.includes('67')` debug leftover) with the same
getFileInfo-based helper ChatView.vue already used.
- ChatView.vue: re-enabled paste-to-attach (Ctrl+V), previously
implemented but commented out and never wired up, now matching
ThreadView.vue's existing behavior.
Add the TASK_ASSIGNED notification type (matching the new backend type) and wire TodosCard.vue to the same shared useNotification() singleton PendingMessagesCard.vue already uses for messages: an unread badge on the "Tâches" card, and a live refresh of the task list when a notification:push for a new task assignment arrives — no reload needed, same real-time path as messages.
Wire up the existing DELETE /api/admin/users/:id endpoint in UsersQuota.vue: a trash button next to the existing quota-edit button, gated behind the project's standard ConfirmDelete.vue confirmation (never a native confirm()/alert()), same pattern already used for self-service account deletion in UserSettings.vue. Already admin-only — the whole /api/admin route tree requires adminMiddleware.
useWSocket() only reused the singleton socket when socket.connected was true. During an automatic reconnection attempt (connected=false), any component mounting in that window would spin up a second, parallel socket.io connection instead of waiting on the existing one — adding extra load exactly when the server may already be struggling. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
WebhookDetails.vue printed webhook.url raw; when the backend has no url to give (masked for the viewer, or endpoint omitted it — see matching synco_api fix), the template rendered the literal string "undefined". Falls back to urlPreview / a masked placeholder like WebhookList.vue's getShortUrl already does. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
socket.io does not auto-reconnect after reason "io server disconnect" or "io client disconnect" — only other reasons (transport close, ping timeout, ...) retry via the `reconnection` option. Two things in this app relied on the disconnected reasons that never auto-reconnect: - forceReconnect() called socket.disconnect() on every Keycloak token refresh (a routine, frequent event) to force a fresh handshake — each one permanently killed the connection until some unrelated component happened to call useWSocket() again. - The server's token-expiry revalidation (ws.ts) calls socket.disconnect(true) once the handshake token's original exp passes — same dead end, and the client never used the server's existing 'auth:refresh' event meant to prevent exactly this. Now forceReconnect emits 'auth:refresh' with the current token instead of disconnecting, keeping the session alive in place. As a safety net, the disconnect handler now explicitly reconnects (after refreshing the token) whenever it sees one of the two non-auto-reconnecting reasons. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…wing it The thread delete flow (button, confirm popup, WS emit/broadcast, cascade delete via Prisma onDelete: Cascade on Message/ThreadKey/ MessageReaction/StoredFile) already existed end to end. Two gaps: - deleteThread() silently no-op'd (console.error only) when the socket wasn't connected, giving no feedback — now shows a toast. - OrgLayout.vue already removes a deleted thread from the sidebar in real time, but a user actively viewing that thread was left on a dead route. ThreadView.vue now listens for 'thread:deleted' and redirects to OrgHome with a toast, same as the existing E2EE-error redirect path. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
TaskTagPicker.vue (chip toggle + inline "new tag" mini-form) is shared by CreateTaskModal and TaskDetailsModal. useTaskTags composable wraps the tag CRUD API. Task cards in both Kanban views (global + per-space) show colored tag pills, and both views gain a tag filter row next to the existing member filter (OR-match, client-side like the rest of the module's filtering). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Paste an image into the description textarea (or use the paperclip button) to attach it. In CreateTaskModal images are staged locally and uploaded right after the task is created (it doesn't exist yet when pasting); in TaskDetailsModal they upload immediately via the task's own taskId context. Thumbnails open in the existing FileViewer.vue lightbox — getFilePreviewUrl() (new helper in downloadFile.ts) handles E2EE decryption to a blob URL the same way downloadFile() already does, so this works for both encrypted space files and personal-task SSE fallback. Kanban cards show a small attachment-count badge. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
New "Fichiers liés" section in TaskDetailsModal (space tasks only — personal tasks have no file manager to browse). FilePickerModal.vue is a searchable flat list sourced from the existing GET /api/spaces/:spaceId/files response rather than a new endpoint or a folder-navigation UI, closer to a quick command-palette pick than a file browser. Opens the picked/linked file through the same FileViewer.vue lightbox already used for attachments; unlinking only removes the reference, never the underlying file. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The new tag/attachment/linked-file UI used bg-white/*, bg-black/*, text-white and border-white/* utilities, which don't adapt to the light theme (style.css only flips --bg/--text/--border-color etc. per body.dark/body.light). Swapped to the equivalent vars already established by the app's own button styles (bg-(--text)/5|10 for subtle panels, bg-(--bg3) for recessed surfaces, border-(--border-color), text-(--text)/text-(--text2)) so theme switching keeps working. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
TaskTagPicker only ever let you create tags, with no way back if you mistyped a name or picked the wrong color despite the backend already supporting rename/delete. Tags a user created now show pencil/trash icons on hover; added a search box once there are more than a few tags, and a checkmark + "Effacer" clear button on the Kanban tag filter bars. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…opzone The only way to add an image was a tiny text button, easy to miss and not a drop target. The whole attachments block (empty or not) now accepts drag-and-drop, plus a "+" tile appended to existing thumbnails instead of a separate button, in both the create-task form and the task details view. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The per-member filter rendered one button per space member — unusable past a handful of people for orgs that can have up to 100. Replaced with TaskUserFilter, a searchable single-select dropdown (Toutes les tâches / Mes tâches / a specific member); the flat member row still appears during an active drag so drag-to-assign onto an avatar keeps working. The tag filter (same scaling problem, same "OR" semantics) now collapses behind a "N tags" dropdown built on the existing TaskTagPicker instead of a permanently-expanded pill row. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Title, date, project, assignees (with a search box always expanded) and tags were all visible at once — a lot to parse for a "type a title and go" action, which is what most task creations are. Assignees, due date, project and tags now sit behind compact pills (showing the current value, e.g. "3 personnes" or "15 mars") that expand one at a time into the same controls as before; nothing was removed, it's just collapsed until asked for. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The content wrapper had @click.stop, which also swallowed clicks on the selection buttons themselves — meant only for the search input so focusing it wouldn't trigger DropDown's click-inside-closes behavior. Selecting a user now closes the dropdown as expected for a single-select. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Rename/delete lived behind pencil/trash icons that only appeared on hover — invisible on touch, easy to miss, and cramped inside a pill. Switched the chip layout to full-width rows (checkmark, color dot, name) with always-visible manage icons for tags you created, and made the search box unconditional instead of only appearing past 6 tags. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… pill Échéance/Assignés/Tags stay as pills, but images are conceptually part of the description, not a peer option. Replaced the "Image" pill and its accordion panel with a persistent slim bar directly under the textarea; Ctrl+V and drag-and-drop both work on the textarea and on the bar itself. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The bar under the description only opened the file picker via a small "+ Image" text link — not accessible and easy to miss. The whole bar is now a proper click/keyboard target (role="button", Enter/Space, focus ring) with drag-and-drop and paste still working on it. Also dimmed the title/description placeholders (they read almost like real content) and dropped the parenthetical from the description's placeholder now that the image bar explains itself. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Same "usine à gaz" problem as the create popup: Pièces jointes, Fichiers liés, Assignation and Tags were four permanently-expanded boxes. Images now live in a slim bar under the description (mirroring the create popup, click/drag/paste all work); due date (previously not even editable here), assignees, tags and linked files are compact pills that expand one section at a time. Due date also now shows in the read-only header. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…l edit mode Replaced the single "Modifier" toggle (which unlocked the whole modal at once) with direct inline editing: clicking the title turns it into an input, clicking the description turns it into a textarea, and clicking the assignees/due date/tags/linked-files display in the header opens that field's editor — same accordion content as before, now triggered from where the value is actually shown instead of a separate pill row. Escape reverts unsaved changes to a field; autosave and the image bar work regardless of which field is being edited. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Two separate problems:
1. The filter bar (member selector, tags, archived-tasks button)
stacked vertically below sm, wasting most of the screen height on
phones for what should be a single compact row. Now permanently
flex-row/flex-nowrap; TaskUserFilter's trigger label is shortened
("Toutes"/"Moi" instead of "Toutes les tâches"/"Mes tâches", with
truncation) so all three controls fit on one line even on narrow
viewports.
2. The À faire/En cours/Terminé board used native HTML5 drag-and-drop,
which never fires on touch at all — so moving a task between columns
was already silently broken on phone, just not visibly so since the
3 columns still rendered (stacked). Added a dedicated mobile layout
(md:hidden): one status tab visible at a time, plain task list, and
‹ › buttons on each card to move it to the adjacent status without
dragging. Desktop keeps the original 3-column drag-and-drop board
unchanged (hidden md:grid). Applied to both TasksSpace (single board)
and TasksGlobal (per-project swimlanes, sharing one set of tabs).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The mobile status-change buttons were bare ‹ › chevrons that didn't say
what they'd do. They now reuse each column's own icon/color (the same
bi-circle/bi-arrow-repeat/bi-check-circle-fill used everywhere else),
and the "advance" button is labeled with the target status name
("En cours", "Terminé") instead of being icon-only — the "go back"
button stays a quiet icon-only affordance since it's the secondary path.
The active-tab background in the mobile status tab bar also used to
snap instantly between tabs; it now measures each tab's DOM rect and
slides between them with a CSS transition, so moving a task from
"En cours" to "Terminé" visibly carries the highlight across.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…overflow Two bugs bundled into one fix, both hitting every modal that uses this shared component (CreateTaskModal and TaskDetailsModal included): 1. The card had no max-height or internal scroll, so a modal taller than the viewport (easy to hit now that CreateTaskModal has pills + an expanded accordion section) just got clipped by the screen edge with no way to reach the footer buttons. 2. On mobile, a small centered card with margins around it doesn't read as a native mobile pattern. Popup is now a flex column with max-h-[90vh] and an internal overflow-y-auto content area (header/footer stay put, only the middle scrolls), and below the sm breakpoint it anchors to the bottom of the screen edge-to-edge with a top-rounded corners + drag handle, sliding up on open instead of popping in centered. Uses its own scoped transition (not the shared global .pop class other components rely on) so this doesn't change animations anywhere else. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The mobile slide reused the desktop "pop" easing (an elastic overshoot curve meant for a centered scale-in), which read as bouncy rather than a clean slide. Mobile now uses its own smooth deceleration/acceleration curves (iOS-sheet-style) for enter/leave, kept separate from desktop's bounce (still scale+translateY under the sm breakpoint). The handle bar is now draggable (Pointer Events, so touch and mouse both work): drag it up past a threshold to expand the sheet to full screen (h-[100dvh]), drag down from the default size past a threshold to dismiss, drag down from expanded to return to the default size. The sheet tracks the finger 1:1 during the drag (transition disabled) and animates smoothly to whichever state it lands in on release. Closing via drag finishes its own slide-to-bottom animation before telling the parent to close, so the inline drag transform doesn't fight the Transition component's own leave animation. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
MENTION_TOKEN_REGEX and ThreadTextarea's mention-query regex only matched ASCII [a-zA-Z0-9_-.], so accented pseudos (José, Amélie) or ones with an apostrophe (O'Brien) didn't autocomplete and didn't render as a mention tag once sent. Backend puts no charset restriction on pseudo/name, so this broke for real users while never reproducing with typical ASCII dev accounts. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ginal ThreadMessage.vue's reply-quote block bound its MarkdownRender to msg.content instead of msg.replyMessage?.content, so the quoted preview always mirrored the message being sent rather than the message it replied to (avatar/name/click-to-scroll were already correct, only the text was wrong). Fixing that surfaced a second bug: a live-pushed reply's quote showed raw ciphertext until the next reload, because ThreadView's "new-message" handler decrypted only the top-level message and never recursively decrypted replyMessage/transferMessage the way procesMessages() (used for history load) already does. The handler now reuses procesMessages() so both paths decrypt identically. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Feature/todo join file
UserCard.vue's settings gear button, UserSettings.vue's toggle switches (off state), the PIN entry boxes in App.vue, and --border-color globally all used hardcoded white-based Tailwind classes (text-(--white), bg-white/5, bg-white/10) or a --border-color only ever defined with a white rgba value in :root — fine on the dark background they were designed against, invisible on light theme's near-white background. Switched them to the theme-aware --text variable and added a --border-color override for body.light. Dark theme is unaffected. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Two bugs stacked on top of each other: 1. useSettingsItem.ts loaded/saved settings on a bare setTimeout(1), racing ahead of App.vue's async initKC() — reads/writes almost always hit the API before Keycloak finished authenticating. Now waits on keycloak.authenticated (via the existing waitFor() util) first. 2. Fixing that surfaced the real bug: settingsDB.ts read preferences back via keycloak.loadUserProfile(), which only returns attributes declared in the realm's Keycloak "User Profile" schema. Attributes written through the admin API (POST /update-attr) were accepted (200/201) but silently dropped on every subsequent read — not fixable purely in this repo without a Keycloak realm config change. Moved these app-only preferences off Keycloak attributes entirely; see the matching synco_api patch for the new storage endpoint. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… text Each message row is position:relative with its own z-index (z-10, up to z-100 when its reaction picker is open), while the composer <footer> (absolutely positioned, holding ThreadTextarea) had no z-index of its own (effectively z-index:auto / 0). Once the auto-growing textarea got tall enough to overlap the message list's reserved bottom margin, the message rows painted on top of it. Same bug in both DMs (ChatView) and channel threads (ThreadView) since they share the same footer/textarea structure. Bumped the footer to z-[110], above every message-row z-index used anywhere in the stack. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
can('FOLDER_DELETE', route.params.spaceId, thread.id) passed thread.id
as the positional folderId argument, producing a cache key
(orgId:spaceId:threadId:) that could never match any populated cache
entry — the only entry ever fetched app-wide is the zero-arg
${orgId}::: from OrgLayout's startup call, so the lookup missed
unconditionally and the button was invisible for every thread, for
every user, regardless of actual permission.
The actual backend check for thread:delete (websocket/routes/thread.ts)
is purely org-role-based — it never factors in spaceId or folderId for
a threadId-only target. Dropped the spaceId/thread.id arguments
entirely so the frontend check now reads the exact same org-level
cache entry the backend decision is based on, instead of introducing a
space-scoped permission concept that doesn't actually exist server-side.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… workspace Added a generic optional checkbox to the shared ConfirmDelete dialog (extraOptionLabel + v-model:extraOptionValue) rather than hardcoding this one case, so other destructive actions can reuse it later. Wired it into workspace deletion: checking it sends ?deleteFiles=true to DELETE /api/spaces/:spaceId, which now purges the workspace's files and folders from the file manager (see the paired backend commit) instead of always leaving them as orphaned records. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…xtStatus columns[idx-1]/columns[idx+1] type as possibly undefined under strict indexed-access checking even though the surrounding bounds check makes it safe in practice. Optional-chain the property access instead of asserting it away.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.