mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 08:04:45 +00:00
NIP-34 pull requests (kind 1618) and pull-request updates (kind 1619) previously had no renderer and fell through to the plain text-note branch, so a PR notification opened onto an unstyled markdown blob with none of its structured data shown. Add dedicated cards that reuse the existing patch/issue card vocabulary (bordered container, type chip, status pill, embedded repository header) and surface the PR-specific metadata the event carries: - Pull Request card: "Pull Request" chip with a merge glyph, status pill, subject title, branch name, current commit, merge base, and clone-URL download rows. - PR Update card: "PR Update" chip, repository header, new commit / merge base, clone URLs, and an explanatory line (updates carry no body content). While here, modernize the existing cards consistently: - Factor the shared markdown body, metadata row, and subject title into reusable composables (GitMarkdownBody / GitMetaRow / GitSubjectTitle). - Show the issue subject as a proper title. The old code cast the event to TextNoteEvent to read the subject, which always returned null (GitIssueEvent is not a TextNoteEvent), so issue subjects were never displayed; read it from GitIssueEvent.subject() instead. - Render the patch commit as an iconed metadata row. Wire the two new kinds into NoteCompose and the thread detail view, add the CallMerge / Commit / AltRoute Material symbols (font subset regenerated), and add the new string resources. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018wCXL6btUeZZmSP1TCYkKh