12 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN 0665a3392e refactor(app): Move heavy initialization from constructor to setup()
- Introduces a `setup()` method in `Application` class to handle complex initialization and side effects.
- Updates `constructor` to be lightweight, only storing configuration options.
- Updates `js/bootstrap.js`, `js/embed.js`, and relevant tests to call `app.setup()` explicitly after instantiation.
- Resolves "Heavy Constructor" code health issue.
- Fixes `tests/video-modal-zap.test.mjs` environment issue with `globalThis.navigator`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-08 03:44:38 +00:00
thePR0M3TH3AN 999235d71e Add S3 storage option to upload modal 2026-01-24 20:00:00 -05:00
google-labs-jules[bot] acd2104067 Fix(startup): Defer trusted seed bootstrapping until after Nostr init
- Moves `bootstrapTrustedSeeds` logic from `js/bootstrap.js` to a new service `js/services/trustBootstrap.js`.
- Updates `js/app.js` to explicitly await `nostrClient.init()` before calling `bootstrapTrustedSeeds()`, resolving race conditions where admin lists were fetched before the relay pool was ready.
- Ensures `waitForRelaysReady` checks for `nostrClient.pool` existence.
2026-01-05 21:12:04 +00:00
thePR0M3TH3AN 40e8f436e6 Avoid trusted seed retry blocking app startup 2026-01-02 12:26:53 -05:00
thePR0M3TH3AN 9310929f0d Ensure trusted seeds hydrate before app creation 2026-01-02 12:18:57 -05:00
thePR0M3TH3AN 50de07fa7a Add hashtag preferences service and tests 2025-10-25 15:52:05 -04:00
thePR0M3TH3AN 3fa40c6961 Add editor change listener to access control 2025-10-24 23:15:12 -04:00
thePR0M3TH3AN d8227ecb0c Refine trusted seed bootstrap logic 2025-10-24 23:13:07 -04:00
thePR0M3TH3AN 1fc4624596 Include whitelist in trusted seed bootstrap 2025-10-24 23:01:24 -04:00
thePR0M3TH3AN 123431ea7f Seed trusted moderation contacts 2025-10-20 15:07:20 -04:00
thePR0M3TH3AN 8a73d6d1fb Refactor application bootstrap to run on DOM ready 2025-10-04 13:41:26 -04:00
thePR0M3TH3AN cf34e28a47 Refactor app orchestrator into Application with dependency injection 2025-10-03 21:10:22 -04:00