Skip to content

Conversation

@mindspank
Copy link
Contributor

Adds themeMode to the iframe request

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!

Comment on lines 756 to 758
if req.ThemeMode != "light" && req.ThemeMode != "dark" && req.ThemeMode != "system" {
return nil, status.Error(codes.InvalidArgument, "theme_mode must be one of: light, dark, system")
}
Copy link
Contributor

Choose a reason for hiding this comment

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

If you go with validation in the proto, you don't need this

@mindspank mindspank force-pushed the feat/theme-dark-mode-iframe branch from ccc53ae to fcc466f Compare December 12, 2025 10:24
@mindspank mindspank merged commit b1504ff into main Dec 12, 2025
14 checks passed
@mindspank mindspank deleted the feat/theme-dark-mode-iframe branch December 12, 2025 11:11
k-anshul pushed a commit that referenced this pull request Dec 18, 2025
* feat: add themeMode to iframe request

* Update proto/rill/admin/v1/api.proto

Co-authored-by: Benjamin Egelund-Müller <[email protected]>

* validate in proto

* new proto

* new proto

* proto

---------

Co-authored-by: Benjamin Egelund-Müller <[email protected]>
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