Skip to content

feat(cli): Add named viewpoints for render, export, and playground#70

Merged
mhiro2 merged 2 commits into
mainfrom
feat/named-viewpoints
Apr 17, 2026
Merged

feat(cli): Add named viewpoints for render, export, and playground#70
mhiro2 merged 2 commits into
mainfrom
feat/named-viewpoints

Conversation

@mhiro2

@mhiro2 mhiro2 commented Apr 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Named viewpoints feature added to CLI with --viewpoint flag support for render and export commands
  • Playground now exposes example-specific viewpoint presets with URL state synchronization
  • Documentation and comprehensive test coverage updated to lock down new behavior

Changes

  • 2dacecc : feat(cli): add named viewpoints for render and export
    • Implemented [viewpoints.<name>] config presets that merge between command defaults and explicit CLI
      flags, enabling reusable focus, filter, and grouping boundaries
    • Added --viewpoint flag to render and export commands, with export also accepting include/exclude filters
    • Updated ARCHITECTURE.md, README.md, cli-reference.md, and configuration.md with named viewpoints
      documentation
  • 2dacecc : feat(playground): add viewpoint presets for built-in examples
    • Added viewpoint preset selector UI to playground with synced URL state and fallback to Manual mode for
      custom edits
    • Enhanced relune skill documentation to describe both CLI viewpoints and playground workflow
    • Implemented example-specific preset combinations for focus, filter, depth, and grouping

mhiro2 added 2 commits April 17, 2026 14:01
Named [viewpoints.<name>] presets now merge between command defaults
and explicit CLI flags, so render and export can share reusable
focus, filter, and grouping boundaries from config.

The CLI now exposes --viewpoint on render and export, export accepts
include/exclude filters, and the fixture, docs, and snapshot coverage
lock the new behavior down end to end.
The public playground now exposes example-specific viewpoint presets
that apply reusable focus, filter, depth, and grouping combinations
from a single selector.

Selections stay synced with the URL, custom edits fall back to Manual,
and the relune skill docs now describe both CLI viewpoints and the
playground workflow.
@mhiro2 mhiro2 self-assigned this Apr 17, 2026
@mhiro2 mhiro2 added the enhancement New feature or request label Apr 17, 2026
@github-actions

Copy link
Copy Markdown

Code Metrics Report

main (0824f6b) #70 (7fca03c) +/-
Coverage 94.2% 94.3% +0.0%
Test Execution Time 3m2s 3m20s +18s
Details
  |                     | main (0824f6b) | #70 (7fca03c) |  +/-  |
  |---------------------|----------------|---------------|-------|
+ | Coverage            |          94.2% |         94.3% | +0.0% |
  |   Files             |             77 |            77 |     0 |
  |   Lines             |          31546 |         31834 |  +288 |
+ |   Covered           |          29746 |         30025 |  +279 |
- | Test Execution Time |           3m2s |         3m20s |  +18s |

Code coverage of files in pull request scope (96.6% → 96.6%)

Files Coverage +/- Status
crates/relune-cli/src/cli.rs 84.0% 0.0% modified
crates/relune-cli/src/commands/export.rs 92.1% +0.4% modified
crates/relune-cli/src/commands/render.rs 98.4% 0.0% modified
crates/relune-cli/src/config.rs 96.9% -0.1% modified

Reported by octocov

@mhiro2
mhiro2 merged commit 0a891fe into main Apr 17, 2026
4 checks passed
@mhiro2
mhiro2 deleted the feat/named-viewpoints branch April 17, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant