Per-user dashboard preferences
Auto-generated from the source archive. Do not edit by hand — rerun
catalyst-changelog-syncinstead.
What changed
Section titled “What changed”- Each dashboard card gains a favorite star, and both the favorites and non-favorites groups can be reordered by drag and drop; the arrangement is saved per user, with the admin-defined
sortas fallback. - Adds three endpoints on
hub/app—toggle-favorite,reorder-apps, andmy-preferences— that resolve the account server-side from the request principal; the client never sends anaccountId. - The dashboard read (
hubGetApps) and the preference endpoints open to any authenticated user, fixing the 403 non-admins previously hit on their own landing page.
Why it matters
Section titled “Why it matters”The dashboard is the post-login landing for every user, yet everyone saw the same admin-defined order. Each user can now pin their daily apps first and arrange both groups to their liking, with optimistic toggle and reorder that revert on error. The preference rows are created lazily on first interaction and are strictly scoped to the authenticated account — one user can never read or modify another’s arrangement. Admin CRUD on apps keeps its existing permission gates.