Skip to content

Fix various issues with role updates, message handling, and task sync - #28

Merged
m335671 merged 11 commits into
mainfrom
recipe/m335
Aug 27, 2026
Merged

m335671 merged 11 commits into
mainfrom
recipe/m335

Conversation

@m335671

@m335671 m335671 commented Aug 27, 2026

Copy link
Copy Markdown
Member

No description provided.

m335671 added 11 commits August 26, 2026 17:40
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.
@m335671
m335671 merged commit e971064 into main Aug 27, 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