Skip to content

fix: show matching guild replies directly on bulletin boards - #1677

Merged
paulinevos merged 2 commits into
productionfrom
fix/guild-mentions-visible
Nov 25, 2026
Merged

paulinevos merged 2 commits into
productionfrom
fix/guild-mentions-visible

Conversation

@paulinevos

@paulinevos paulinevos commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Guild mentions inside replies could be hidden on a guild's bulletin board: the board selected the thread's root instead of the matching commit, and a nested mention was not necessarily included in its reply preview.

Show the matching commit directly, including deeply nested replies, with visible parent context and a View full thread link that opens the conversation with that reply in focus.

Changes

  • Select and paginate matching commits, newest first by their own timestamp, rather than replacing them with distinct thread roots. Each page contains 30 matching commits, replies included.
  • Load only parent context the viewer may see, leaving unavailable or muted parents out and preserving deleted-parent tombstones.
  • Apply the same board selection to the web and signed API. Preserve existing root-based pin eligibility and existing pinned threads; replies do not receive a pin control.
  • Cover nested mentions, ordering and page boundaries, unavailable parent context, API responses, and existing pins. Deleted-intermediate-parent tests require both web and signed API boards to retain the matching reply with an exact, content-free parent tombstone. Update the public knowledge base to describe the changed behavior.

Validation

  • composer test:lint — passed, with existing warnings outside this change.
  • composer test:types — passed (PHPStan and both TypeScript projects).
  • composer test:type-coverage — passed, 100%.
  • bun run test:unit — passed, 333 tests.
  • php -d memory_limit=-1 vendor/bin/pest --parallel --ci --coverage --exactly=100.0 --passthru-php="'-d' 'memory_limit=-1'" — passed on rerun, 6,726 tests, 37,175 assertions, 100% coverage. The first follow-up run had two failures in unchanged API commit-search tests (fewer search candidates than expected); that file passed in isolation, and the complete rerun passed without further changes.
  • vendor/bin/pest tests/Feature/Controllers/GuildControllerTest.php tests/Feature/Controllers/Api/GuildControllerTest.php --compact — passed, 196 tests, 1,949 assertions, including both deleted-parent regression tests.
  • bun run build, vendor/bin/pint --dirty --format agent, and git diff --check — passed.
  • Both nested-mention regression tests fail on the returned commit ID when the original root-selection behavior is restored, and pass with matching-commit selection.
  • Chromium on Linux with local demo data: checked 1440×900, 1366×650, and 390×844 viewport emulation in light and dark mode. The matching reply, parent label, and thread link remained visible without card clipping or horizontal overflow. Clicking the thread link and activating it with keyboard Enter opened the matching reply with both ancestors visible. The checked desktop load/navigation produced no layout-shift entries.

Independent review

A separate read-only reviewer returned PASS for correctness, regressions, architecture, privacy, and meaningful tests, with no unresolved blockers. The reviewer inspected the complete seven-file diff, all four light/dark desktop/narrow captures, the interaction recording and contact sheet, and the validation logs, and independently reran git diff --check.

  • Reviewed base: bb930883.
  • Reviewed head: a229c034.
  • Visual verdict: PASS within the supplied browser-emulation evidence. The reviewer did not independently rerun browser interactions, the full test suite, or hardware/device checks.
  • Follow-up review: PASS on the complete updated diff, including both deleted-parent regression tests. The reviewer confirmed that exact parent equality rejects missing tombstones and leaked body/author fields. Runtime and UI code are unchanged by this follow-up, so the prior visual review carries forward.

Limitations

  • Browser checks used viewport emulation, not a physical phone or simulator. Touch behavior, native keyboards, browser controls, safe areas, and Safari were not verified.
  • No production-data comparison or complete polling/action layout-shift matrix was performed.
  • A separate left-navigation Commit button clipping issue was observed at 1366×650 and left outside this change.
  • Hosted CI is separate from the local results above. This is a text-only PR; inspection captures are not attached.

