Arrange the rail: drag pages into your own order, kept with the account

The close cross on a detail pane is drawn, not a glyph, and sits in no box.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Mitchell-Johnson
2026-09-22 19:59:25 -07:00
co-authored by Claude Fable 5.1
parent b8ea7abcc7
commit 7e3e916f25
11 changed files with 122 additions and 22 deletions
+2 -1
View File
@@ -4,6 +4,7 @@
import { api } from './api'
import { currentThemeId } from './themes'
import { getRefreshMs } from './prefs'
import { getRailOrder } from './railorder'
export const ACCENTS = ['#e3a33b', '#3fb950', '#58a6ff', '#f778ba', '#ff7b72', '#a371f7', '#39c5cf', '#d4d44a', '#ff9e64', '#9aa7b4']
const KEY = 'hamlab.accents'
@@ -22,4 +23,4 @@ export function setAccents(all: Record<string, string>, save = true) {
if (save) savePrefs()
}
// Everything the hub remembers about how the console looks, saved as one object.
export function savePrefs() { return api.saveUIPrefs({ theme: currentThemeId(), refreshMs: getRefreshMs(), accents: getAccents() }).catch(() => { /* local still applied */ }) }
export function savePrefs() { return api.saveUIPrefs({ theme: currentThemeId(), refreshMs: getRefreshMs(), accents: getAccents(), rail: getRailOrder() }).catch(() => { /* local still applied */ }) }