Skip to content

[Superseded by #9665] feat(frontend): prepare external signing administration UI - #9637

Closed
vitormattos wants to merge 5 commits into
mainfrom
feat/9598-frontend-admin-integrations-20261122
Closed

vitormattos wants to merge 5 commits into
mainfrom
feat/9598-frontend-admin-integrations-20261122

Conversation

@vitormattos

@vitormattos vitormattos commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Superseded by #9665 — canonical external signing administration UI + real OCS adapter. All five original commits from this PR are ancestors of #9665, which additionally contains the OCS integration commit. GitHub's current comparison of #9665 against main includes all ten original changed files plus the new OCS integration files; the existing visual evidence and review history remain here. Future UI fixes belong in #9665, after the backend foundation #9611 is reviewed/merged. No code was squashed or merged into main by closing this PR.


Refs: #9597, #9598, #9596, #9595. Backend dependency: #9611.

📝 Summary

Prepares a provider-neutral administrative entry in LibreSign → Policies → How signing works, without treating integrations as signing policies or adding policy inheritance, rule counts, or group/user scopes.

Visual correction: The external signing entry now occupies the existing PolicyWorkbench card grid and compact list. Its border, gradient, radius, column width and layout match neighboring controls; compact mode aligns the action with other rows. The old full-width box has been removed.

Honest functionality boundary: This PR contains the read-only catalog and typed frontend models, not a production CRUD adapter. While the administrative OCS integration is absent, Configure integrations is disabled and its status is explained inline. It no longer opens a mostly empty dialog claiming that management exists. The actual add/edit/list/enable/disable/remove workflows belong in a separate PR derived from this one, using the published API in #9611.

Driver operational availability, the global experimental flag, and integration administrative enablement remain separate. No CSC signing or credential authorization is implemented here.

🧪 How to test

  1. Run a real Nextcloud 36 + LibreSign environment with the read-only driver catalog from feat(signing): consolidate CSC driver catalog, encrypted configuration and admin OCS API #9611 and enable the experimental feature gate.
  2. Sign in as system administrator, open LibreSign → Settings → Policies → How signing works, and inspect the External signing providers item.
  3. Switch between cards and compact/list layouts. The auxiliary entry must participate in the selected layout, not appear as a separate full-width panel or fictitious policy.
  4. Without a CRUD adapter, the action must be disabled, its limitation visible, and no useless modal opened. This is intentionally a non-functional administration action until the OCS wiring PR.
  5. Verify the grid and button placement at desktop 1440 × 900 and mobile 390 × 844, without horizontal overflow or overlap with Back to top.
  6. Disable the experimental gate: the real administrative catalog must return HTTP 404 and the entry must disappear. Restore the gate after testing.

Validation evidence

  • 14 focused Vitest tests passed, including a new no-adapter/real-adapter dialog-gating suite and workbench auxiliary layout regression. The existing unrelated category-emission unit test is already failing on the previous HEAD under this local environment; it was not modified or presented as a CSC regression.
  • Local ESLint, translation hints, TypeScript, Stylelint and JavaScript build passed. Signed and DCO-verified visual correction commit: ec205a8.
  • Real Chromium/Playwright checks: matching browser, language, light theme, administrator, policy data and scroll position for each Before/After pair; cards desktop, cards mobile, compact desktop.
  • Measured equal card border-radius and background against existing workbench cards. No document/scroll-container horizontal overflow and no overlap of the provider action with the floating back-to-top button.
  • Actual admin catalog: HTTP 200 with experiment enabled; HTTP 404 and hidden entry with experiment disabled. The test-only gate was restored afterward.
  • Final GitHub CI on signed frontend HEAD c2ce63c464fde17751df42fd5cebfeeab1a44fdb: 21 of 21 workflows passed.
  • Original V2 HTML prototype asset remains unavailable for independent visual diff; the approved route and acceptance criteria of Prototype a provider-neutral administrative configuration experience #9597/Implement the generic external signing administration UI #9598 were used.
  • CRUD UI/permission/secret replacement end-to-end verification belongs to the downstream OCS integration PR.

Evidence provenance: Before = official main commit 61c0cb0. After = exact signed frontend commit ec205a8. Both use isolated real Nextcloud 36.0.0-dev/LibreSign 16.0.0-dev.3 QA installations, equivalent synthetic administrator and settings. The After QA runtime loads only the genuine, read-only CSC catalog classes from #9611 at 9452c4a; no mock CRUD, no screenshots of fabricated records and no repository change to #9611.

🎨 UI / Front-end changes

  • Auxiliary integration entry is in How signing works and visually follows the existing workbench's cards and compact rows.
  • No fake policy definition, inheritance or policy counters.
  • All new images are real browser captures, uploaded into this PR description; none are committed, zipped or left only as test artifacts.
  • Before/After photos use the exact same viewport, theme, data, workbench layout and container scroll position.
  • Responsive desktop/mobile viewports; no action overlap, no full-screen empty modal.
  • Unit/component tests for the new layout and inactive-admin state.
  • End-to-end editable integrations, secrets and session-restricted states are not present in this PR; see the follow-up integration scope.

Before / After — real Nextcloud 36 + LibreSign

🏚️ Before (main) 🏡 After (this PR)
Desktop / cards — How signing works
Main: three policy cards without external signing
Desktop / cards — fourth card matches the workbench grid
PR: external signing card aligned with three policies
Mobile / cards (390 × 844)
Main mobile: category continues without provider administration
Mobile / cards — full provider card, disabled action, no overlap
PR mobile: external signing card visible below workbench policies
Desktop / compact view
Main compact: three signing policy rows
Desktop / compact view — matching row and right-aligned action
PR compact: external signing row aligned with other settings

Real experimental-gate negative case (After code, not a Before/After code comparison):

Desktop / gate OFF Mobile / gate OFF
Desktop after: real catalog 404, no external signing entry Mobile after: real catalog 404, no external signing entry

The older Desktop Real Administrative Dialog evidence was removed because it showed only an unavailable-backend message. This correction does not claim that a real administrative edit dialog currently works. A functional dialog, based on server state, must be evidenced in the downstream OCS adapter PR instead.

🚧 Tasks — separate integration PR derived from this frontend branch

  • Wire the published feat(signing): consolidate CSC driver catalog, encrypted configuration and admin OCS API #9611 administrative OCS endpoints for paginated list/detail, create, PATCH with revision, enable, disable and deletion.
  • Handle multiple instances and explicit unavailable-driver versus disabled-instance states. Configuration may be saved disabled while a driver is unavailable, if allowed by the backend.
  • Preserve encrypted secrets on omission, support explicit replacement/removal, never prefill or reveal plaintext, handle stale revision 409 and other backend failures without pretending success.
  • Verify real desktop/mobile CRUD, keyboard accessibility, admin-only access, loading/empty/error states and feature gating.
  • Capture new real images from the derived implementation for two instances, edit, secret replacement, conflicts, and disabled/unavailable states. Never simulate an operative backend as evidence.

✅ Checklist

  • Followed existing LibreSign and Nextcloud frontend conventions and relevant contribution guidelines.
  • The diff does not contain mock screenshots, unrelated vendor changes or generated binary evidence.
  • New commits follow Conventional Commits and are cryptographically signed with the required DCO.
  • Did not merge or change feat(signing): consolidate CSC driver catalog, encrypted configuration and admin OCS API #9611; this PR remains draft.
  • This PR contains AI-assisted changes.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos vitormattos changed the title feat(frontend): prepare external signing administration UI (#9598) [Superseded by #9665] feat(frontend): prepare external signing administration UI Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant