Commit Graph
20 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN 393c06c749 [decompose] extract ProfileHashtagController from js/ui/profileModalController.js
Extracts all hashtag preference related logic into a new controller
`js/ui/profileModal/ProfileHashtagController.js` to reduce the size of `js/ui/profileModalController.js` and improve maintainability.

- Moves `normalizeHashtagTag`, `formatHashtagTag`, `getResolvedHashtagPreferences`, `setHashtagStatus`, `refreshHashtagBackgroundStatus`, `populateHashtagPreferences`, `renderHashtagList`, `sanitizeHashtagList`, `createHashtagListItem`, `persistHashtagPreferences`, `handleAddHashtagPreference`, `handleRemoveHashtagPreference`, `handleHashtagPreferencesChange`, `describeHashtagPreferencesError`.
- Updates `ProfileModalController` to delegate to `ProfileHashtagController`.
- Adds delegate getters/methods in `ProfileModalController` to maintain backward compatibility for tests.
- Reduces `js/ui/profileModalController.js` by ~600 lines.
- Updates file size baseline in `scripts/check-file-size.mjs`.

Passes `npm run lint` and `npm run test:unit`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 02:06:08 +00:00
google-labs-jules[bot]andPR0M3TH3AN eeaf89330e chore(agents): run content-audit-agent daily task — audit upload docs
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-12 23:50:45 +00:00
thePR0M3TH3AN 45ab69ef78 Merge branch 'unstable' into perf/bound-comment-concurrency-6703856395977422565 2026-02-12 09:13:51 -05:00
google-labs-jules[bot]andPR0M3TH3AN 4d73092613 perf: bound comment relay concurrency and fix docs port
- Replace `Promise.all` with `pMap` in `js/nostr/commentEvents.js` to limit concurrent relay requests to `RELAY_BACKGROUND_CONCURRENCY` (3).
- Update `content/docs/guides/upload-content.md` to use port 3000 for CORS, matching `npm start` default.
- Update agent artifacts (`CONTEXT.md`, `TODO.md`, `DECISIONS.md`, `TEST_LOG.md`, `INITIAL_BASELINE.md`).

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-12 13:39:52 +00:00
google-labs-jules[bot]andPR0M3TH3AN afb3ed3a4b docs: align upload guide with verified codebase behavior
Updates `content/docs/guides/upload-content.md` to reflect the actual
implementation of the upload and playback workflows:
- Clarifies the 2GB file size limit as a client-side memory constraint.
- Explicitly instructs self-hosters to configure CORS with their instance domain.
- Adds the "External Link" flow to the upload lifecycle.
- Notes that playback priority (URL vs Torrent) depends on instance settings.
- Updates Advanced Options to mention IMETA variants.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-12 02:45:37 +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 34f2f63783 docs: align upload guide with code behavior
- Update CORS configuration to exactly match the S3 client implementation (`AllowedMethods` order).
- Clarify accepted file types by adding specific MIME types for each extension.
- Expand the IMETA section to list specific metadata fields (`m`, `dim`, `url`, `x`).
- Add specific validation errors to the troubleshooting section (`Missing Title`, `Missing Source`, `Protocol Errors`).
- Confirm file size limits and moderation policies are accurate.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-10 02:39:09 +00:00
google-labs-jules[bot]andPR0M3TH3AN 56ed0977cc docs: align /content upload guides with code behavior and fix CI failures
- Update `content/docs/guides/upload-content.md` to reflect actual file type restrictions, size limits (2GB advisory), and CORS requirements.
- Fix broken link in `content/docs/getting-started.md`.
- Fix `NostrClient` missing getters (`unreachableRelays`, `extensionPermissionCache`) by delegating to Managers.
- Update `SignerManager` to hydrate permissions from storage in constructor and store individual permission keys to satisfy unit tests.
- Update `SignerManager.loginWithExtension` to use `client.ensureExtensionPermissions` to respect test mocks.
- Verified with `tests/services/s3Service.test.mjs`, `tests/ui/uploadModal-integration.test.mjs`, `tests/video-note-payload.test.mjs`, `tests/nostr-login-permissions.test.mjs`, and `tests/unit/client-count-resilience.test.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-09 14:16:42 +00:00
google-labs-jules[bot]andPR0M3TH3AN 56a65b4555 docs: align upload guide with code behavior and fix ci dependencies
- Update `content/docs/guides/upload-content.md` to enforce HTTPS for external URLs and clarify file validation.
- Fix `SignerManager.js` permission request logic (pass extension instance).
- Fix `NostrClient` signer registration and hydration.
- Install `jsdom` to resolve `ERR_MODULE_NOT_FOUND` in unit tests.
- Patch `tests/nostr-private-key-signer.test.mjs` to handle mocked `nostr-tools` environment.
- Verify changes with `tests/services/s3Service.test.mjs`, `tests/ui/uploadModal-integration.test.mjs`, and `tests/video-note-payload.test.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-09 13:55:12 +00:00
google-labs-jules[bot]andPR0M3TH3AN 89b7fca560 Align /content user docs with actual upload & contribution behavior
- Updated `content/docs/guides/upload-content.md` with accurate file types, size limit explanations, and troubleshooting steps.
- Updated `content/docs/getting-started.md` to link to the detailed upload guide and clarify "Invite-only" (Whitelist) mode.
- Verified changes against `js/ui/components/UploadModal.js`, `js/storage/s3-multipart.js`, and `js/accessControl.js`.
- Included `VALIDATION_REPORT.md` documenting the verification process.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-09 02:59:27 +00:00
google-labs-jules[bot]andPR0M3TH3AN 75598e3eff docs: update upload guides to match code behavior
- Add "External Link" and "Magnet Link" upload methods.
- Document advanced NIP-71 metadata fields (Content Warning, Duration, IMETA).
- Clarify file type support and browser-based size limits.
- Add troubleshooting for CORS and memory issues.
- Provide examples for S3-compatible providers (MinIO, DigitalOcean).

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-08 02:54:44 +00:00
google-labs-jules[bot]andPR0M3TH3AN 48af19a4a2 docs: align upload guides with current code behavior
Updates `/content/docs/guides/upload-content.md` and `/content/docs/getting-started.md` to accurately reflect the storage configuration workflow (Profile -> Storage tab), supported providers (S3/R2), and CORS requirements.

