From 11b9b7c4c6d919b9f6649034445edfea0c77d042 Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Mon, 24 Aug 2026 11:36:40 +0200 Subject: [PATCH] fix(webui): bind file credentials and deletion to help --- package.json | 2 +- pyproject.toml | 2 +- src/govoplan_files/backend/manifest.py | 2 +- webui/package.json | 2 +- .../files/FileConnectorSettingsPanel.tsx | 26 +++++++++---------- webui/src/features/files/FilesPage.tsx | 8 +++++- .../components/FileManagerComponents.tsx | 2 +- 7 files changed, 25 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 805549b..5ef0900 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@govoplan/files-webui", - "version": "0.1.22", + "version": "0.1.23", "private": true, "type": "module", "main": "webui/src/index.ts", diff --git a/pyproject.toml b/pyproject.toml index ce5b77d..27c58f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "govoplan-files" -version = "0.1.22" +version = "0.1.23" description = "GovOPlaN files module with backend and WebUI integration." readme = "README.md" requires-python = ">=3.12" diff --git a/src/govoplan_files/backend/manifest.py b/src/govoplan_files/backend/manifest.py index f0b3dcb..1883c3b 100644 --- a/src/govoplan_files/backend/manifest.py +++ b/src/govoplan_files/backend/manifest.py @@ -458,7 +458,7 @@ def _dsar_provider(context: ModuleContext) -> object: manifest = ModuleManifest( id="files", name="Files", - version="0.1.22", + version="0.1.23", required_capabilities=( CAPABILITY_AUTH_PRINCIPAL_RESOLVER, CAPABILITY_AUTH_PERMISSION_EVALUATOR, diff --git a/webui/package.json b/webui/package.json index 6089c6e..7c6f64f 100644 --- a/webui/package.json +++ b/webui/package.json @@ -1,6 +1,6 @@ { "name": "@govoplan/files-webui", - "version": "0.1.22", + "version": "0.1.23", "private": true, "type": "module", "main": "src/index.ts", diff --git a/webui/src/features/files/FileConnectorSettingsPanel.tsx b/webui/src/features/files/FileConnectorSettingsPanel.tsx index 9d64125..b20038e 100644 --- a/webui/src/features/files/FileConnectorSettingsPanel.tsx +++ b/webui/src/features/files/FileConnectorSettingsPanel.tsx @@ -1061,7 +1061,7 @@ export default function FileConnectorSettingsPanel({ )}
patchPolicyDraft({ allowLowerConnectionLimits })} /> - patchPolicyDraft({ allowLowerCredentialLimits })} /> + patchPolicyDraft({ allowLowerCredentialLimits })} /> patchPolicyDraft({ allowLowerProviderLimits })} /> patchPolicyDraft({ allowLowerPathLimits })} /> patchPolicyDraft({ allowLowerUrlLimits })} /> @@ -1101,14 +1101,14 @@ export default function FileConnectorSettingsPanel({

Choose where this credential can be used and how it signs in.

- + patchCredentialDraft({ id: event.target.value })} placeholder={`${scopeType}-webdav-credentials`} /> patchCredentialDraft({ label: event.target.value })} placeholder="i18n:govoplan-files.govoplan_webdav_credentials.bc696d69" /> {credentialAttachProfileId && - + } @@ -1130,8 +1130,8 @@ export default function FileConnectorSettingsPanel({ />
- - patchCredentialDraft({ credentialMode: event.target.value as CredentialMode })}> @@ -1142,8 +1142,8 @@ export default function FileConnectorSettingsPanel({
patchCredentialDraft({ enabled })} /> - {editingCredentialId && patchCredentialDraft({ clearPassword })} />} - {editingCredentialId && patchCredentialDraft({ clearToken })} />} + {editingCredentialId && patchCredentialDraft({ clearPassword })} />} + {editingCredentialId && patchCredentialDraft({ clearToken })} />}
@@ -1179,8 +1179,8 @@ export default function FileConnectorSettingsPanel({ disabled={saving} showPassword={false} /> - - patchCredentialDraft({ secretRef: event.target.value })} /> + + patchCredentialDraft({ secretRef: event.target.value })} /> @@ -1304,8 +1304,8 @@ export default function FileConnectorSettingsPanel({ patchDraft({ basePath: event.target.value })} placeholder="GovOPlaN" /> - - patchDraft({ credentialMode: event.target.value as CredentialMode })}> @@ -1313,8 +1313,8 @@ export default function FileConnectorSettingsPanel({ - - patchDraft({ credentialProfileId: event.target.value })}> {profileCredentialOptions.length === 0 && } {profileCredentialOptions.map((credential) => )} diff --git a/webui/src/features/files/FilesPage.tsx b/webui/src/features/files/FilesPage.tsx index b863d7d..51cb757 100644 --- a/webui/src/features/files/FilesPage.tsx +++ b/webui/src/features/files/FilesPage.tsx @@ -2293,7 +2293,7 @@ export default function FilesPage({ settings, auth }: {settings: ApiSettings;aut {hasSelection && } - + {activeSpaceIsConnector && - {showDelete && } + {showDelete && } ); }