Skip to content

Save FLA colours to localstorage for persistence#1157

Merged
1Blademaster merged 3 commits into
mainfrom
1152-feature-remember-the-colour-of-a-data-point-on-fla-graph
Apr 11, 2026
Merged

Save FLA colours to localstorage for persistence#1157
1Blademaster merged 3 commits into
mainfrom
1152-feature-remember-the-colour-of-a-data-point-on-fla-graph

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

No description provided.

@1Blademaster 1Blademaster linked an issue Apr 10, 2026 that may be closed by this pull request
Copilot AI review requested due to automatic review settings April 10, 2026 20:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds persistence for FLA (Falcon Log Analyser) line colours by introducing a persistentColorMap in Redux, restoring it from localStorage at startup, and updating it whenever users assign/select colours so colours survive reloads.

Changes:

  • Add persistentColorMap state + actions/selectors in logAnalyserSlice.
  • Load/save flaPersistentColorMap in redux/store.js via localStorage.
  • Apply persisted colours when toggling filters / selecting presets / manually changing colours; include customColors when saving a preset.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
gcs/src/redux/store.js Loads/saves the persistent FLA colour map to localStorage.
gcs/src/redux/slices/logAnalyserSlice.js Introduces persistentColorMap plus reducers/selectors for updates.
gcs/src/fla.jsx Restores visible colours from the persistent map on filter changes.
gcs/src/components/fla/savePresetModal.jsx Saves customColors into custom preset payloads.
gcs/src/components/fla/presetAccordionItem.jsx Uses persisted colours (and/or preset colours) when selecting presets; updates persistent map for palette-assigned colours.
gcs/src/components/fla/messagesFiltersAccordion.jsx Prefers persisted colours when enabling message fields; persists palette assignments.
gcs/src/components/fla/chartDataCard.jsx Persists manual colour changes into the persistent map.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gcs/src/redux/store.js
Comment thread gcs/src/fla.jsx Outdated
Comment thread gcs/src/components/fla/presetAccordionItem.jsx
@1Blademaster 1Blademaster merged commit 3dad249 into main Apr 11, 2026
5 checks passed
@1Blademaster 1Blademaster deleted the 1152-feature-remember-the-colour-of-a-data-point-on-fla-graph branch April 11, 2026 13:14
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.

[FEATURE] Remember the colour of a data point on FLA graph

2 participants