Repository navigation
fix: show matching guild replies directly on bulletin boards - #1677
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
🟡 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

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
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, andgit diff --check— passed.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.Limitations
Summary by CodeRabbit