Skip to content

Conversation

@bgentry
Copy link
Contributor

@bgentry bgentry commented May 12, 2025

This feature request came from a customer whose job args are encoded protobufs, which makes them long and ugly to look at in the UI. The request was to provide a way to hide them in the list view, which I made possible via RIVER_JOB_LIST_HIDE_ARGS_BY_DEFAULT.

I also used this as an excuse to build out a settings screen in the UI to allow it to be overridden by the user. The preference is kept in local storage and can be cleared out to revert to the default. The setting UI isn't anything special but should be fine for now.

Desktop Mobile
localhost_8080_settings localhost_8080_settings(iPhone 14 Pro Max)

@bgentry bgentry requested a review from brandur May 12, 2025 01:06
Copy link
Collaborator

@brandur brandur left a comment

Choose a reason for hiding this comment

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

Very cool!

corsOrigins = strings.Split(os.Getenv("CORS_ORIGINS"), ",")
databaseURL = os.Getenv("DATABASE_URL")
devMode = envBooleanTrue(os.Getenv("DEV"))
jobListHideArgsByDefault = envBooleanTrue(os.Getenv("JOB_LIST_HIDE_ARGS_BY_DEFAULT"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we prefix this with RIVER?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah good call, changed that!

@bgentry bgentry force-pushed the bg-hide-job-args branch from 35394b7 to c671b29 Compare May 12, 2025 03:58
@bgentry bgentry enabled auto-merge (squash) May 12, 2025 04:00
@bgentry bgentry merged commit f2310cb into master May 12, 2025
12 checks passed
@bgentry bgentry deleted the bg-hide-job-args branch May 12, 2025 04:01
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