Summary by CodeRabbit

  • New Features
    • Matching replies now appear as individual entries on guild boards and feeds, with parent context when available and a link to the full thread.
    • Guild board pages show up to 30 matching commits, including replies, in newest-first order.
    • Pin controls apply to top-level commits. Existing pins associated with matching replies remain visible and separate from chronological pagination.
  • Documentation
    • Clarified how matching replies, parent context, pagination, and pinned commits appear on guild boards.

Copilot AI balanced review requested due to automatic review settings November 25, 2026 14:42
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Guild boards now display matching commits individually, including matching replies, and paginate 30 matching commits per page. Reply entries include parent context and a link to the full thread. Pin controls remain for top-level commits.

Changes: Guild board entries

Layer / File(s) Summary
Match and paginate board commits
app/Queries/GuildCommitsQuery.php, app/Http/Controllers/Api/GuildController.php, tests/Feature/Controllers/Api/GuildControllerTest.php, tests/Feature/Controllers/GuildControllerTest.php, KNOWLEDGE_BASE.md
The query returns matching commits, including replies, in newest-first order. Pagination selects matching commits rather than unique roots. Tests cover nested matches, parent context, and pagination. Documentation describes the updated board behavior.
Reply links and pin controls
resources/js/pages/guild/show.tsx, tests/Feature/Controllers/GuildCommitPinControllerTest.php, KNOWLEDGE_BASE.md
Reply entries link to the author’s full thread. Top-level entries retain moderator-only pin controls. Pin tests and documentation describe pins for board entries.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Possibly related PRs

Suggested reviewers: wendelladriel, nunomaduro

Merge Risk: Minimal · up to a229c

Guild boards now show matching replies directly, with parent context and a link to the full thread. No concrete merge-blocking risk was found in the supplied changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix: show matching guild replies directly on bulletin boards" matches the main change. The summaries show that bulletin boards now show matching commits, including nested replies, directly …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "fix: show matching guild replies directly on bulletin boards" matches the main change. The summaries show that bulletin boards now show matching commits, including nested replies, directly instead of substituting the thread root. The title is short, specific, and uses the conventional fix: prefix. It does not cover the pagination, pinning, or signed API changes, which is acceptable.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1e3108e7-8601-4ce9-aecb-9b9a67385336
Commits

Reviewing files that changed from the base of the PR and between e5de4aa and a229c03.

Files selected for processing: 2

  • tests/Feature/Controllers/Api/GuildControllerTest.php
  • tests/Feature/Controllers/GuildControllerTest.php

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The added tests omit deleted-parent coverage, leaving reply visibility and tombstone-only parent data unverified in both web and signed API responses.

1 open issue
What changed in this PR

This PR makes guild bulletin boards show the commits that actually match the guild, including deeply nested replies, rather than substituting their thread roots. Web and signed API responses share the updated selection.

Changes:

  • Paginate 30 matching commits by their own timestamps, newest first.
  • Show permitted parent context and a focused “View full thread” link while preserving root-based pin eligibility.
  • Update regression tests and public documentation for reply selection, pagination, visibility, and existing pins.
File Description
tests/​Feature/​Controllers/​GuildControllerTest.php Tests matching replies, ordering, pagination, and unavailable parents.
tests/​Feature/​Controllers/​GuildCommitPinControllerTest.php Checks root pins alongside directly listed matching replies.
tests/​Feature/​Controllers/​Api/​GuildControllerTest.php Adds nested-reply selection coverage for the signed API.
resources/​js/​pages/​guild/​show.tsx Adds focused thread links for replies and limits pin controls to roots.
KNOWLEDGE_BASE.md Documents matching-commit pagination, parent context, and pin behavior.
app/​Queries/​GuildCommitsQuery.php Selects matching commits and loads visibility-filtered parent context.
app/​Http/​Controllers/​Api/​GuildController.php Updates the API docblock to describe matching commits and pin deduplication.

Review effort: Balanced

Comment thread app/Queries/GuildCommitsQuery.php Resolved
@paulinevos
paulinevos merged commit baa02bb into production Nov 25, 2026
15 of 16 checks passed
@paulinevos
paulinevos deleted the fix/guild-mentions-visible branch November 25, 2026 15:19
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