fix(search): use public_description for card summary and snippet#19
Merged
Conversation
Search result cards and the FTS snippet read the internal 'description' field, which the public export now drops in favor of the redacted 'public_description'. Point the card fallback and snippet at public_description so summaries render. Detail page already used it.
apodacaduron
approved these changes
Jun 8, 2026
apodacaduron
left a comment
Contributor
There was a problem hiding this comment.
Approved, i noticed maybe we need to preserve rich text when rendering the description, but im almost 100% sure that is issue on frontend i'll take a look
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Search result cards and the FTS snippet read the internal `description` field. The public export now drops `description` in favor of the redacted `public_description` (Bayanat side, PR #346), so every card shows "no summary available" even when `public_description` is set.
Fix
The document detail page already rendered `public_description`, so this just aligns the search cards/snippet with it.
Verified
Imported the 494-doc redacted batch, injected a sentinel `public_description` on one doc, and confirmed via the HTMX search endpoint that the card renders the redacted summary (snippet when searched, full text on browse) and that docs without `public_description` still show the no-summary fallback.
Follow-up (not in this PR)
`description` is now dead in the export. A later cleanup can drop the `description` column + its FTS indexing and update `EXPORT_SCHEMA.md`.