-
Notifications
You must be signed in to change notification settings - Fork 11
🤖 Add splash screen for instant startup feedback #226
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1ff76bb
🤖 Add splash screen for instant startup feedback
ammar-agent fa797d4
Add console logs for splash screen show/close + ensure build-static r…
ammar-agent d26388d
Fix: Extract service loading out of createWindow to keep splash visib…
ammar-agent 70ebccf
Fix: Close splash only when main window is ready-to-show
ammar-agent 50dc4fa
Fix splash visibility and parallel build safety
ammar-agent f570bd6
Fix splash timing: wait for HTML to load + add millisecond timestamps
ammar-agent 374cfe9
Use human-readable timestamps (HH:MM:SS.mmm) in startup logs
ammar-agent 5538aca
Add 100ms delay after showing splash to ensure it renders
ammar-agent 930219d
Wait for splash 'show' event + setImmediate for proper rendering
ammar-agent 1561fb0
Apply prettier formatting to main.ts
ammar-agent 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
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,81 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>cmux - Loading</title> | ||
| <style> | ||
| * { | ||
| margin: 0; | ||
| padding: 0; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| body { | ||
| width: 400px; | ||
| height: 300px; | ||
| /* Match --color-background (hsl(0 0% 12%)) */ | ||
| background: hsl(0 0% 12%); | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| justify-content: center; | ||
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | ||
| /* Match --color-text (hsl(0 0% 83%)) */ | ||
| color: hsl(0 0% 83%); | ||
| overflow: hidden; | ||
| border-radius: 12px; | ||
| box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); | ||
| } | ||
|
|
||
| .logo { | ||
| font-size: 48px; | ||
| font-weight: 700; | ||
| letter-spacing: -2px; | ||
| margin-bottom: 24px; | ||
| /* Gradient from plan mode blue (hsl(210 70% 40%)) to exec mode purple (hsl(268.56deg 94.04% 55.19%)) */ | ||
| background: linear-gradient(135deg, hsl(210 70% 45%) 0%, hsl(268.56deg 94.04% 55.19%) 100%); | ||
| -webkit-background-clip: text; | ||
| -webkit-text-fill-color: transparent; | ||
| background-clip: text; | ||
| } | ||
|
|
||
| .loading-text { | ||
| font-size: 16px; | ||
| /* Match --color-text-secondary (hsl(0 0% 42%)) */ | ||
| color: hsl(0 0% 42%); | ||
| margin-bottom: 16px; | ||
| } | ||
|
|
||
| .spinner { | ||
| width: 40px; | ||
| height: 40px; | ||
| /* Match --color-border (hsl(240 2% 25%)) */ | ||
| border: 3px solid hsl(240 2% 25%); | ||
| /* Match --color-plan-mode (hsl(210 70% 40%)) */ | ||
| border-top-color: hsl(210 70% 40%); | ||
| border-radius: 50%; | ||
| animation: spin 0.8s linear infinite; | ||
| } | ||
|
|
||
| @keyframes spin { | ||
| to { transform: rotate(360deg); } | ||
| } | ||
|
|
||
| .version { | ||
| position: absolute; | ||
| bottom: 20px; | ||
| font-size: 11px; | ||
| /* Match --color-text-secondary (hsl(0 0% 42%)) */ | ||
| color: hsl(0 0% 42%); | ||
| } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div class="logo">cmux</div> | ||
| <div class="loading-text">Loading services...</div> | ||
| <div class="spinner"></div> | ||
| <div class="version">coder multiplexer</div> | ||
| </body> | ||
| </html> | ||
|
|
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.