Commit Graph
5340 Commits
Author SHA1 Message Date
thePR0M3TH3AN 0deba74ee1 Merge pull request #2334 from PR0M3TH3AN/security/migrate-innerhtml-1114713630074846257
[security] Migrate innerHTML in profileModalController.js
2026-02-10 22:55:06 -05:00
thePR0M3TH3AN 09fbc7330b Merge pull request #2333 from PR0M3TH3AN/audit-report-unstable-11659156663651364283
Audit Report for Unstable Branch
2026-02-10 22:54:12 -05:00
thePR0M3TH3AN 20115dee11 Merge pull request #2332 from PR0M3TH3AN/content-docs-audit-3706052772104384925
🌐 Align /content user docs with actual upload & contribution behavior
2026-02-10 22:53:53 -05:00
thePR0M3TH3AN 563c9fcc68 Merge pull request #2331 from PR0M3TH3AN/ai/ci-health-20260211-10843530064953127328
chore(ai): CI health fixes (flaky tests & lockfile)
2026-02-10 22:53:08 -05:00
thePR0M3TH3AN 9ec005868e Merge pull request #2330 from PR0M3TH3AN/ai/todo-triage-20240523-13260651508726397217
Triage TODOs and create issue for flaky test
2026-02-10 22:52:38 -05:00
google-labs-jules[bot]andPR0M3TH3AN 8ca4a71240 [security] Migrate innerHTML in profileModalController.js
Replaced 26 instances of `innerHTML` assignment with safe DOM APIs (`textContent`, `replaceChildren`, `document.createElement`) in `js/ui/profileModalController.js`.
Updated the `scripts/check-innerhtml.mjs` baseline to reflect the reduction (from 27 to 1). The remaining instance loads a static HTML template.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-11 03:11:39 +00:00
google-labs-jules[bot]andPR0M3TH3AN eabcb1a475 Add audit report for unstable branch
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-11 03:06:19 +00:00
google-labs-jules[bot]andPR0M3TH3AN 311abee846 docs: align /content user docs with actual upload & contribution behavior
- Update `content/docs/guides/upload-content.md` to reflect current codebase and runtime behavior.
- Clarify automatic CORS configuration logic (via S3 `PutBucketCors`) and fallback manual steps.
- Add "Advanced Options (NIP-71)" section detailing `Content Warning`, `Duration`, `Summary`, `IMETA` (variants), `Web Seed`, `Torrent File`.
- Refine "Troubleshooting" section with exact error messages verified against `js/services/videoNotePayload.js`.
- Reiterate 2GB file size recommendation due to client-side hashing memory limits.
- Ensure accepted file types list matches HTML `accept` attribute in `components/upload-modal.html`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-11 02:39:28 +00:00
google-labs-jules[bot]andPR0M3TH3AN 69f475ab6b chore(ai): CI health fixes (flaky tests & lockfile)
- Fix `ReferenceError` in `tests/hashtag-preferences.test.mjs` by defining missing `permissionState` variable.
- Skip `tests/visual/overlay-layers.spec.ts` "mobile sidebar shares desktop rail behavior" as it is known to be flaky/timeout (documented in `issues/todo-moderation-tests.md`).
- Update `package-lock.json` via `npm install` to ensure consistency.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-11 02:12:10 +00:00
google-labs-jules[bot]andPR0M3TH3AN e858f5210f chore(ai): triage TODOs and create issue for flaky test
- Created `issues/todo-hashtag-preferences-unit-test.md` to document a flaky unit test in `tests/hashtag-preferences.test.mjs`.
- Generated `artifacts/todos.txt` with the scan results.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-11 01:13:14 +00:00
thePR0M3TH3AN 83d8023767 Merge pull request #2329 from PR0M3TH3AN/codex/update-ci-pipeline-for-deployment-verification
[ci] Gate release deploys on dist checks and deployed index verification
2026-02-10 17:20:57 -05:00
thePR0M3TH3AN 9992fc3acb [ci] verify deployed index artifact and enforce release checks 2026-02-10 17:20:42 -05:00
thePR0M3TH3AN b44683a38b Merge pull request #2328 from PR0M3TH3AN/codex/update-local-server-instructions
Codex-generated pull request
2026-02-10 17:17:26 -05:00
thePR0M3TH3AN 06118d290e docs: clarify local dist preview URL behavior 2026-02-10 17:17:11 -05:00
thePR0M3TH3AN 6fff162e0a Merge pull request #2327 from PR0M3TH3AN/codex/update-deployment-pipeline-for-dist-folder
[ci] Enforce dist-based deployment & verify deploy artifact
2026-02-10 17:15:47 -05:00
thePR0M3TH3AN 78f28105a9 ci/deploy: enforce dist artifact deployment settings 2026-02-10 17:12:34 -05:00
thePR0M3TH3AN acb3364d46 Merge pull request #2326 from PR0M3TH3AN/codex/document-local-server-setup-in-readme.md
Codex-generated pull request
2026-02-10 17:04:05 -05:00
thePR0M3TH3AN 6772501271 docs: clarify local dist serving URLs 2026-02-10 16:53:56 -05:00
thePR0M3TH3AN 19e5919d35 Merge pull request #2325 from PR0M3TH3AN/codex/update-deployment-pipeline-for-dist-directory
[ci] Enforce dist deploy verification and HTML cache purge
2026-02-10 16:52:23 -05:00
thePR0M3TH3AN 6fce210044 [ci] verify dist deploy artifact and force HTML cache purge 2026-02-10 16:52:05 -05:00
thePR0M3TH3AN 2e50c7a58f Merge pull request #2324 from PR0M3TH3AN/fix-broken-tailwind-in-dist-6345925489105674383
Fix broken Tailwind CSS in dist build
2026-02-10 16:37:07 -05:00
google-labs-jules[bot]andPR0M3TH3AN bf49ed7e3f Fix broken Tailwind CSS in dist build by bundling imports
- Switched from `tailwindcss` CLI to `postcss-cli` in `build:css` script to robustly handle PostCSS plugins.
- Installed `postcss-import` and `postcss-cli` as dev dependencies.
- Updated `postcss.config.cjs` to include `postcss-import` before `tailwindcss`.
- Removed `--minify` from `build:css` command as `cssnano` was stripping critical CSS variables from `tokens.css`.
- This ensures `tokens.css` is correctly inlined into `tailwind.generated.css`, fixing undefined variables that caused broken styles in the distribution build.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-10 21:31:20 +00:00
thePR0M3TH3AN dea1a2aedf Merge pull request #2323 from PR0M3TH3AN/fix-version-injection-7871469918057559176
Robust version hash injection
2026-02-10 16:08:51 -05:00
google-labs-jules[bot]andPR0M3TH3AN 53c0e9e8f4 Fix: robust version hash injection in build process
Replaced the fragile regex-based version injection in `scripts/build-dist.mjs` with a robust placeholder method.

