Skip to content

Conversation

@RezeOW
Copy link
Contributor

@RezeOW RezeOW commented Aug 31, 2025

Summary

I wanted to edit the dashboard texts, but they were hard coded, so I made them editable via the config.yaml file

Checklist

  • Tested and/or added tests to validate that the changes work as intended, if applicable.
  • Updated documentation in README.md, if applicable.

@github-actions github-actions bot added the feature New feature or request label Aug 31, 2025
@ben-burwood
Copy link

ben-burwood commented Oct 3, 2025

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

@TwiN
Copy link
Owner

TwiN commented Oct 20, 2025

Out of curiosity, what did you want to modify them to? Did you want to completely remove them (i.e. set them to "")?

@RezeOW
Copy link
Contributor Author

RezeOW commented Oct 20, 2025

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.

@justinnamilee
Copy link

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 ui.custom-css: 'div[class="flex items-center justify-between mb-6"]{display:none!important}' tho I'm not sure what other implications this would have (if any) at this time, heh, but it seems to do the trick (tho I do lose the toggle for which measurement to use).

config/ui/ui.go Outdated
Comment on lines 13 to 22
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"
Copy link
Owner

Choose a reason for hiding this comment

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

Please align using spaces, not tabs.

config/ui/ui.go Outdated
Comment on lines 35 to 46
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')
Copy link
Owner

Choose a reason for hiding this comment

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

Same alignment comment here

config/ui/ui.go Outdated
Comment on lines 37 to 38
DashboardTitle string `yaml:"dashboard-title,omitempty"` // Dashboard Title between header and endpoints
DashboardDescription string `yaml:"dashboard-description,omitempty"` // Dashboard Description between header and endpoints
Copy link
Owner

Choose a reason for hiding this comment

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

This should probably be named DashboardHeading and DashboardSubheading.

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 assume the config should also reflect this naming?

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe even creating an object called dashboard?

dashboard:
  heading: asdf
  subheading: hjkl

Copy link
Owner

Choose a reason for hiding this comment

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

No need to create a parent dashboard object for now, just dashboard-heading and dashboard-subheading is fine

Comment on lines 13 to 14
DashboardTitle: "",
DashboardDescription: "",
Copy link
Owner

Choose a reason for hiding this comment

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

These should be aligned

@macmoritz
Copy link
Contributor

macmoritz commented Oct 27, 2025

@RezeOW could you be so kind and fix the alignment issues soon?

@RezeOW
Copy link
Contributor Author

RezeOW commented Oct 27, 2025

I am very sorry,
but I am currently pretty busy IRL and dont have the environment at hand to test my changes or build the VUE App.
But I changed the aligning and the naming scheme. If someone could test this, that would be great!

@RezeOW RezeOW requested a review from TwiN November 3, 2025 19:14
@TwiN
Copy link
Owner

TwiN commented Nov 5, 2025

@RezeOW Would you mind fixing the conflict when you have a minute?

@RezeOW
Copy link
Contributor Author

RezeOW commented Nov 13, 2025

I am gonna be honest, I am not a js dev and I dont want to break your app :(

@TwiN
Copy link
Owner

TwiN commented Nov 14, 2025

@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 :)

@macmoritz
Copy link
Contributor

@RezeOW I appreciate your work and respect your time in reallife.
But is there any change you could resolve the conflicts soon?
Alternativly it would be great if you could provide @TwiN or me access to your fork, so we can resolve conflicts and get this in quickly.

@macmoritz macmoritz force-pushed the add-customizable-dashboard-text branch from c12179d to 9f76d25 Compare November 16, 2025 19:50
@macmoritz
Copy link
Contributor

@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 make frontend-install && make frontend-build. This way the web/static/js/app.js file with conflicts gets regenerated. Also I tested your changes, works like a charm!

@RezeOW
Copy link
Contributor Author

RezeOW commented Nov 16, 2025

@macmoritz I appreciate your help, thanks!

@TwiN TwiN changed the title feat(config): customizable dashboard texts feat(ui): customizable dashboard texts Nov 16, 2025
@TwiN TwiN changed the title feat(ui): customizable dashboard texts feat(ui): customizable dashboard heading and subheading Nov 16, 2025
@TwiN
Copy link
Owner

TwiN commented Nov 16, 2025

Excellent work folks.

@TwiN TwiN merged commit 75c1b29 into TwiN:master Nov 16, 2025
3 checks passed
@tdaskalovaxway
Copy link

tdaskalovaxway commented Nov 18, 2025

OMG, I was really looking forward to this feature! Thanks everyone! 🎉 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants