Skip to content

Conversation

RezeOW
Copy link

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

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.

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

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

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.

5 participants