Skip to content

Conversation

@mindspank
Copy link
Contributor

Adds the ability to upload dark mode logo variants

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

var dark bool

cmd := &cobra.Command{
Use: "upload-logo [<org-name> [<path-to-image>]]",
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the brackets should stay - for the org, it defaults to your default org, and for the path it's not required for --remove. Just for correctness – I realize this isn't super user friendly, but I guess it's kind of a rare command.

Copy link
Contributor

Choose a reason for hiding this comment

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

Or if you want to improve this, maybe we should consider rill org upload-logo [--light PATH] [--dark PATH] [--remove] where --light and --dark can optionally be sent at the same time, and --remove removes both the light and dark logo.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd probably keep them separate, not sure if anyone has workflows on the old command.

Ye the syntax gets a bit strange, I'll add back brackets

Use: "upload-logo <org-name> <path-to-image>",
Args: cobra.MaximumNArgs(2),
Short: "Upload a custom logo",
Short: "Upload a custom logo (use --dark for dark-mode variant; omit path only with --remove)",
Copy link
Contributor

Choose a reason for hiding this comment

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

The Short field should ideally be very short – consider moving this to Long: or add these descriptions to the individual flag descriptions

Copy link
Contributor

@begelundmuller begelundmuller left a comment

Choose a reason for hiding this comment

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

LGTM

@begelundmuller begelundmuller merged commit fadecb8 into main Dec 12, 2025
15 checks passed
@begelundmuller begelundmuller deleted the feat/darkmode-logo branch December 12, 2025 10:12
k-anshul pushed a commit that referenced this pull request Dec 18, 2025
* feat: dark mode logo

* brackets
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