- Added `<!-- VERSION_INFO -->` placeholder to `index.html`.
- Updated `scripts/build-dist.mjs` to target the placeholder, while retaining regex fallback for safety.
- Ensures version info is reliably injected during local builds regardless of code formatting.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-10 21:05:37 +00:00
thePR0M3TH3AN 93d9bb7585 Merge pull request #2322 from PR0M3TH3AN/perf-feed-tag-caching-7931834874140558598
⚡ Optimize feed engine tag extraction with caching
2026-02-10 15:42:47 -05:00
thePR0M3TH3AN 5cdfc2116f Merge pull request #2321 from PR0M3TH3AN/ai/load-test-20260210-17552173328410894031
feat: Add load test report (2026-02-10)
2026-02-10 15:42:13 -05:00
google-labs-jules[bot]andPR0M3TH3AN 6f49a05302 feat(perf): Optimize feed tag extraction with caching
- Extracted `getVideoTags` to `js/feedEngine/utils.js` with `WeakMap` caching.
- Updated `js/feedEngine/stages.js` and `js/feedEngine/kidsScoring.js` to use the cached utility.
- Removed redundant `collectVideoTags` and `normalizeTagSetFromVideo` functions.
- Added `benchmarks/feed_tags.mjs` to measure performance (approx 25x speedup in tight loops).
- Updated `hasDisinterestedTag` in `utils.js` to use the new utility.