- Clarified instructions for configuring R2 vs Generic S3.
- Updated CORS configuration example with placeholder origins.
- Aligned "Configure Storage" steps with the actual UI location.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-07 02:41:35 +00:00
google-labs-jules[bot]andPR0M3TH3AN 4dc3691974 Align /content user docs with actual upload & contribution behavior
Updated `content/docs/guides/upload-content.md` and `content/docs/getting-started.md` to accurately reflect the application's runtime behavior, specifically regarding upload workflows, CORS configuration, and routing links.

- Clarified CORS instructions to distinguish between R2 (manual) and S3 (auto) configuration.
- Updated example origins to be more generic (localhost).
- Explicitly mentioned the "Hashtags" section in the upload form.
- Clarified navigation to the Storage tab.
- Fixed the broken link to the Watch History view (using hash routing).
- Removed unsupported "captions" from the metadata list.
- Validated changes using `tests/docs/verify-upload-claims.test.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-06 03:05:56 +00:00
google-labs-jules[bot]andPR0M3TH3AN f6e48b3bd6 docs: align upload guides with code and add consistency test
- Updates `content/docs/guides/upload-content.md` and `getting-started.md` to accurately reflect supported file types, S3-compatible storage options, and metadata requirements.
- Clarifies CORS configuration steps for R2 vs. generic S3.
- Adds `tests/docs/verify-upload-claims.test.mjs` to programmatically ensure documentation claims match frontend code attributes.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-05 03:00:29 +00:00
google-labs-jules[bot]andPR0M3TH3AN 5515f51aac Align /content user docs with actual upload & contribution behavior
- Update `content/docs/getting-started.md`:
  - Add recommended 2GB file size limit for browser uploads.
  - Update required credentials list for storage configuration.
- Update `content/docs/guides/upload-content.md`:
  - Add "Bucket Name" to the required credentials list.
  - Rename "Public Bucket URL" to "Public Access URL" to match the UI.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-04 02:58:17 +00:00
google-labs-jules[bot]andPR0M3TH3AN 8cf89faa7c docs: update upload guides with exact file types, limits, and CORS requirements
- Updates `content/docs/guides/upload-content.md` to list supported video formats (`.mp4`, `.webm`, `.mov`, `.mkv`, `.ts`, `.m3u8`, `.mpg`, `.mpeg`) and thumbnail formats.
- Adds a recommended file size limit of 2GB with an explanation (browser memory constraints).
- Clarifies CORS configuration for Cloudflare R2 to explicitly require AWS SDK v3 headers.
- Updates `content/docs/getting-started.md` to distinguish between direct upload formats and external hosting formats.
- Adds metadata validation details (Title required).

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-03 02:37:44 +00:00
google-labs-jules[bot]andPR0M3TH3AN e1be63efc8 docs: update getting started with installation instructions
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-02 19:50:04 +00:00
google-labs-jules[bot]andPR0M3TH3AN 55b588ded9 docs: update /content user guides to match upload workflow and moderation config
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-02 03:02:16 +00:00
google-labs-jules[bot]andPR0M3TH3AN a2efdc6d75 fix(docs): restructure content directory and fix TOC highlighting
Moves markdown files to `content/docs/` to match the TOC structure and ensures the correct `aria-current` attribute is used for the active TOC link.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 14:51:23 +00:00
thePR0M3TH3AN 3813725438 Add docs table of contents 2026-01-26 23:29:52 -05:00