Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add customization options to banner message #431

Merged
merged 10 commits into from
Oct 2, 2024

Conversation

webecke
Copy link
Contributor

@webecke webecke commented Sep 25, 2024

you can now put a link into the banner message that is clickable and change the color

@webecke webecke linked an issue Sep 25, 2024 that may be closed by this pull request
@19mdavenport
Copy link
Collaborator

Did you decide against making it expire?

@webecke
Copy link
Contributor Author

webecke commented Sep 27, 2024

Did you decide against making it expire?

Good point. I did decide against it, but then I took it as a challenge. now it expires.

I doesn't disappear from a user's front end, but if they refresh or load the page after it expires, it wont be there anymore. This happens because now, everytime a user asks the server for the banner, it checks to see if its past expiration. if it is, it clears the banner from the database.

@frozenfrank
Copy link
Contributor

frozenfrank commented Sep 30, 2024 via email

@webecke
Copy link
Contributor Author

webecke commented Oct 1, 2024

Is this something that we'll want to change across the app? Everything else in the autograder already assumes Utah time, at least as far as I'm aware

@frozenfrank
Copy link
Contributor

@DallinFromEarth @19mdavenport This configuration improvement is really part of #156.

While we have tried to minimize the number of times we hardcode the timezone, there currently appear to be 5 different occurrences of the timezone definition in the code. Several of them already have comments indicating that we should extract the exact value into a config table.

image

I don't this we should hold up this PR on the config table improvements. We will already need to extract the constant from multiple other files in order to fully fulfill the request, and that isn't something we need to do now.

However, that doesn't mean we can just assume that autograder is operating in the Utah timezone. We should practice technical diligence and avoid making decisions for as long as possible (good software design principles).

@webecke webecke merged commit 03f1762 into main Oct 2, 2024
2 checks passed
@webecke webecke deleted the 426-frontend-improve-banner-message branch October 2, 2024 02:37
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.

Frontend: Improve banner message
3 participants