Skip to content

Moderation part 2: drop course-scoped moderation + moderation tree + explanation texts everywhere#382

Merged
C4ptainCrunch merged 6 commits into
mainfrom
claude/epic-wilbur-b65816
May 5, 2026
Merged

Moderation part 2: drop course-scoped moderation + moderation tree + explanation texts everywhere#382
C4ptainCrunch merged 6 commits into
mainfrom
claude/epic-wilbur-b65816

Conversation

@C4ptainCrunch

@C4ptainCrunch C4ptainCrunch commented May 5, 2026

Copy link
Copy Markdown
Contributor

Thanks to @mnietona we have the biggest part of a moderation system. This PR adds the missing parts:

  • drop course-scoped moderation
  • moderation tree
  • More text to explain to users how it works
  • CHANGELOG.md
image image image image image image

…s, and permission wiring

- Drop course-scoped moderation — moderators can edit any document
- Add promoted_by FK on User to track who granted moderator rights
- Add moderation tree view (lobste.rs-style) showing the chain of trust
- Add public about page explaining the moderation system
- Fix document edit logging bug (old values were captured after form binding)
- Replace all hardcoded href="/" paths in templates with {% url %} tags
- Add isort skip for .venv to prevent corrupting installed packages
- Add comprehensive moderation test suite (18 tests)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@C4ptainCrunch C4ptainCrunch changed the title Add moderation system: tree view, public logs, representative requests Moderation part 2: drop course-scoped moderation + moderation tree May 5, 2026
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@C4ptainCrunch C4ptainCrunch force-pushed the claude/epic-wilbur-b65816 branch from 645b5b4 to 34775c6 Compare May 5, 2026 09:34
C4ptainCrunch and others added 2 commits May 5, 2026 14:09
… and layout polish

- Add moderation profile page per moderator showing their action log
- Move about page to /moderation/, dashboard to /moderation/home/
- Move pending requests to /moderation/manage/, rename from /moderators/
- Add breadcrumbs to all moderation pages
- Add moderation tree view and profile links from the log
- Move "Retirer" button to the profile page (admin only)
- Replace gendered French with inclusive forms (modérateur·trice, étudiant·e, délégué·e)
- Redesign pending request cards: no avatar, no date, refusal field on demand via <details>
- Show not-found error as inline form error instead of a banner
- Replace hardcoded href="/" with {% url %} tags across all templates

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@C4ptainCrunch C4ptainCrunch changed the title Moderation part 2: drop course-scoped moderation + moderation tree Moderation part 2: drop course-scoped moderation + moderation tree + explanation texts everywhere May 5, 2026
@C4ptainCrunch C4ptainCrunch marked this pull request as ready for review May 5, 2026 13:52
@C4ptainCrunch C4ptainCrunch merged commit fba2a1a into main May 5, 2026
2 checks passed
@C4ptainCrunch C4ptainCrunch deleted the claude/epic-wilbur-b65816 branch May 5, 2026 13:52
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