This reduces object allocation and repeated string normalization during feed processing.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-10 19:44:30 +00:00
google-labs-jules[bot]andPR0M3TH3AN cbd892122c feat: Add load test report for 2026-02-10
- Executed load test with 1000 clients, 0.1 rate, 60s duration.
- Verified throughput (~83 events/sec) and latency (p95 < 1ms).
- No errors or bottlenecks detected.
- Report saved to artifacts/load-report-20260210.json.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-10 19:30:35 +00:00
thePR0M3TH3AN d951e74920 Merge pull request #2318 from PR0M3TH3AN/feed-engine-optimization-13596960870183920240
⚡ Optimize feed engine normalization overhead
2026-02-10 14:25:27 -05:00
thePR0M3TH3AN 8e33bedc52 Merge pull request #2319 from PR0M3TH3AN/fix/known-issues-popover-test-13756458544495028043
Update KNOWN_ISSUES and resolve popover flip bug
2026-02-10 14:24:55 -05:00
thePR0M3TH3AN d05d249870 Merge pull request #2317 from PR0M3TH3AN/align-development-docs-11513914336170601576
📘 Align development docs with codebase behavior
2026-02-10 14:24:30 -05:00
thePR0M3TH3AN 587bf2bde9 Merge pull request #2316 from PR0M3TH3AN/ai/fuzz-nostr-targets-20260210-192630771952606835
Add fuzzing suite for Nostr parsing, DM decryption, and Magnet normalization
2026-02-10 14:23:53 -05:00
thePR0M3TH3AN 732b002bad Merge pull request #2315 from PR0M3TH3AN/security/session-actor-idb-14997781434981555332
🔒 Refactor session actor storage to IndexedDB
2026-02-10 14:23:28 -05:00
thePR0M3TH3AN e7b0fd400a Merge pull request #2314 from PR0M3TH3AN/ds-audit/2026-02-10-2339255832586743956
docs: add daily design system audit report for 2026-02-10
2026-02-10 14:22:59 -05:00
thePR0M3TH3AN 7f64d13bcd Merge pull request #2320 from PR0M3TH3AN/feat/display-version-hash-14978844525137026702
feat: display version hash and build date in footer
2026-02-10 14:22:37 -05:00
google-labs-jules[bot]andPR0M3TH3AN 80f6aba4a8 feat: display version hash and build date in footer
Refactored scripts/hash-dist.mjs to export buildHashState and support module import.
Modified scripts/build-dist.mjs to calculate the dist hash after asset rewriting and inject it along with the current date into dist/index.html below the tagline.
Verified with Playwright screenshot.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-10 19:19:43 +00:00
google-labs-jules[bot]andPR0M3TH3AN 58648c7972 chore: update KNOWN_ISSUES and resolved popover bug
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-10 18:24:59 +00:00
google-labs-jules[bot]andPR0M3TH3AN f954bf3d89 Optimize feed engine normalization with array marking
- Introduced `NORMALIZED_ARRAY_MARKER` in `js/feedEngine/utils.js` to tag arrays that are already normalized.
- Updated `normalizeItems` in `js/feedEngine/engine.js` to skip O(N) verification if the input array is marked.
- Updated built-in stages and sorters to mark their output arrays using `markAsNormalized` when they safely construct new arrays from normalized inputs.
- This avoids redundant O(N) scans after each stage, improving pipeline performance by ~10% end-to-end and eliminating overhead for trusted stages.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-10 17:00:52 +00:00
google-labs-jules[bot]andPR0M3TH3AN b2ab1d9f48 docs: align development docs with codebase behavior
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-10 16:50:35 +00:00
google-labs-jules[bot]andPR0M3TH3AN 21220a635d Add fuzzing suite for Nostr parsing, DM decryption, and Magnet normalization
- Added `scripts/agent/fuzz-utils.mjs` with random input generators.
- Added `scripts/agent/fuzz-nostrEventSchemas.mjs` to fuzz event builders and validation.
- Added `scripts/agent/fuzz-dmDecryptor.mjs` to fuzz DM decryption logic.
- Added `scripts/agent/fuzz-magnetUtils.mjs` to fuzz magnet URI normalization.
- Added `scripts/agent/summarize-fuzz.mjs` to aggregate reports.
- Generated initial fuzzing reports in `artifacts/`.
- Verified that target functions are robust against malformed inputs.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-10 16:10:50 +00:00
google-labs-jules[bot]andPR0M3TH3AN b7922d4ed8 Refactor session actor storage to use IndexedDB instead of localStorage
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-10 15:43:40 +00:00
google-labs-jules[bot]andPR0M3TH3AN 5776837ba6 docs: add daily design system audit report for 2026-02-10
- Ran `npm run audit` to generate REMEDIATION_REPORT.md
- Verified no violations were found.
- Added report to `issues/design-system-audit-2026-02-10.md` as per process.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-10 15:39:16 +00:00
thePR0M3TH3AN f1c7c5755d Merge pull request #2313 from PR0M3TH3AN/ai/doc-client-js-20250212-11570413463835939766
chore(ai): document js/nostr/client.js
2026-02-10 10:16:09 -05:00
google-labs-jules[bot]andPR0M3TH3AN 8df741f525 chore(ai): doc js/nostr/client.js (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-10 15:10:49 +00:00
thePR0M3TH3AN 566e127a9c Merge pull request #2312 from PR0M3TH3AN/refactor-subscribe-videos-buffer-1479521585960882195
🧹 Refactor subscribeVideos buffering logic to VideoEventBuffer class
2026-02-10 10:01:10 -05:00
google-labs-jules[bot]andPR0M3TH3AN 0b35e2639b Refactor subscribeVideos buffering logic to VideoEventBuffer class
Separated the complex event buffering and flushing logic from `NostrClient.subscribeVideos` into a dedicated `VideoEventBuffer` utility class. This improves readability and maintainability of the `client.js` file.

- Created `js/nostr/videoEventBuffer.js`
- Updated `js/nostr/client.js` to use `VideoEventBuffer`
- Added unit tests in `tests/nostr/videoEventBuffer.test.mjs`

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-10 14:37:02 +00:00
thePR0M3TH3AN 11df8f79a3 Merge pull request #2311 from PR0M3TH3AN/ai/docs-update-20250212-5553057857850821992
Update Documentation: Quickstarts and Index
2026-02-10 09:26:17 -05:00
google-labs-jules[bot]andPR0M3TH3AN de7218d90b docs(ai): update quickstart and contributing (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-10 14:09:05 +00:00
thePR0M3TH3AN 15f771051f Merge pull request #2310 from PR0M3TH3AN/refactor-auth-service-login-8769251229308750811
Refactor AuthService login logic for better maintainability
2026-02-10 09:06:57 -05:00
google-labs-jules[bot]andPR0M3TH3AN f148653c39 Refactor AuthService login logic
Extracted complex logic from `AuthService.login` into private helper methods (`_validateAndNormalizeLoginInputs`, `_checkAccessControl`, `_updateGlobalState`, `_updateSavedProfiles`, `_initiatePostLogin`) to improve readability and maintainability.

Moved `SimpleEventEmitter` to `js/utils/simpleEventEmitter.js` and auth constants/normalization helpers to `js/services/authUtils.js` to reduce file size and coupling.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-10 13:53:10 +00:00