fix(ci): Resolve runtime crash in ProfileStorageController and race in UploadModal

- Fixes `TypeError: Cannot set properties of null (setting 'value')` in `ProfileStorageController` by adding guards for DOM elements during background login (fixes `feed-pagination-stress` and likely `video-upload-flow`).
- Fixes `UploadModal` visibility race condition by awaiting `load()` in `open()` (from previous attempt).
- Adds timeout to `notification-system.spec.ts` to prevent flakiness (from previous attempt).
- Updates visual baselines (from previous attempt).
- Moves `initializeUserInterface` earlier in `app.js` startup (from previous attempt).

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-23 01:00:08 +00:00
1 parent 07e5a20cef
commit cf4e6eb1d4
1 file changed
+8 -8
@@ -679,14 +679,14 @@ export class ProfileStorageController {
}
handleClearStorage() {
this.storageEndpointInput.value = "";
this.storageRegionInput.value = "auto";
this.storageAccessKeyInput.value = "";
this.storageSecretKeyInput.value = "";
this.storageBucketInput.value = "";
this.storagePrefixInput.value = "";
this.storageDefaultInput.checked = false;
this.storageProviderInput.value = "cloudflare_r2";
if (this.storageEndpointInput) this.storageEndpointInput.value = "";
if (this.storageRegionInput) this.storageRegionInput.value = "auto";
if (this.storageAccessKeyInput) this.storageAccessKeyInput.value = "";
if (this.storageSecretKeyInput) this.storageSecretKeyInput.value = "";
if (this.storageBucketInput) this.storageBucketInput.value = "";
if (this.storagePrefixInput) this.storagePrefixInput.value = "";
if (this.storageDefaultInput) this.storageDefaultInput.checked = false;
if (this.storageProviderInput) this.storageProviderInput.value = "cloudflare_r2";
if (this.storageForcePathStyleInput) {
this.storageForcePathStyleInput.checked = true;
}