Skip to content

feat(feedback): include post status in similar-posts (possible duplicates)#103

Merged
coopbri merged 1 commit into
masterfrom
feat/similar-posts-status
Jul 2, 2026
Merged

feat(feedback): include post status in similar-posts (possible duplicates)#103
coopbri merged 1 commit into
masterfrom
feat/similar-posts-status

Conversation

@coopbri

@coopbri coopbri commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Description

Task link: N/A

Adds the candidate post's current status to the similarPosts ("possible duplicates") results so the composer can show whether a match is already completed/closed rather than still open to duplicate.

  • findSimilarPosts now LEFT JOINs status_template and returns status: { displayName, color } | null per candidate.
  • Exposes it on the GraphQL type via the signal ingestion plugin: new SimilarPostStatus type and SimilarPost.status field.
  • Regenerates the committed executable schema (schema.executable.ts + schema.graphql). This is required: the server boots from and the Docker build bundles the committed executable schema, and graphql:generate does not run on deploy.

Pairs with backfeed-app PR "show status on possible-duplicate suggestions". Merge this first so the live API serves SimilarPost.status before the app selects it.

Test Steps

  1. bun graphql:generate is already reflected; bun run check is clean.
  2. bun test --env-file .env.local src/lib/feedback/brain.integration.test.ts -t findSimilarPosts passes (2/2), including the new assertion that status is present.
  3. In GraphQL, run similarPosts(projectId, content) { id title score status { displayName color } } and confirm status resolves (null for posts with no status template).

findSimilarPosts now joins status_template and returns each candidate's
status (displayName + color), exposed as SimilarPost.status via the signal
ingestion plugin. Lets the composer show whether a possible-duplicate match
is already completed/closed rather than still open to duplicate.

Regenerates the committed executable schema (baked into the Docker build;
graphql:generate does not run on deploy).
@coopbri coopbri merged commit bcfc157 into master Jul 2, 2026
4 checks passed
@coopbri coopbri deleted the feat/similar-posts-status branch July 2, 2026 02:24
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant