Skip to content

fix(platform): gate content bulk delete by write permission - #4353

Merged
yannickmonney merged 1 commit into
mainfrom
fix/content-bulk-delete-permissions
Oct 5, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/content-bulk-delete-permissions

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What changed

  • Products and Knowledge entries use the same real knowledgeWrite ability as row Delete to gate selection, through stable per-row predicates.
  • Products, Contacts and Knowledge entries mount their destructive bulk footer only for writers. Permission loss also removes an already-open bulk confirmation.
  • Preserve Contacts' existing role/source eligibility predicate and selected-row source filtering.
  • Add real member/editor regressions and record their ownership in the manual automation register.

This is a UI-affordance fix only: no backend authorization or shared bulk-failure recovery changes. No user-facing copy changes.

Verification

  • Before: five new permission regressions fail on main; editor controls pass.
  • After: one-worker focused Vitest UI run, 12 files / 71 tests passed, covering all three tables, row actions, column configurations, Contacts wire behavior, and Knowledge read recovery.
  • Scoped TypeScript syntactic/semantic diagnostics: all six changed TypeScript files pass, with real router registration and UI test declarations included; no full-workspace typecheck run locally.
  • Scoped oxlint --type-aware, oxfmt --check, manual-register lint, commitlint, and diff whitespace checks pass.
  • Closed synthetic Chromium fixture: 18 checks passed (three tables × member/editor × EN/DE/FR), including keyboard selection, row-menu permission parity, bulk confirmation and recorded synthetic mutation arguments; no live writes.
  • Six scoped axe audits pass with existing filter-popover aria-allowed-attr exceptions; Products additionally excludes the pre-existing redundant image alt beside its name. That unrelated accessibility issue remains outside this fix.
  • Visual-aspect-analyzer final review covers member tables and editor selected footers; evidence is attached to TALE-327.

Closes #3910

@yannickmonney

Copy link
Copy Markdown
Contributor Author

ACCEPT — exact-head independent review

Reviewed head 5d857d31f025edc96c315532f165057222db6571 (unchanged from the dispatched head). Reviewer: Codex #13 7155f7ae-b6f7-427b-9541-2edaf36abfdb, run b3224601-2de6-4d28-acf2-eb46870f9789. Implementer: Codex #14 c0c99cd0-557f-4830-a3f1-1ae4df0968f3, run 67aceb9f-20b1-43a4-a56f-c74aaa36d702.

I re-read #3910 and TALE-327 and reviewed the seven-file diff against current main. The per-row predicates correctly prevent member selection in Products/Knowledge and preserve Contacts’ canEditContact source/role rule; editor/admin write paths retain row and bulk Delete; all three bulk footers are write-gated; permission loss unmounts an open confirmation. No recovery behavior, locale copy, accessibility regression, or backend-authorization claim is introduced. The automation.md addition is documentation-only; current main has overlapping register edits from #4339/#4342/#4346 (and #4352 is merged), but no defect in this PR’s line.

Ran at the exact head: focused UI Vitest with one worker — 3 files / 26 tests passed; scoped oxlint --type-aware — pass; oxfmt --check — pass; manual-register command — no applicable tests/manual tree. A synthetic narrowed tsc config was attempted but cannot resolve this checkout’s ambient CSS/font and test matcher declarations; I do not count that as a local type pass. Repository CI’s Type check and all other required checks are green (no failures or pending checks observed).

No browser, E2E, backend stack, full suite, push, merge, CI rerun, status change, or native human-review decision was performed. Verdict: ACCEPT.

@yannickmonney
yannickmonney merged commit b211392 into main Oct 5, 2026
@yannickmonney
yannickmonney deleted the fix/content-bulk-delete-permissions branch October 5, 2026 12:43
@yannickmonney

Copy link
Copy Markdown
Contributor Author

TALE-830 merge receipt: #4353 normally squash-merged after #4354 at 2026-10-05T12:43:26Z as b211392bb7209497312c4f14f1b6ec19310cd57b.

Immediately before merge, after #4354 landed: accepted head 5d857d31f025edc96c315532f165057222db6571 unchanged, OPEN/not draft, CLEAN/MERGEABLE (UNKNOWN resolved briefly; never DIRTY); all checks terminal: 50 SUCCESS, 27 conditional SKIPPED, 1 advisory Trivy NEUTRAL; none failing/pending. gh pr checks --required reported no configured required checks; all seven CI-ready contexts SUCCESS. Skipped/neutral are not successes. Consumed manager answer 32e5e960-5303-4e92-bed8-9f7152fabfaf.

Independent ACCEPT: C13 run b3224601; implementation C14 differs from merger C12 31b27429, run 6e7f8501-7840-4256-afde-f92ed8fee6b1, resumed from 868b8134. Used explicit subject/single-bullet body and --match-head-commit. Merge call lost connectivity; read-only reconciliation confirmed MERGED/SHA without a repeated merge attempt. GitHub squash-message comparison confirms exact requested message and no trailer/attribution. No --admin, push/update-branch, CI rerun, task status change or native-review decision; human-captured reviews preserved. Merged-source evidence only, not release/deployment validation.

#4353

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.

Bug: read-only content tables expose enabled bulk Delete

1 participant