Skip to content

Expand screenshot gallery, test coverage, and testing.md#16

Merged
Shalom-Karr merged 3 commits into
masterfrom
feat/screenshot-gallery
May 19, 2026
Merged

Expand screenshot gallery, test coverage, and testing.md#16
Shalom-Karr merged 3 commits into
masterfrom
feat/screenshot-gallery

Conversation

@Shalom-Karr

Copy link
Copy Markdown
Owner

Expands the discourse-mod plugin's screenshot gallery, system-spec coverage, and docs/testing.md.

What's added

67 new system-spec screenshots (numbers 104-170) across all 10 features in a new spec/system/gallery_expansion_spec.rb:

  • Moderator category management (104-110): categories list, page chrome, settings/general/security tabs, topic list, category badge in topic header.
  • Per-topic footer message (111-117): multi-paragraph markdown, markdown link, official-notice box, multi-post thread, modal field combinations, closed-topic + banner.
  • Per-topic reply prompt (118-123): audience caps (TL0, TL2), multi-line entry, persistence, user-facing link in dialog, TL4 user skipping the cap.
  • Per-category new-topic prompt (124-129): preview bold + link, multi-line preview, audience dropdowns (TL0, TL1), persisted state, empty preview.
  • Pin a post to the bottom (130-135): regular user view, in-stream badge close-up, jump-to-original, pinned + note, post admin menu while pinned, pinned + footer for a user.
  • Per-topic reply approval (136-141): unchecked / ticked / untoggled / persisted, with messages filled, regular-user topic view.
  • Private moderator note (142-148): position top, position bottom, three-reply thread, edit/delete affordances, drafting a reply, regular user has no node, anonymous view.
  • Moderator-notes user-menu tab (149-154): shield tab with unread badge, multiple/single/empty/after-seen panel states, link navigation.
  • First-post checklist (155-162): inactive notice, custom button label, audience TL1, user-facing "Last updated", custom button on user modal, audit log with many entries, targeted checklist listed, TL2 user prompted.
  • Moderator whisper (163-170): banner one/three/staff-only/group, armed pill single, add-participant modal user chosen, non-participant view, recipient view.

Additional tests:

  • spec/requests/mod_messages_edge_cases_spec.rb — idempotency, string-form approval-flag coercion, trust-level cap coercion + clamping, notes-feed ordering, private-note position normalisation (every input), note-reply id uniqueness, note-reply user attribution.
  • test/javascripts/unit/linkify-message-extra-test.js — extra URL/HTML/line-break edge cases for the shared message renderer.

docs/testing.md gets a new section per feature group plus a ### Header + one-sentence description for every new screenshot, matching the existing format.

Scope honoured

Only spec/system/, spec/requests/, test/javascripts/, docs/testing.md touched. plugin.rb, lib/, app/, config/, assets/ are untouched — every feature already ships on master.

🤖 Generated with Claude Code

Shalom-Karr and others added 3 commits May 19, 2026 17:30
- Add spec/system/gallery_expansion_spec.rb: 67 new system-spec
  screenshots (numbers 104-170) covering every feature with
  multiple genuinely-different states (category management,
  footer message, reply prompt, new-topic prompt, pin-to-bottom,
  reply approval, private note, notes user-menu tab, first-post
  checklist, moderator whisper).
- Add spec/requests/mod_messages_edge_cases_spec.rb: idempotency,
  param coercion, trust-level clamping, notes feed ordering,
  private-note position normalisation, note-reply id uniqueness.
- Add test/javascripts/unit/linkify-message-extra-test.js: more
  URL/escaping/line-break edge cases for the shared message
  renderer.
- docs/testing.md: append a section per new screenshot, matching
  the existing per-feature heading format.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- linkify-message-extra-test.js: correct expectations now that escape
  happens before regex linkification (so & becomes &amp; in the URL,
  and < has already become &lt; by the time the URL regex runs).
- mod_messages_edge_cases_spec.rb: lengthen topic titles to pass the
  15-char title-min and entropy validators.
- gallery_expansion_spec.rb:
  - 148: was anonymous browse; the parent before-block had already
    signed in a moderator. Switch to a TL1 user to assert non-staff
    visibility.
  - 106-108: pick selectors that exist on the category edit pages
    instead of .category-edit-main-nav.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Pulls down the Frontend System Tests ui-screenshots artifact from
the latest passing run and overwrites the gallery. 81 existing
screenshots refreshed against the current UI; 91 new screenshots
(104-170) added by the gallery_expansion_spec.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Shalom-Karr
Shalom-Karr merged commit cc1476b into master May 19, 2026
4 checks passed
@Shalom-Karr
Shalom-Karr deleted the feat/screenshot-gallery branch May 19, 2026 22:07
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