Refactor upload modal for generic storage and read-only config

- Updates Upload Modal UI labels to be provider-agnostic (e.g., 'Storage Credentials', 'Endpoint').
- Implements a read-only 'Summary View' for configured storage connections, collapsing the editable form by default.
- Adds 'Manage Storage' button that navigates to the Profile Modal's storage pane.
- Updates `initUploadModal.js` to inject the navigation callback.
- Updates `r2Service.js` status messages to be generic.
- Fixes unlock flow to ensure UI updates after storage unlock.
This commit is contained in:
google-labs-jules[bot] committed 2026-01-16 15:44:22 +00:00
1 parent 0f4775819e
commit 2b446e8ddd
5 files changed
+273 -129

No files matched your search

+5
View File
@@ -48,6 +48,11 @@ export function initUploadModal({
safeEncodeNpub,
eventTarget: events,
container,
onRequestStorageSettings: () => {
if (app && app.profileController && typeof app.profileController.show === "function") {
app.profileController.show("storage");
}
},
});
const boundSubmitHandler =