Skip to content

client/core: improve msg.Type formatting (server message handling)#3

Open
norwnd wants to merge 1 commit into
masterfrom
client-core-imrove-error-formatting
Open

client/core: improve msg.Type formatting (server message handling)#3
norwnd wants to merge 1 commit into
masterfrom
client-core-imrove-error-formatting

Conversation

@norwnd
Copy link
Copy Markdown
Owner

@norwnd norwnd commented Mar 8, 2023

No description provided.

@norwnd norwnd force-pushed the client-core-imrove-error-formatting branch 2 times, most recently from 976dcd0 to 7e6c25c Compare March 8, 2023 08:26
@norwnd norwnd changed the title client/core: improve error formatting (server message handling) client/core: improve msg.Type formatting (server message handling) Mar 8, 2023
@norwnd norwnd force-pushed the client-core-imrove-error-formatting branch from 7e6c25c to ec08d3e Compare March 8, 2023 08:29
@norwnd norwnd force-pushed the master branch 4 times, most recently from ad9d264 to e298e04 Compare November 24, 2024 18:25
@norwnd norwnd force-pushed the master branch 5 times, most recently from f9959eb to a66bbae Compare January 10, 2025 06:09
@norwnd norwnd force-pushed the master branch 3 times, most recently from e3c487c to 333e9f6 Compare January 18, 2025 13:45
norwnd pushed a commit that referenced this pull request Apr 16, 2026
Second T18 batch — four more items from the consolidation list.

T18#5: formatProfit duplication
- Hoisted `formatProfit(profit)` to `hooks/useFormatters.ts` and
  deleted the local copies in MMPage.tsx and MMArchivesPage.tsx.
  The two versions were identical modulo the result-field name
  (`cls` vs `colorClass`). Standardized on `cls` at the shared
  location; updated MMArchivesPage's two call sites
  (`total.colorClass`, `p.colorClass`) to `total.cls` / `p.cls`.

T18#3: MM URL building consistency
- MMArchivesPage's two navigation buttons previously built URLs via
  manual template strings with individual encodeURIComponent calls.
  Refactored to use URLSearchParams like MMPage.tsx does. Cleaner
  and handles encoding automatically (though the previous manual
  encoding was also correct).

T18#8: manage peers concurrent removal race
- Added a `removingAddrs: Set<string>` state to ManagePeers. The
  removePeer callback now bails out if a removal POST for the same
  address is already in flight, and the Remove icon for that row
  renders as a spinner while the removal is pending. Uses
  functional setState so rapid-fire clicks on different rows
  don't read stale closure state. Prevents the last-one-wins
  refresh() race when the user double-clicks the Remove icon.

T18#2: mw-500 consolidation
- Deleted `#proposals { max-width: 500px; width: 100% }` rule from
  css/proposals.scss. ProposalsPage's `<section>` now uses the
  shared `mw-500` utility class (already defined in
  css/utilities.scss and already used by ProposalPage). Removed
  the `id="proposals"` attribute since nothing else referenced it.
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