Skip to content

Agent: rake a glint across the empty-state title - #1592

Open
matthewrball wants to merge 9 commits into
masterfrom
ux/empty-title-sheen
Open

matthewrball wants to merge 9 commits into
masterfrom
ux/empty-title-sheen

Conversation

@matthewrball

@matthewrball matthewrball commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • The empty-state title gets a one-shot glint when Maple Agent launches and again when New Task is clicked.
  • The light rakes across the dotted letters instead of filling them in.
  • The light is white on the dark theme and Maple's coral on the light theme. White over dark ink on a light page only made the letters paler, so it read as a fade.
  • A wrapped title, including the longer German string, keeps every row. Reduced motion, or a window nobody is looking at, paints the settled title and asks for no frames.

Glint on the empty title, light

Glint on the empty title, dark

Native captures at about 12 frames a second, so the real motion is smoother than the clips.

Notes

  • The glint runs on the shared motion clock (motion::now), pauses with motion::loops_paused and eases on the shared curve. Its stage lengths stay as constants beside it, because no single token describes a staged effect; docs/motion.md and AGENTS.md name it as the second exception next to the effort slider. Say if you would rather have them in motion.rs.
  • It never starts while the title folds with the composer.
  • Native check on macOS from a debug build: a white band crosses the letters in dark and a coral one in light, no colour is left behind once it finishes, the settled title matches master's, and a 520 pt window wraps the title to two centred lines.

Test plan

  • just ci on Rust 1.98.0: clippy is clean, and the workspace and headless test lanes passed
  • Launch Maple Agent and confirm the glint plays once on the empty title
  • Click New Task and confirm the glint plays again
  • Narrow the window until the German title wraps and confirm the glint covers each row
  • Turn on Reduce Motion and confirm the title stays settled

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The dotted title settles, then a thin light crosses it on launch and again when New Task is clicked. A narrow pane keeps every wrapped row, and reduced motion or an inactive window paints the settled title.
The clock lives on the screen, so the title leaving the tree does not replay it. A visit that has already shown the title keeps its ink when New Task starts the glint again. Bootstrap still fades in, because that call happens before the first paint.
The entrance decision was recomputed every frame, so the second frame snapped the ink to full. It is now chosen when a clock starts and kept until that clock is replaced.
The empty title can paint before the boot list. That list must not clear the clock, or the glint plays twice. New Task still starts it again.
@matthewrball
matthewrball marked this pull request as ready for review November 12, 2026 17:35
@AnthonyRonning

AnthonyRonning commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

would be nice to see what you mean. not sure what "rake a glint" means lmfao

@matthewrball

matthewrball commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator Author

@AnthonyRonning Sorry lol that was not very descriptive, here's what I meant:

empty-title-glint

It's one quick sweep of light across the empty-state title, left to right. It plays once when Maple opens and again when you hit New Task, takes about half a second, and never loops. "Rake" just meant it's slightly slanted, so the tops of the letters catch the light a moment before the bottoms. With Reduce Motion on, the title just sits still.

Draw the glint on master's folding empty-state title.
The glint read the system clock, paused on its own rule and carried its own easing. It now uses motion::now, motion::loops_paused and the shared curve, never starts while the title folds with the composer, and is written up in docs/motion.md as the one staged effect.
White light over dark ink on a white page only made the letters paler, so the glint read as a fade. In the light theme the light is the brand's coral.

This branch has not been deployed

No deployments
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.

2 participants