Skip to content

Redesign wings startup banner - #204

Draft
lancepioch wants to merge 1 commit into
mainfrom
lance/startup-banner
Draft

Redesign wings startup banner#204
lancepioch wants to merge 1 commit into
mainfrom
lance/startup-banner

Conversation

@lancepioch

@lancepioch lancepioch commented Aug 10, 2026

Copy link
Copy Markdown
Member
image

Replace the plain boot banner with an ANSI Shadow "PELICAN" wordmark rendered
in a vertical cyan->blue gradient, followed by a WINGS rule with the build
version centered beneath it, a tagline, aligned Source/Docs link rows, and a
star-the-project call-to-action.

Color depth adapts to the terminal: 24-bit truecolor when COLORTERM advertises
it, a 256-color approximation otherwise, and no escape codes at all when stdout
is not a TTY. The runtime copyright/MIT block is dropped (still shipped in the
LICENSE file), and the log-path notice now prints below the banner.
@lancepioch lancepioch self-assigned this Aug 10, 2026
@lancepioch
lancepioch requested a review from a team as a code owner August 10, 2026 18:44
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Startup output now reports the configured log path directly. The previous logo and license text were replaced with a terminal-aware Pelican banner that supports multiple color modes and includes version, links, and a GitHub star call-to-action.

Changes

Startup output

Layer / File(s) Summary
Configured log path reporting
cmd/root.go
Startup logging now builds the reported log-file path from the configured log directory.
Terminal-aware startup banner
cmd/root.go
The startup banner detects color support, renders a gradient Pelican wordmark, and prints version, project links, and a GitHub star call-to-action. The previous ASCII logo and license text were removed.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: alexevladgabriel, parkervcp, quintenqvd0

Poem

A rabbit greets the banner bright,
With wings that glow in terminal light.
The log path hops to its right place,
While Pelican smiles with polished grace.
“Star the project!” says the hare.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: redesigning the Wings startup banner.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch lance/startup-banner

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@notAreYouScared
notAreYouScared marked this pull request as draft August 10, 2026 18:45

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@cmd/root.go`:
- Around line 487-496: Update detectBannerColor to return bannerPlain before the
COLORTERM switch when TERM is "dumb" or the NO_COLOR environment variable is
set. Preserve the existing stdout character-device check and color selection for
other terminals.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 41cfbd27-60eb-4367-bfe6-ca3aaa274fed

📥 Commits

Reviewing files that changed from the base of the PR and between b132e99 and 3925d7a.

📒 Files selected for processing (1)
  • cmd/root.go
📜 Review details
⏰ Context from checks skipped due to timeout. (7)
  • GitHub Check: Analyze (go)
  • GitHub Check: Build and Test (ubuntu-22.04, 1.25.12, linux, arm64)
  • GitHub Check: Build and Test (ubuntu-22.04, 1.26.5, linux, arm64)
  • GitHub Check: Test macOS (1.25.12)
  • GitHub Check: Build and Test (ubuntu-22.04, 1.25.12, linux, amd64)
  • GitHub Check: Build and Test (ubuntu-22.04, 1.26.5, linux, amd64)
  • GitHub Check: Test macOS (1.26.5)
🔇 Additional comments (3)
cmd/root.go (3)

118-118: LGTM!


516-543: LGTM!


545-609: LGTM!

Comment thread cmd/root.go
Comment on lines +487 to +496
func detectBannerColor() bannerColor {
fi, err := os.Stdout.Stat()
if err != nil || fi.Mode()&os.ModeCharDevice == 0 {
return bannerPlain
}
switch os.Getenv("COLORTERM") {
case "truecolor", "24bit":
return bannerTrue
}
return banner256

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Return plain output when color is disabled.

A character device does not guarantee 256-color support. TERM=dumb terminals receive literal ANSI escape sequences from this branch. Users who set NO_COLOR also receive color output.

Return bannerPlain before the color-mode switch when TERM is "dumb" or NO_COLOR is set.

Proposed fix
 func detectBannerColor() bannerColor {
 	fi, err := os.Stdout.Stat()
 	if err != nil || fi.Mode()&os.ModeCharDevice == 0 {
 		return bannerPlain
 	}
+	if os.Getenv("TERM") == "dumb" || os.Getenv("NO_COLOR") != "" {
+		return bannerPlain
+	}
 	switch os.Getenv("COLORTERM") {
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
func detectBannerColor() bannerColor {
fi, err := os.Stdout.Stat()
if err != nil || fi.Mode()&os.ModeCharDevice == 0 {
return bannerPlain
}
switch os.Getenv("COLORTERM") {
case "truecolor", "24bit":
return bannerTrue
}
return banner256
func detectBannerColor() bannerColor {
fi, err := os.Stdout.Stat()
if err != nil || fi.Mode()&os.ModeCharDevice == 0 {
return bannerPlain
}
if os.Getenv("TERM") == "dumb" || os.Getenv("NO_COLOR") != "" {
return bannerPlain
}
switch os.Getenv("COLORTERM") {
case "truecolor", "24bit":
return bannerTrue
}
return banner256
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@cmd/root.go` around lines 487 - 496, Update detectBannerColor to return
bannerPlain before the COLORTERM switch when TERM is "dumb" or the NO_COLOR
environment variable is set. Preserve the existing stdout character-device check
and color selection for other terminals.

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.

1 participant