Repository navigation
Fix various issues with role updates, message handling, and task sync - #28
Merged
Merged
Conversation
updateRoles() called the API and toasted success but never updated openedOrg.value.members, so checkboxes and role badges stayed stale until a full page reload. The backend only emits roles:updated, which RolesSettings.vue listens for but MembersSettings.vue doesn't, so mirror the change into local state right after a successful PATCH.
…y field UsersBar rendered member.role, but the role-assignment route always pins that legacy field to OWNER or MEMBER regardless of which role was actually assigned, so anyone given e.g. an Administrateur role showed up as "Member". Read the real role name from member.memberRoles instead, matching the pattern ManageAccessModal.vue already uses.
delete-message bailed out early when the message wasn't in the rawMessages map, which is only populated from thread-history — a message received or sent live (via new-message) never lands there, so deleting it left it visibly stuck in sortedMessages until reload.
Lockfile was out of date with dependencies already declared in package.json (@onlyoffice/document-editor-vue, drag-drop-touch).
getEnvValue() only ever read a physical .env file, so these two values were unreachable when set as real environment variables instead (e.g. Docker Compose environment:, CI). Check process.env first, keep the file-based fallback for native dev unchanged. Also adds the Docker image for this app (dev stage: vite dev server with hot reload; prod stage: static build served by nginx) as part of containerizing the full stack (api + front + postgres [+ onlyoffice]).
New job alongside the existing APK/MSI/AppImage builds in the same workflow, so a deploy machine only needs the compose files + .env, not a clone of this repo. Reuses the existing ENV_PRODUCTION secret to supply the VITE_* build args (they're baked into the bundle at build time, not read at runtime).
…sage
editMessage() sent { id, content, nonce: iv } — the backend's
edit-message handler expected { id, newContent }, so the new content
was silently dropped and the message was just flagged edited: true
with unchanged text. Aligned the payload with send-message's shape
(content + iv), matching the corresponding backend fix (synco_api
commit 3650d1d), which also now persists the updated iv so the edited
ciphertext can still be decrypted.
… app-wide
ThreadsBar.vue's onUnmounted called socket.off('notif:dm:new-message')
with no handler reference, which removes every listener bound to that
event name on the shared socket — including OrgLayout.vue's
independent listener that drives incoming-DM toast notifications.
Since ThreadsBar is conditionally unmounted (v-if in OrgLayout when on
the global Tasks view), navigating there killed DM notifications for
the rest of the session, with no way back short of a hard reload. Now
tracks the exact handler this component registered and only removes
that one.
Both toggleSubtaskStatus() and deleteSubtask() only handled network errors (via catch), never checking res.ok on the response. A server-side rejection (permission denied, validation error, etc.) was silently treated as success: the checkbox stayed flipped, or the subtask disappeared from the list, with no error shown — until a refresh revealed the change was never actually persisted. Both now check res.ok, revert the optimistic UI change, and show an error toast on failure, matching the pattern already used elsewhere in this file (saveTask, deleteTask).
onTaskUpdated() replaced the matching entry in the task list with the fresh server response, but selectedTask (passed as the modal's :task prop) is a separate reference set once when the modal opens — it never followed that replacement. Title/description/assignees in an already-open modal stayed stale after clicking "Enregistrer les modifications" until it was closed and reopened. onTaskUpdated() now also reassigns selectedTask when it matches the updated task.
vite build was hitting Node's default old-space heap ceiling (~2GB) while minifying the large ML dependencies bundled in (onnxruntime-web, transformers, web-llm — one vendor chunk alone is ~11.7MB minified), crashing with "JavaScript heap out of memory" — despite runners having 7GB available. Set NODE_OPTIONS=--max-old-space-size=6144 wherever this build runs: the PR build-check workflow, the release workflow's web/ Windows/Linux build steps, and the Dockerfile's prod build stage. Verified locally: build completes in ~59s with this limit.
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.