Skip to content

Redesign wings startup banner - #204

Merged
parkervcp merged 2 commits into
mainfrom
lance/startup-banner
Aug 13, 2026
Merged

Redesign wings startup banner#204
parkervcp merged 2 commits into
mainfrom
lance/startup-banner

Conversation

@lancepioch

@lancepioch lancepioch commented Aug 10, 2026

Copy link
Copy Markdown
Member
image

Summary by CodeRabbit

  • Style

    • Replaced the plain startup logo and license text with a terminal-aware Pelican banner.
    • Added adaptive color support for truecolor, 256-color, and plain terminal output.
    • Added gradient branding, version information, project links, and a GitHub star prompt.
  • Logging

    • Startup logging now displays the configured wings.log path directly.

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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c0150312-a443-4c10-bec2-727b7314d04f

📥 Commits

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

📒 Files selected for processing (1)
  • cmd/root.go
🚧 Files skipped from review as they are similar to previous changes (1)
  • cmd/root.go

📝 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 banner detects terminal 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

Mergeability Score: ⚪ Minimal · up to 1bdc3

This PR changes the startup banner presentation only; no actionable merge-blocking risk remains, so it is merge-ready after normal checks and review.

Poem

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

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 60.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the primary change: redesigning the Wings startup banner.
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.
✨ 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.

@parkervcp

parkervcp commented Aug 13, 2026

Copy link
Copy Markdown
Member

I kinda liked the big wings logo.

@lancepioch you have conflicts now. please fix those.

@parkervcp
parkervcp marked this pull request as ready for review August 13, 2026 20:28

@parkervcp parkervcp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@parkervcp
parkervcp merged commit 364df24 into main Aug 13, 2026
9 checks passed
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.

3 participants