Commit Graph

7 Commits

Author SHA1 Message Date
00507fe87c refactor: decompose CSS, unify dark mode, extract shared modules
Structural cleanup based on thermo-nuclear code quality review:
- Extract shared color-picker.css and color-popover.css from badges.css (611→85 lines)
- Extract shared lib/presets.js for preset CRUD used by popup and popover
- Unify dark mode to single applyDarkModeClass on <html>, removing 4 scattered functions
- Fix stale closure in startPostObserver, data-driven reload key check
- Remove dead exports, getHelpers wrapper, duplicated colorToHex
- Replace DOM expando properties with state array in popup.js

Net: -318 lines of duplication, no file over 401 lines.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 01:39:25 -04:00
48db2fc70e feat: add color presets + fix badge hover effect
- Add global color presets: save/apply/delete sets of {bg, border, text}
  colors as reusable presets, shown as mini badges in their own colors.
- Popover: preset badges under preview with + to save, click to apply,
  × on hover to delete.
- Popup: dedicated Color Presets section with same functionality,
  applying to light subreddit badge colors.
- Storage: colorPresets array added to settings defaults.
- Fix badge hover: change brightness(0.9) to brightness(1.1) so hover
  brightens (activates) instead of dimming.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 18:00:54 -04:00
2abb71fbb8 feat: integrate tabbed color picker into extension popup
Replace native color inputs with swatch divs wired to the shared
tabbed picker widget for global and per-subreddit color controls.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 17:16:00 -04:00
a3567005bd feat: add tabbed color picker widget (palette, named colors, custom HSV)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 17:11:53 -04:00
dd92ce8f0a fix: subreddit entry flex layout for stacked mode-aware structure
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 16:08:30 -04:00
565f039bc5 feat: popup per-subreddit overrides with mode-aware light/dark toggle
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 16:07:07 -04:00
46d008d339 feat: settings popup with color pickers, dark mode, and subreddit overrides
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 15:02:46 -04:00