fix(ui): profile modal controller instantiation order

- Moved controller instantiation (DM, Relay, Hashtag) to after services setup in `ProfileModalController.js`.
- Fixed `ProfileHashtagController` usage of uninitialized services.
- Updated `profile-modal-controller.test.mjs` mock to include `uiReady/dataReady` flags and use correct service access pattern.
- Resolved CI failures in `profile-modal-controller.test.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-13 03:50:42 +00:00
1 parent f8b8bae2e8
commit 4059d52847
2 files changed
+12 -10

No files matched your search

+3 -1
View File
@@ -312,6 +312,8 @@ function createController(options = {}) {
eventId: null,
createdAt: null,
loaded: true,
uiReady: true,
dataReady: true,
}),
describeHashtagPreferencesError: () => '',
onAccessControlUpdated: async () => {},
@@ -961,7 +963,7 @@ for (const _ of [0]) {
const interestList = document.getElementById('profileHashtagInterestList');
assert.equal(interestList?.querySelectorAll('li').length, 1);
controller.hashtagPreferencesService.removeInterest('art');
controller.services.hashtagPreferences.removeInterest('art');
await controller.handleAuthLogout({});
await waitForAnimationFrame(window, 2);