Persist actions log time display settings in localStorage#36623
Merged
Conversation
The "Show Log Seconds" and "Show Timestamps" toggles in the actions log viewer were not persisted across page reloads. Add them to the existing localStorage-backed settings so they survive navigation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds persistence for the actions log time display settings using localStorage. Previously, the two boolean settings for showing seconds and timestamps in action logs were reset on every page reload. Now they are saved to localStorage and restored when the user returns to the page.
Changes:
- Extended
LocaleStorageOptionstype to includeactionsLogShowSecondsandactionsLogShowTimestamps - Modified initialization to load these settings from localStorage with appropriate defaults (both
false) - Updated
saveLocaleStorageOptions()to persist the time visibility settings alongside existing auto-scroll and expand-running options
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
wxiaoguang
reviewed
Feb 14, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
lunny
approved these changes
Feb 14, 2026
techknowlogick
approved these changes
Feb 15, 2026
silverwind
added a commit
to silverwind/gitea
that referenced
this pull request
Feb 16, 2026
…#36623) Persist the two boolean settings in the actions log into `localStorage` so that they are remembered across page reloads. --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Persist the two boolean settings in the actions log into
localStorageso that they are remembered across page reloads.