Repository navigation
feat(cli): restyle the shell with an LED wordmark and a timestamped log - #19
Merged
Merged
Conversation
The block-letter wordmark read too much like opencode. The name now sits on a panel of dots in a font five dots wide and seven tall, and the unlit dots stay faint gray. The lit dots switch on one at a time over 0.9 s in a fixed, scattered order. After that, three dots dim for 150 ms every 3 to 9 s. Below 73 columns, the plain name replaces the wordmark.
The input drops its rounded box. It is now the `›` prompt, the text, and a rule under them, and the hints line up with the prompt.
Each `Entry` carries `at`, the local time when it was added, and `submit` takes that time. The transcript drops the panels and bars. Each entry shows the time, `you` or `evorca`, and the text, and wrapped lines start under the text. The new `wallTime` prop lets tests inject the time.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The black-and-white shell from #16 looked almost the same as opencode, and evorca should have its own look. This PR takes the smallest of the three directions on offer. It keeps the centered layout, draws the wordmark as an LED dot matrix, replaces the input box with a prompt over a rule, and turns the transcript into a log with timestamps.
What changed
wordmark.tssets the name in a dot font five dots wide and seven tall, on one panel where unlit dots stay faint gray.motion.tsswitches the lit dots on one at a time over 0.9 s in a fixed, scattered order. After that, it dims 3 dots for 150 ms every 3 to 9 s.›, the text, and a rule under it, with no box.Entrynow carriesat, the local time when it was added. The transcript shows the time,youorevorca, and the text, and wrapped lines start under the text.Scope
Tradeoffs
•(U+2022), which Unicode marks as ambiguous width.∙(U+2219) is always one column wide, but SF Mono, the default font of Terminal, draws it as a speck. A terminal set to draw ambiguous characters two columns wide breaks the panel apart, and it breaks the rule under the input the same way.Blast Radius
Only the interactive shell changes.
submitnow takes the time of the entry, and the shell is its only caller.evorca fetchandevorca reproducenever load the shell.Verification
pnpm checkpasses. The shell tests drive the real component under a manual clock. They cover the gray-only colors, the boot, the flicker, the timestamps, the rule without a box, the narrow fallback, the stopped clock, and both exits. 15 of 16 mutations fail at least one test. The one that survives boots the dots in reading order, which no test pins./exitand ctrl+c. Every cell is gray, the terminal is restored, the exit code is 0, and no FFI warning shows.In the terminal, lit and unlit dots are the same
•in two grays. In the frame below, lit dots print as•and unlit dots as·. Home screen at 3 s, 100x30, OpenTUI's test renderer, directory set to~/incidents:Transcript view after
helloand/help, same setup: