Skip to content

feat: enhance page verifications - #2670

Merged
Philipinho merged 43 commits into
mainfrom
feat/reverify-after-edit
Nov 9, 2026
Merged

Philipinho merged 43 commits into
mainfrom
feat/reverify-after-edit

Conversation

@Philipinho

Copy link
Copy Markdown
Member
  • revalidate after page edits

- compare titles with whitespace collapsed before resetting a verification
- treat missing page content as an empty document when comparing
- save the title only after a real edit, not when the editor loads or changes mode
- skip verifiers whose notification is not created
- log the audit entry and refresh open pages before sending notifications
- log changes without a user as system changes
- refetch the verification status when a page mounts again
- query the status in the verification modal only when the feature is available
- hide replace while the page is in read mode
- show who changed the page even when the user is unknown
- import the edit mode hook directly
- review dialog compares the approved, verified or rejected version with the current page
- verification modal button and ?review=changes links open it
- review by-lines show absolute dates
- review links refetch verification info before choosing the dialog
- default baseline and link target move into tested helpers
- closing the review defers clearing its request so Escape closes one modal
- the footer shows only with Open verification
- review dialog reads the date and user of the compared version by its kind
- records the ee rename
- history pointer indexes use the idx_page_verifications_* names with ifNotExists
- invalidation email button says Review page like the approval email
- review URL is built once in the notification context
- legacy capture saves the previous page with saveHistory
- shouldRecordLegacyBaseline takes VerificationEditState
- the history processor names the recorder pageHistoryRecorder
- review dialog is ReviewChangesModal with page history's shell: 1400 wide, a 650 document area and an aria-label
- review by-lines reuse the verification modal's keys with relative time
- review skeleton is aria-hidden and the mobile change bar matches page history
- the dialog's verification button says Verify page
- ReviewChangesRequest, usePageVerificationChangesQuery and setReviewChanges follow their neighbours
- HistoryDiffBar is a default export and normalizeHistoryTitle lives in page-history utils
- records the ee changes
- page.verifier_added and page.verifier_removed audit events
- audit log labels and filters for the verifier events
- en-US keys for the page verification audit labels
- records the ee change
- re-verify soon notices dedupe on the expiry date they name
- expired notices dedupe only against those sent since the current expiry date
- reconcile re-adds within a cycle still notify each verifier once
- expiry notice dedupe finds a verification's notices through the index instead of scanning notifications
- deleting a page verification no longer scans notifications for the cascade
- partial on non-null rows, since most notifications belong to no verification
- page history's 1400px includes its 250px version list, and this modal has none
- 1000px leaves a document column of about 920px, close to the page's 900px
- ee: list items carry the user who last verified or approved the page
- client: add verifiedBy to the list item type
…ation migration

- idx_notifications_page_verification_id ships with the page verification columns
- migration renamed to 20261109T163042-page-verification-updates so it sorts after main's migrations
- page.service: save cover fields inside the verification transaction
- page.service, page.module: keep main's share and Unsplash wiring next to verification
- cover and move specs: pass the invalidation service and a transaction mock
- recreateTransform set such patches aside, so a later patch that needed them made the diff throw
- history and review changes then showed the version without highlights
- a change spanning text and several nodes marked only the last image or table
- deletions now show their text and nodes in document order
@Philipinho
Philipinho merged commit 1f6fdc7 into main Nov 9, 2026
6 checks passed
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