feat(ui): customizable dashboard heading and subheading#1235
feat(ui): customizable dashboard heading and subheading#1235TwiN merged 3 commits intoTwiN:masterfrom
Conversation
|
Was about to start work on this but then I saw the PR - would be keen for this to get through! :) Appears to also be requested in #1299 |
|
Out of curiosity, what did you want to modify them to? Did you want to completely remove them (i.e. set them to |
|
I’d like to make the wording clearer for my users, especially the endpoint part. It’s mostly a personal preference, so I thought making it customizable would be best. |
|
Would really love the option to modify them, or even hide that whole div to be honest, but would settle for being able to set them blank or to something custom. For now I've just dropped it entirely with |
config/ui/ui.go
Outdated
| defaultTitle = "Health Dashboard | Gatus" | ||
| defaultDescription = "Gatus is an advanced automated status page that lets you monitor your applications and configure alerts to notify you if there's an issue" | ||
| defaultHeader = "Gatus" | ||
| defaultDashboardTitle = "Health Dashboard" | ||
| defaultDashboardDescription = "Monitor the health of your endpoints in real-time" | ||
| defaultLogo = "" | ||
| defaultLink = "" | ||
| defaultCustomCSS = "" | ||
| defaultSortBy = "name" | ||
| defaultFilterBy = "none" |
There was a problem hiding this comment.
Please align using spaces, not tabs.
config/ui/ui.go
Outdated
| Title string `yaml:"title,omitempty"` // Title of the page | ||
| Description string `yaml:"description,omitempty"` // Meta description of the page | ||
| DashboardTitle string `yaml:"dashboard-title,omitempty"` // Dashboard Title between header and endpoints | ||
| DashboardDescription string `yaml:"dashboard-description,omitempty"` // Dashboard Description between header and endpoints | ||
| Header string `yaml:"header,omitempty"` // Header is the text at the top of the page | ||
| Logo string `yaml:"logo,omitempty"` // Logo to display on the page | ||
| Link string `yaml:"link,omitempty"` // Link to open when clicking on the logo | ||
| Buttons []Button `yaml:"buttons,omitempty"` // Buttons to display below the header | ||
| CustomCSS string `yaml:"custom-css,omitempty"` // Custom CSS to include in the page | ||
| DarkMode *bool `yaml:"dark-mode,omitempty"` // DarkMode is a flag to enable dark mode by default | ||
| DefaultSortBy string `yaml:"default-sort-by,omitempty"` // DefaultSortBy is the default sort option ('name', 'group', 'health') | ||
| DefaultFilterBy string `yaml:"default-filter-by,omitempty"` // DefaultFilterBy is the default filter option ('none', 'failing', 'unstable') |
config/ui/ui.go
Outdated
| DashboardTitle string `yaml:"dashboard-title,omitempty"` // Dashboard Title between header and endpoints | ||
| DashboardDescription string `yaml:"dashboard-description,omitempty"` // Dashboard Description between header and endpoints |
There was a problem hiding this comment.
This should probably be named DashboardHeading and DashboardSubheading.
There was a problem hiding this comment.
I assume the config should also reflect this naming?
There was a problem hiding this comment.
Maybe even creating an object called dashboard?
dashboard:
heading: asdf
subheading: hjklThere was a problem hiding this comment.
No need to create a parent dashboard object for now, just dashboard-heading and dashboard-subheading is fine
config/ui/ui_test.go
Outdated
| DashboardTitle: "", | ||
| DashboardDescription: "", |
|
@RezeOW could you be so kind and fix the alignment issues soon? |
|
I am very sorry, |
|
@RezeOW Would you mind fixing the conflict when you have a minute? |
|
I am gonna be honest, I am not a js dev and I dont want to break your app :( |
|
@RezeOW don't worry about it. I'll fix it when I have some time to work on this (unless somebody beats me to it). I appreciate the effort nevertheless :) |
c12179d to
9f76d25
Compare
|
@TwiN I've rebased and rebuiled the frontend, should be ready for merge. Would appreciate a quick release, so I can deploy this to production. @RezeOW thanks for responding fast. I've simply rebased your branch and run |
|
@macmoritz I appreciate your help, thanks! |
|
Excellent work folks. |
|
OMG, I was really looking forward to this feature! Thanks everyone! 🎉 👏 |
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/twin/gatus](https://github.com/TwiN/gatus) | minor | `v5.31.0` -> `v5.33.0` | --- ### Release Notes <details> <summary>TwiN/gatus (ghcr.io/twin/gatus)</summary> ### [`v5.33.0`](https://github.com/TwiN/gatus/releases/tag/v5.33.0) [Compare Source](TwiN/gatus@v5.32.0...v5.33.0) #### What's Changed - feat(client): Add ssh private-key support by [@​mufeedali](https://github.com/mufeedali) in [#​1390](TwiN/gatus#1390) #### New Contributors - [@​mufeedali](https://github.com/mufeedali) made their first contribution in [#​1390](TwiN/gatus#1390) **Full Changelog**: <TwiN/gatus@v5.32.0...v5.33.0> ### [`v5.32.0`](https://github.com/TwiN/gatus/releases/tag/v5.32.0) [Compare Source](TwiN/gatus@v5.31.0...v5.32.0) #### What's Changed - feat(ui): customizable dashboard heading and subheading by [@​RezeOW](https://github.com/RezeOW) in [#​1235](TwiN/gatus#1235) - docs: Add note to README.md regarding CAP\_NET\_RAW by [@​h3mmy](https://github.com/h3mmy) in [#​1384](TwiN/gatus#1384) #### New Contributors - [@​RezeOW](https://github.com/RezeOW) made their first contribution in [#​1235](TwiN/gatus#1235) **Full Changelog**: <TwiN/gatus@v5.31.0...v5.32.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi41LjAiLCJ1cGRhdGVkSW5WZXIiOiI0Mi41LjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImltYWdlIl19--> Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/2110 Co-authored-by: Renovate Bot <renovate-bot@alexlebens.net> Co-committed-by: Renovate Bot <renovate-bot@alexlebens.net>
Summary
I wanted to edit the dashboard texts, but they were hard coded, so I made them editable via the config.yaml file
Checklist
README.md, if applicable.