Skip to content

frontend: copy-to-clipboard on addresses (#133), light/dark theme toggle (#135) - #265

Open
Fuma2514 wants to merge 2 commits into
DepRadarOrg:mainfrom
Fuma2514:feat/copy-theme-133-135
Open

Fuma2514 wants to merge 2 commits into
DepRadarOrg:mainfrom
Fuma2514:feat/copy-theme-133-135

Conversation

@Fuma2514

@Fuma2514 Fuma2514 commented Nov 1, 2026

Copy link
Copy Markdown

Implements #133 and #135.

#133 — Copy-to-clipboard on addresses

AddressLink gains an optional copy prop rendering the existing CopyButton next to the address. Enabled on the funder address (detail header), token contract address, and claimant addresses in claim/paid timeline entries.

#135 — Manual light/dark theme toggle

New useTheme hook + topbar ☀️/🌙 button sets <html data-theme="light">; a token-override block in index.css re-skins the palette. Persisted to localStorage["depradar-theme"], dark stays the default, and a throwing localStorage (private mode) degrades to session-only.

Tests

New Layout.test.tsx (6 tests): default dark, switch + persist, restore on remount, toggle back, throwing-storage fallback, hook read. Full frontend suite 62/62 passing across 10 files; tsc and oxlint clean for changed files. PROGRESS.md entries included per CONTRIBUTING.

Closes #133, closes #135

Hermes Agent added 2 commits November 1, 2026 21:54
Case-insensitive substring search over issueRef and the structured package
name, debounced 150ms into the ?q= URL param, with a clear button and a
no-matches message. Includes BountyList component tests (6).
…ght/dark theme toggle (DepRadarOrg#135)

- AddressLink gains a copy prop rendering a CopyButton next to the address;
  enabled on funder, token contract and claimant addresses.
- useTheme hook + topbar toggle switching <html data-theme=light>, persisted
  to localStorage, dark default, private-mode safe. Light token overrides in
  index.css. 6 new tests; suite 62/62.

Closes DepRadarOrg#133, closes DepRadarOrg#135
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.

[frontend] Manual light/dark theme toggle [frontend] Copy-to-clipboard on addresses

1 participant