Commit Graph
86 Commits
Author SHA1 Message Date
thePR0M3TH3AN eeb2db9037 [playback] Harden service-worker rollout and rollback guardrails 2026-02-10 00:56:33 -05:00
thePR0M3TH3AN 8c84f0a052 Add content-hashed asset manifest and HTML rewrite in dist build 2026-02-10 00:40:45 -05:00
Claude d0a6c9622b feat: add Playwright agent testability infrastructure
Add test harness (window.__bitvidTest__), data-testid attributes, relay
override support, and Playwright fixtures so agents can programmatically
login, seed relay data, and inspect app state during E2E testing.

- js/testHarness.js: exposes loginWithNsec, getAppState, relay overrides
- data-testid attrs on login/upload/video modals, header buttons, feed
- simple-relay.mjs: HTTP seeding API (POST /seed, GET /events, /health)
- bitvidTestFixture.ts: reusable Playwright fixture with mock relay
- agent-testability.spec.ts: E2E tests validating the infrastructure

https://claude.ai/code/session_01XnrszNmdqrAGd8g8qhAn4G
2026-02-10 05:09:46 +00:00
google-labs-jules[bot]andPR0M3TH3AN 9155fbe8aa fix(ai): frontend console error — remove redundant script tags (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 18:22:48 +00:00
google-labs-jules[bot]andPR0M3TH3AN 3fe7633898 Fix docs content loading by vendoring marked and highlight.js
The documentation system relied on external CDNs for `marked` and `highlight.js`. This caused content loading failures ("Error loading content") when CDNs were blocked or unreachable.

This change:
- Adds `marked` and `highlight.js` to `package.json` dependencies.
- Vendors `marked.min.js` (from UMD build) and `highlight.min.js` (downloaded) into `vendor/`.
- Updates `index.html` to load these libraries from local `vendor/` path instead of CDN.

Verified with Playwright script ensuring docs content loads successfully.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 15:43:24 +00:00
thePR0M3TH3AN 2225a56bf1 Add docs layout and TOC styling 2026-01-27 08:56:53 -05:00
google-labs-jules[bot] a01814b962 fix(ui): initialize sidebar logic before app ready and update visual baseline
Moves the sidebar density and toggle initialization logic in `js/index.js` to execute immediately after `loadSidebar` completes, rather than waiting for `applicationReadyPromise`. This resolves a race condition where the sidebar toggle was unresponsive during application startup (e.g. relay connection), causing `overlay-layers.spec.ts` to timeout.

Also updates the visual baseline for `video-modal-mobile` in `kitchen-sink.spec.ts` to match current rendering (height change), addressing the reported visual regression failure.

Verified with reproduction script and running visual tests locally.
2026-01-23 18:28:50 +00:00
thePR0M3TH3AN 19aa272bae Enhance search query parsing and filters 2026-01-23 13:13:40 -05:00
google-labs-jules[bot] 92b95c9576 fix(ci): resolve hardcoded hex color lint errors
- replace hardcoded hex colors with rgb() equivalents in:
  - js/ui/loginModalController.js
  - js/ui/ambientBackground.js
  - js/ui/components/VideoModal.js
  - js/themeController.js
  - index.html
- exclude config/instance-config.js and config/validate-config.js from check-hex.js linting
- ensures CI lint jobs pass by adhering to token/rgb policy or exclusion lists

Signed-off-by: Jules <[email protected]>
2026-01-23 17:25:47 +00:00
google-labs-jules[bot] e68e5cd1c7 fix(ui): move mobile search bar to top to avoid keyboard occlusion
Moves the `#mobileSearchContainer` from the bottom-right corner to the top of the viewport (`top-4`). This ensures that the search input remains visible when the virtual keyboard is active on mobile devices, preventing it from being covered.

- Updated `index.html` to change classes from `bottom-6 right-6 origin-bottom-right` to `top-4 left-4 right-4 origin-top`.
- Removed `w-[calc(...)]` in favor of `left-4 right-4` for simpler full-width behavior with margins.
- Ran `npm run build:css` to update generated CSS.
2026-01-21 18:01:29 +00:00
thePR0M3TH3AN 225c6a1674 Add unread DM badge to profile button 2026-01-19 14:57:10 -05:00
google-labs-jules[bot] 9adeb0e6e5 chore(ai): apply formatting/lint autofixes
Run `npm run format` and `npm run lint`.
Fix stylelint configuration to correctly parse variables with units in their names.
Migrate raw CSS measurements to tokens in `css/tokens.css` and update usages in `css/tailwind.source.css` and HTML templates.
Improve `scripts/check-design-tokens.mjs` to handle variable names with unit-like suffixes.

Files changed:
- css/tailwind.source.css (formatted and fixed lint)
- css/tokens.css (added tokens)
- stylelint.config.cjs (fixed regex)
- scripts/check-design-tokens.mjs (improved detection logic)
- components/profile-modal.html (fixed arbitrary values)
- index.html (fixed arbitrary values)
2026-01-19 14:12:29 +00:00
google-labs-jules[bot] c675aa0685 fix(ui): align mobile search icon color with upload button
Updates the mobile search FAB (#mobileSearchFab) to use `bg-accent-strong` instead of `bg-critical`.
This ensures the icon color matches the "Upload Video" button, respecting the active theme override (which sets the accent color to red).

Verified visually using a Playwright script and screenshot validation.
Verified by running `npm run build:css` and `npm run test:unit`.
2026-01-19 02:47:31 +00:00
google-labs-jules[bot] 94dddbe0c1 feat: add mobile search FAB and expandable search bar
Adds a Floating Action Button (FAB) for search on mobile devices, which expands into a full search bar upon interaction.
- Updates `index.html` to include the FAB and search container.
- Updates `js/index.js` to handle toggle logic and search submission.
- Uses `bg-critical` for the FAB to meet the "Red Circle" requirement.
- Hides the new elements on desktop to maintain existing behavior.
2026-01-18 20:11:14 +00:00
thePR0M3TH3AN 3996986e63 Remove nostr shim and retarget imports 2026-01-06 15:32:21 -05:00
thePR0M3TH3AN d2608ee427 Merge pull request #685 from PR0M3TH3AN/codex/set-profile-icon-color-to-white
Set logged-out profile icon to white
2025-10-19 19:17:59 -04:00
thePR0M3TH3AN 0389f79039 Make logged-out avatar icon follow theme 2025-10-19 19:16:45 -04:00
thePR0M3TH3AN b03d8f84e4 Set logged-out profile icon to white 2025-10-19 19:08:06 -04:00
thePR0M3TH3AN 5eebfcf848 Refine header search styling 2025-10-19 18:57:40 -04:00
thePR0M3TH3AN 1254d9f3ab Adjust header search alignment and styling 2025-10-19 18:44:03 -04:00
thePR0M3TH3AN 2baf5b40cf Add header search form and stub behavior 2025-10-19 18:32:14 -04:00
thePR0M3TH3AN 24f1f0e1a3 Make app header sticky above content 2025-10-18 23:42:30 -04:00
thePR0M3TH3AN 77052fed7c Ensure Nostr profile avatars remain circular 2025-10-18 15:00:08 -04:00
thePR0M3TH3AN e9aea74533 chore: remove umami analytics 2025-10-18 14:40:48 -04:00
thePR0M3TH3AN 1ed331ae89 Unify sidebar behavior across viewports 2025-10-18 11:58:57 -04:00
thePR0M3TH3AN 6d760d2f34 Reserve more sidebar dropup scroll space 2025-10-17 13:27:44 -04:00
thePR0M3TH3AN 7b1bb420e2 Widen sidebar dropup scroll area 2025-10-17 13:21:18 -04:00
thePR0M3TH3AN 5186b8d499 Enlarge sidebar dropup and eliminate horizontal scroll 2025-10-17 13:06:39 -04:00
thePR0M3TH3AN c633b4d905 Expand sidebar dropup capacity 2025-10-17 13:00:14 -04:00
thePR0M3TH3AN cbf0bd34ee Add overlay root and design tokens 2025-10-16 10:30:07 -04:00
thePR0M3TH3AN e5ae3771d5 Refine theme toggle icons for light and dark modes 2025-10-15 20:02:27 -04:00
thePR0M3TH3AN aab54c08ac Fix theme toggle icon contrast 2025-10-15 19:53:24 -04:00
thePR0M3TH3AN 964eb6f71e Refine theme toggle icon styling 2025-10-15 19:45:15 -04:00
thePR0M3TH3AN 190820be96 Remove binary artifacts 2025-10-15 19:39:51 -04:00
thePR0M3TH3AN 3748b234d2 Tighten header logo sizing 2025-10-15 16:14:05 -04:00
thePR0M3TH3AN 7b0846f47d Align logo wordmark with theme tokens 2025-10-15 09:50:46 -04:00
thePR0M3TH3AN 4e60b5e8bc Refine notification overlays 2025-10-15 09:31:55 -04:00
thePR0M3TH3AN 0ec6731b3a Introduce overlay layering tokens and tests 2025-10-14 15:48:09 -04:00
thePR0M3TH3AN 066e217f33 Add theme toggle button to header 2025-10-14 14:37:44 -04:00
thePR0M3TH3AN dcf5371912 Bootstrap theme tokens before CSS loads 2025-10-14 14:33:02 -04:00
thePR0M3TH3AN 8d5de3afb2 Refine logo theming selectors 2025-10-14 12:57:07 -04:00
thePR0M3TH3AN 6c88900663 refactor: move header defaults into ds utilities 2025-10-13 19:19:27 -04:00
thePR0M3TH3AN a7914e77e2 Add reusable logo utility classes 2025-10-12 20:52:37 -04:00
thePR0M3TH3AN 987911d9d6 Merge branch 'unstable' into codex/refactor-svg-logos-to-use-currentcolor 2025-10-12 20:32:19 -04:00
thePR0M3TH3AN 207d6b75ff Refactor logos to use token-driven colors 2025-10-12 20:30:54 -04:00
thePR0M3TH3AN cd42003e81 Refine markdown styling with Tailwind typography 2025-10-12 20:20:14 -04:00
thePR0M3TH3AN 3f1238b5a9 Remove legacy CSS and enable design system by default 2025-10-12 06:58:50 -04:00
thePR0M3TH3AN 8265f9e2de Add design system feature flag and runtime integration 2025-10-11 16:11:43 -04:00
thePR0M3TH3AN b4d7d265e6 refactor hex colors to tokens 2025-10-11 15:38:13 -04:00
thePR0M3TH3AN b50d474151 Refine static layouts and card primitives 2025-10-11 13:45:22 -04:00