Skip to content

feat(announcements): pass summary through validator and show in banner - #86

Merged
frenchie4111 merged 1 commit into
mainfrom
announcement-banner-show-summary
May 25, 2026
Merged

feat(announcements): pass summary through validator and show in banner#86
frenchie4111 merged 1 commit into
mainfrom
announcement-banner-show-summary

Conversation

@frenchie4111

Copy link
Copy Markdown
Collaborator

Summary

  • Add optional summary?: string to the Announcement interface.
  • Validator copies summary through when present, drops it (keeping the entry) if it exceeds MAX_SUMMARY_LEN = 240, and logs a [announcements] line so the drop is observable.
  • Desktop banner renders the summary inline after the title with an em-dash separator and slightly dimmed text (text-accent/80); title stays the only clickable affordance.

Coordination

Pairs with the sibling site-announcements-page-chat-mode-post worktree, which will be free to start including summary in site/public/announcements.json once this lands. This PR deliberately does not touch announcements.json.

Test plan

  • npm run typecheck
  • npx electron-vite build
  • npx vitest run (635/635 passing)
  • Visual smoke in npm run dev: confirm banner shows title — summary, that an entry without summary renders cleanly with no stray em-dash, and that a 300-char summary falls back to title-only with a [announcements] debug log line.

🤖 Generated with Claude Code

…title in banner

Adds optional `summary` field on the `Announcement` interface, wires it
through the feed validator (capped at 240 chars; over-cap drops the
summary but keeps the entry, with a debug log line), and renders it
inline after the title in the desktop banner with an em-dash separator
and slightly dimmed text so the title stays the primary affordance.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@frenchie4111
frenchie4111 merged commit e67c34f into main May 25, 2026
1 check passed
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