fixes #1
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_collab#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
if we click on a thread, we don't see the right side changes, where we have the messages per thread
can;t open the top is that a workspace?
needs to be a dropdown
Implementation Spec for Issue #1 — Fixes
Objective
Fix two UI bugs in the hero_collab_web Slack-like UI:
Root Causes
Bug 1 — Thread replies not loading:
openThread()(line 2100 ofhero_collab_web/src/main.rs), the JS sends{ message_id: msgId }but the server'sthread::replies()expects{ thread_id: ... }— parameter name mismatch causes silent failurerenderMessages()never renders thread reply count previews on messages (CSS.msg-thread-previewexists but is unused)Bug 2 — Workspace selector is not a dropdown:
toggleWorkspaceSwitcher()just cycles to the next workspace with no visual dropdownFiles to Modify
crates/hero_collab_web/src/main.rs— All changes are in this single file (embedded HTML/CSS/JS)Implementation Plan
Step 1: Fix thread.replies parameter mismatch
Files:
crates/hero_collab_web/src/main.rsopenThread()to send{ thread_id: msgId }instead of{ message_id: msgId }Dependencies: none
Step 2: Add thread reply count preview to messages
Files:
crates/hero_collab_web/src/main.rsrenderMessages(), after rendering reactions, add thread reply count preview using existing.msg-thread-previewCSS classthread.list(channel_id)alongsidemessage.list()inloadMessages(), store reply counts in a mapDependencies: Step 1
Step 3: Replace workspace cycling with dropdown menu
Files:
crates/hero_collab_web/src/main.rs.ws-dropdownmenu (positioned below workspace header)toggleWorkspaceSwitcher()with a function that shows/hides dropdownselectWorkspace(ws)and closes dropdownDependencies: none
Acceptance Criteria
Notes
.msg-thread-previewCSS already exists (lines 694-707) — just needs to be renderedORDER BY created_at DESCfrom the serverTest Results
test_server_health— oktest_rpc_discover— oktest_client_creation— okdoc-test hero_collab_sdk— okChanges Made
Bug 1: Thread panel not showing replies
message_idbut server expectedthread_idopenThread()to send{ thread_id: msgId }instead of{ message_id: msgId }Bug 2: Workspace selector not working as dropdown
toggleWorkspaceSwitcher()only cycled through workspaces sequentiallyFiles Modified
crates/hero_collab_web/src/main.rs— All changes (embedded HTML/CSS/JS)Implementation committed:
38a8d27Browse:
38a8d27