Refactor: Frontend cleanup (WS token in URL, dedupe helpers, store data loading) #91
Labels
No labels
area:api
area:core
area:docs
area:infra
area:ux
dependencies
documentation
duplicate
good first issue
help wanted
invalid
question
rust
status:complete
status:partial
status:planned
type:bug
type:design
type:feature
type:infra
type:refactor
type:refactor
type:research
type:ux
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
icub3d/decentcom#91
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?
Category: Refactor / simplification + minor security (frontend) — found in code review 2026-07-07.
client/src/services/gateway.ts:50) — lands in access/proxy logs and history. Prefer a subprotocol header or a short-lived one-time ticket.truncatePubkey/shortPubkey(MessageItem.tsx:22,MemberList.tsx:16,Setup.tsx:10) andnormalizeAddress(appStore.ts:32,serverStore.ts:83) into a sharedutils/.serverStore.tsconnect()andrevalidate()duplicate the fetch-channels/roles/members + build-roleMapblock — extractloadServerData().mergeMessagesre-sorts the whole array perMESSAGE_CREATE; insert instead.media.ts:15uploadFilere-implements the!response.okerror-parse already inapiRequest— share a response-error extractor.KeySafety.tsx) — cleargeneratedIdentityon completion; consider dropping/auto-clearing clipboard copy.Landed on main via #107 (commits
e305ed3+b809ffc): WS token moved out of the URL (bearer header / access_token subprotocol), deduped pubkey/address helpers, loadServerData() extraction, shared extractErrorMessage(), seed-state and clipboard clearing.