18db2f913a
The server's template catalog (the list_templates command) had no surface in the app. This adds a Templates destination to the shared SlidingPaneStack: a measured card gallery (name, short description, stage count and its own glyph; one column narrow, a fitting grid wide) and a detail pane that reuses the pipeline detail's Summary/Graph/Source tabs, plus a create-from-template action that submits a create-only draft. Stage counts come from a source the server parsed (validate); a source that does not parse is still viewable as raw markdown. Added: Templates.kt (TemplateEntry/TemplateCard, the grid-column and stage-count mapping), components/GalleryGrid.kt (the shared measured-gallery fitting, extracted from the artifact gallery), graph/SourceView.kt (PipelineSourceView, the one rendered-definition view, extracted from PipelineDetailScreen), screens/TemplateGalleryScreen.kt, screens/TemplateDetailScreen.kt, TemplatesTest.kt. Changed: PipelinesApp.kt (the Templates destination), AppViewModel.kt (refreshTemplates/createFromTemplate), data/PipelinesRepository.kt (listTemplates/validateSource/createPipeline), graph/Artifacts.kt (use the shared galleryGrid), PipelineDetailScreen.kt (use the shared PipelineSourceView), ArtifactGalleryTest.kt (exercise galleryGrid). Doc/state check before committing: - android/README.md (the app's topic doc): updated. Added a Features bullet for the Templates destination and a dated "Templates: a gallery and a detail view" section, matching the per-feature convention every prior android change uses. - Packaged templates: not touched. The server's templates are Go-side and the brief forbids touching the Pipelines server; this change only renders the catalog the server already exposes. - Packaged authoring skill references (internal/author/skill/references/): not updated. They document the Pipelines harness, not the Android app, and this change adds no harness runtime behaviour. - Root README and docs/: not updated. They document the CLI/TUI/server, which are unchanged; the Android app is documented in android/README.md. No conflict was present: no unmerged paths and no unfinished merge, rebase or cherry-pick, so nothing needed resolving. Deliberately left uncommitted (other work this run did not touch, not staged): the worktree's other WIP - components/ListScroll.kt and screens/PaneStats.kt with their tests, and the uncommitted edits to components/SlidingPaneStack.kt, components/States.kt, theme/Dimens.kt and components/LoadPhaseTest.kt - plus the untracked .ui-review-*/ capture artifacts.