Skip to content

feat: add user preferences persistence (theme, scoop interval, table …#616

Open
noor1ha wants to merge 1 commit into
masterfrom
UserSettings-UI
Open

feat: add user preferences persistence (theme, scoop interval, table …#616
noor1ha wants to merge 1 commit into
masterfrom
UserSettings-UI

Conversation

@noor1ha
Copy link
Copy Markdown
Contributor

@noor1ha noor1ha commented May 7, 2026

kube-HPC/hkube#2364
Title: User Preferences Persistence — Frontend Implementation

What: Allows users to save UI preferences (theme, scoop interval, table column visibility/widths) to the backend so they persist across sessions and devices.

How it works:

  • User changes are applied to local Redux state immediately
  • Clicking "Save Preferences" sends the full preferences object via PUT /api/v1/preferences
  • Clicking "Reset Preferences" shows a confirmation dialog, then sends DELETE /api/v1/preferences to restore defaults
  • On app boot, preferences are fetched from the server (GET /api/v1/preferences) — non-blocking, falls back to defaults if unavailable
  • Without Keycloak, a device UUID is generated and sent as X-HKube-User-Id header for per-browser identification

Backend dependency: Requires 3 new API server endpoints (GET/PUT/DELETE /api/v1/preferences) backed by a MongoDB userPreferences collection. Frontend works without them (graceful fallback to defaults).


This change is Reviewable

…columns)

Add frontend infrastructure for saving user preferences across sessions.
Preferences are stored locally in Redux and synced to the backend via
REST endpoints (GET/PUT/DELETE /api/v1/preferences).
@noor1ha noor1ha requested review from RonShvarz and zivglikr May 7, 2026 09:16
@noor1ha noor1ha self-assigned this May 7, 2026
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.

2 participants