Skip to content

feat: moderation page improvements#1021

Merged
ThibaudDauce merged 6 commits intomainfrom
moderation_improvements
Apr 8, 2026
Merged

feat: moderation page improvements#1021
ThibaudDauce merged 6 commits intomainfrom
moderation_improvements

Conversation

@ThibaudDauce
Copy link
Copy Markdown
Contributor

@ThibaudDauce ThibaudDauce commented Apr 1, 2026

  • Fixed table columns (table-layout: fixed) to prevent layout shifts when data loads
  • Added skeleton loaders in Object, Status, Created and Actions cells while subjects are being fetched
  • Parallel subject loading (Promise.all) instead of sequential
  • Display reporter when report.by is null: robot icon + "Spam bot" for automated reports, spy icon + "Anonyme" for anonymous users
  • Added subject_embed_id to the Report type to identify specific comments within a discussion
  • Enabled discussion deletion from moderation (was previously disabled)
  • Support deleting a specific comment within a discussion (via subject_embed_id and index lookup)
  • Display discussion/comment author in the Object column
  • Display "par [author]" in the Created column (object or comment author)
  • Adapted creation date: shows comment posted_on date when report targets a specific message
  • Added "Créé le" prefix before creation date
  • Split "Modifié le ... par" onto two lines
  • Fixed OrganizationOwner font size (nameSize="xs") to match the table
  • Reduced underline offset to 2px in the table to prevent it being hidden by the element below
  • Unified text color and weight between user and org owners (text-gray-plain, font-bold)
  • Fixed truncate on author names in Created column (min-w-0 + flex)
  • Added page title in <head> via useSeoMeta
  • Removed as any casts in getSubjectCreatedBy and getSubjectCreatedDate in favor of type narrowing

ThibaudDauce added a commit to opendatateam/udata that referenced this pull request Apr 7, 2026
- [x] fix not setting handled when deleting dataservice
- [x] fix not setting handled when deleting message in discussion
- [x] fix wrong DBRef in MongoDB following spam migration (see [issue
Sentry](https://errors.data.gouv.fr/organizations/sentry/issues/283578/?environment=demo.data.gouv.fr&project=12&query=is%3Aunresolved+issue.priority%3A%5Bhigh%2C+medium%5D&referrer=issue-stream&statsPeriod=1h&stream_index=0))
- [x] allow editing and deleting discussion message via UUID instead of
list index (will allow to simplify
datagouv/cdata#1021 if merged before, but not
breaking change we still support index)
- [x] allow filtering reports by subject type
- [x] save `deleted_by` and `subject_label` in Report
Comment thread pages/admin/site/moderation.vue Outdated
Comment thread pages/admin/site/moderation.vue
Comment thread pages/admin/site/moderation.vue
@ThibaudDauce ThibaudDauce merged commit 9cd0d9a into main Apr 8, 2026
8 checks passed
@ThibaudDauce ThibaudDauce deleted the moderation_improvements branch April 8, 2026 06:40
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.

2 participants