Repository navigation
feat(launcher): full-screen envs manager with the base home #2258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jals1212
wants to merge
33
commits into
Gentleman-Programming:main
Choose a base branch
from
jals1212:feat/named-envs-gate-v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
9d9033d
feat(launcher): add named envs with --env and envs list|new
jals1212 9218f6b
feat(shell): show the active named env in the header and Status card
jals1212 b45cc25
fix(uninstall): protect named envs and prove them in a bundled install
jals1212 a7a827b
feat(shell): show the named env as its own Status group above Project
jals1212 639b330
docs(odd): track named environments
jals1212 aacd381
fix(launcher): label an explicit --home env, use the injected env, an…
jals1212 e445000
feat(launcher): manage named envs from a full-screen envs TUI
jals1212 79f44e5
feat(launcher): give the envs gate Gentle's visual identity
jals1212 a92876b
feat(launcher): list the install's base home in the envs gate
jals1212 6bb583e
fix(launcher): say a home is set up on first open instead of showing …
jals1212 7311b66
fix(launcher): name the base home without a marker that needs a legend
jals1212 81b0090
fix(launcher): mark the default env like /gentle:profiles markers, no…
jals1212 df75804
fix(launcher): mark the default in envs list as (default), not a lead…
jals1212 ace01f1
fix(launcher): show text from user files in the envs gate without con…
jals1212 7fc7fcc
test(launcher): drive the envs manager through a simulated TTY to cov…
jals1212 26d2234
fix(launcher): clean up a failed envs new, show the env in the regula…
jals1212 870b98d
Merge branch 'feat/named-envs-core-v2' into feat/named-envs-gate-v2
jals1212 96cd724
fix(launcher): roll back a failed env rename and keep '..'-prefixed n…
jals1212 8220a2a
fix(shell): keep the env when the bar narrows and guard a symlinked n…
jals1212 9cb192e
Merge branch 'feat/named-envs-core-v2' into feat/named-envs-gate-v2
jals1212 3d4d746
Merge remote-tracking branch 'origin/main' into feat/named-envs-core-v2
jals1212 177f75d
Merge branch 'feat/named-envs-core-v2' into feat/named-envs-gate-v2
jals1212 17d905c
fix(launcher): accept --env only for a real env directory
jals1212 74402df
fix(uninstall): refuse to remove a folder that holds the named envs s…
jals1212 bd664d8
Merge branch 'feat/named-envs-core-v2' into feat/named-envs-gate-v2
jals1212 f72f3b9
fix(shell-bar): keep the env over the brand in the narrowest header
jals1212 486787b
fix(uninstall): guard every symlink on the named envs path and '..'-n…
jals1212 778bfe6
Merge branch 'feat/named-envs-core-v2' into feat/named-envs-gate-v2
jals1212 54bcd4e
test(shell-bar): cover the narrowest header keeping the env beside th…
jals1212 4addd84
test(launcher): use a junction for the --env link case on Windows
jals1212 4d4cf6f
Merge branch 'feat/named-envs-core-v2' into feat/named-envs-gate-v2
jals1212 42317f7
test(uninstall): run the bundled '..envs' case only where the fixture…
jals1212 4c5a3af
Merge branch 'feat/named-envs-core-v2' into feat/named-envs-gate-v2
jals1212 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| // Gentle's visual identity, shared by the Pi startup banner and the launcher's | ||
| // pre-Pi screens (the envs gate). Pure data and ANSI helpers only: the | ||
| // launcher runs before any Pi package is loaded. | ||
|
|
||
| // The braille rose of the startup banner. | ||
| export const ROSE_ART: readonly string[] = Object.freeze([ | ||
| " ⣠⣾⣷⣶⣦⣤⣤⣄⣠⣄⣀ ⢀⣀⣀", | ||
| " ⢀⣴⣿⣿⠿⣋⣭⣭⣯⣭⣍⣭⣿⣟⠛⠛⠿⣿⣷⣄", | ||
| " ⢀⣴⣾⡟⢻⣿⡟⠁⣼⣿⠏⣵⢻⣿⣻⣿⣿⢿⡻⣿⣿⣶⡌⢿⣿⣷⣦⣤⡄", | ||
| " ⣤⣶⣾⣿⣿⠏ ⠈⢿⣄ ⢹⣏⠠⠟⣾⣿⣿⣿⣿⣿⠷⣏⣼⠟⢡⣿⡟⠋⢻⣿⣿⡄", | ||
| " ⠈⣿⣿⣿⣿⡆ ⣽⢧⡘⠈⠳⣦⣍⠛⠛⢦⣉⣴⣛⣫⣭⣴⡟⠋ ⣾⣿⣿⡿", | ||
| " ⢀⠹⣿⣿⣿⣷⣤⡄ ⠋ ⠙⢆ ⣠⠴⠟⠛⣛⣛⣛⠟⠋⠁⠺⡇ ⣀⣴⣿⣿⡟⠁", | ||
| " ⠈⣀⠈⠛⠷⠿⣿⣿⣷⣤⣀ ⢠⠋ ⠈⠉⠉ ⣠⣴⣥⠾⠛⠉⣰⣿⣷", | ||
| " ⠹⣯⣝⠛⠛⠷⢶⣤⣤⣀ ⢀⡠⠖⠋⠉⢉⣀⣀⣴⣾⣿⠿⠟⠃", | ||
| " ⠘⠻⢿⣦⣄⡀ ⠉⠛⢦⠠⢊⠤⠴⢒⣛⣛⣩⣽⡿⠟⠁", | ||
| " ⠶⢶⣤⣄⡀⠨⠭⠽⠟⣓⢦⣀⠈⢇⡥⠖⠛⠋⠉⠉", | ||
| " ⠈⢷ ⠐⠂⢤⣽⣄ ⠰⡎⠙⠳⣄⡀ ⠈⢣⠘⢦⠋", | ||
| " ⠈⢳⣀⡒⠉⠉⣉⠙⡲⣽⣄ ⣏⠳⡄ ⠘⡇ ⡾⠁", | ||
| " ⠛⠻⢦⣄⣉⡁⣀⣀⣈⣙⣺⣌⡇⢠⢀⡇⡾", | ||
| " ⠈⠉ ⠈⠳⡄⣸⢱⠇", | ||
| " ⡷⠡⡯⢖⠉", | ||
| " ⢀⡴⢪⠔⣉⠔⠋", | ||
| " ⠐⠈", | ||
| ]); | ||
|
|
||
| export type Rgb = readonly [number, number, number]; | ||
|
|
||
| // The banner's default pink palette (startup-banner BANNER_PALETTES.pink) plus | ||
| // the Gentle theme's muted and error tones. | ||
| export const GENTLE_COLORS = Object.freeze({ | ||
| rose: [255, 118, 195] as Rgb, | ||
| label: [200, 100, 160] as Rgb, | ||
| value: [255, 140, 210] as Rgb, | ||
| dimRose: [95, 30, 60] as Rgb, | ||
| muted: [92, 97, 112] as Rgb, | ||
| error: [203, 124, 148] as Rgb, | ||
| }); | ||
|
|
||
| export const BRAND_NAME = "Gentle Shell"; | ||
| export const BRAND_GLYPH = "✿"; | ||
|
|
||
| export function truecolor([r, g, b]: Rgb, text: string): string { | ||
| return text.length === 0 ? "" : `\x1b[38;2;${r};${g};${b}m${text}\x1b[39m`; | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.