Skip to content

feat(archival): an Archiving page over one overview read, with draw-up, approve and reject - #4796

Merged
rubenvdlinde merged 7 commits into
mainfrom
feature/archival-overview-page
Nov 13, 2026
Merged

rubenvdlinde merged 7 commits into
mainfrom
feature/archival-overview-page

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

What

Board openregister/OrArchivering ("Archivering") had no screen: the archiving process exists on the server (destruction lists with approval, legal holds, e-Depot transfers, the selectielijst import) but only as API. This adds the page.

  • GET /api/archival/overview (new ArchivalOverviewController + ArchivalOverviewService): counts per tab, destruction lists with a title, who drew them up and a translated status, records under an active legal hold (found through the same paged retention scan the destruction sweep uses), transfer lists, the last e-Depot transfer and the selectielijst in force. Archivist or admin only, like every archival endpoint.
  • POST /api/archival/destruction-lists/draw-up: the page's primary action "Vernietigingslijst maken". Does now what the daily sweep does (eligible today, not on an open list) through the existing DestructionListCreator. 201 / 422 (nothing eligible) / 409 (no list register).
  • Page archival at /archival, a manifest fragment (src/manifest.d/archival-overview-page.json, ADR-037) over library widgets: tabs (destruction lists, legal holds, transfer to e-Depot, selection list), record-list tables with Approve / Reject row actions on the existing endpoints, a notice for records held off a list, and fact cards for e-Depot and the selectielijst. Menu entry under Administration (Beheer), icon Gavel.
  • Spec: openspec/changes/archival-overview-page (REQ-AOV-001..003).

Not drawn: the board's Download button (no export of the overview exists) and Import on the selectielijst card (an import takes a file and has no dialog yet). Tab counts are not drawn: a tab on a dashboard cannot count from an endpoint yet.

Depends on

  • nextcloud-vue feat/record-list-table-row-actions (9513d0da74, queued in INT-NCV 24t1f): columns[].sub and rowActions in the record-list table presentation.
  • This app's lock is on nextcloud-vue 2.72.0; the page needs the release carrying the above (record-list tables arrived well after 2.72). Do not merge before the lock moves.

Verification

  • New tests fail on development (classes / fragment do not exist) and pass here: ArchivalOverviewServiceTest + ArchivalOverviewControllerTest 13 tests, 50 assertions; jest src/tests/archival-overview-page.spec.js 6/6.
  • Rendered the fragment headlessly with CnDashboardPage from nextcloud-vue on the branch above: header action, four tabs, the table with Approve / Reject on the list in review only, both fact cards, one request to the overview endpoint.
  • composer check:strict: lint, phpcs, phpmd, psalm, phpstan clean; test:all Tests: 26935, Errors: 15, all 15 in Tests\Unit\Db\AuditTrail* / DraftRemovalAuditRowTest (need a database, inherited, untouched by this change); exit 1 also from the missing coverage driver. npm run lint exit 0 (0 errors, warnings inherited). npm run test:l10n OK.

Inherited: ArchivalController::listLegalHolds() still returns a stub empty list; the overview reads holds itself.

AI disclosure: built with Claude Code (claude-opus-5-5), reviewed by the lane, to be reviewed by a human before merge.

🤖 Generated with Claude Code

…p, approve and reject

Board openregister/OrArchivering. GET /api/archival/overview gathers the
destruction lists (titled, with who drew them up and a translated status), the
records under an active legal hold, the e-Depot transfers and the selection list
in force. POST /api/archival/destruction-lists/draw-up draws up a list now from
every record the daily sweep would put on one. The page is a manifest fragment
(ADR-037) over library widgets: tabs, record-list tables with row actions, a
notice and two fact cards, in the Administration group.

Needs @conduction/nextcloud-vue with feat/record-list-table-row-actions
(columns[].sub and rowActions in the table presentation).

Assisted-by: ClaudeCode:claude-opus-5-5
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/openregister @ b5800ee

Check PHP Vue Security License Tests
lint ✅
phpcs ✅
phpmd ✅
psalm ✅
phpstan ✅
phpmetrics ✅
eslint ✅
stylelint ✅
build ✅
check-specs ✅
test-l10n ✅
test-l10n-parity ❌
format ❌
check-schema-l10n ✅
composer ✅ ✅ 173/173
npm ❌ ✅ 648/648
app:check-code ⏭️
info.xml ✅
REUSE ✅
lockfile sync ✅
PHPUnit ❌
Newman ❌
Playwright ⏭️ deferred: E2E runs locally and on the promotion path only. This pull request targets development, so the suite is asked once per promotion into beta and main rather than once per push per open pull request. Run it locally with npx playwright test, or from the Actions tab on a branch with no open pull request into development.
Hydra gates ❌

Quality workflow — 2026-10-23 04:23 UTC

Download the full PDF report from the workflow artifacts.

@rubenvdlinde
rubenvdlinde changed the base branch from development to main November 9, 2026 06:59
@rubenvdlinde
rubenvdlinde merged commit df7d263 into main Nov 13, 2026
10 of 18 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/openregister @ 018cd5d

Check PHP Vue Security License Tests
lint ✅
phpcs ❌
phpmd ❌
psalm ❌
phpstan ❌
phpmetrics ✅
eslint ❌
stylelint ❌
build ❌
check-specs ❌
test-l10n ❌
test-l10n-parity ❌
format ❌
check-schema-l10n ❌
test-newman-route-ratchet ❌
composer ✅ ✅ 168/168
npm ❌ ❌
app:check-code ⏭️
info.xml ✅
REUSE ✅
lockfile sync ❌
PHPUnit ❌ 57993/58218 · 27 skipped (worst of 5 legs: PHP 8.4, NC stable32, pgsql; counts from 5 of 8 legs)
Newman ❌
Playwright ❌
Hydra gates ❌

Quality workflow — 2026-11-15 07:50 UTC

Download the full PDF report from the workflow artifacts.

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