The charging tabs drag, like a car's do
Reordering the bar meant editing the template, which is a poor way to ask for Home chargers first. The tabs now drag into either order on the same native drag events as a car's tabs and the garage, down to the live reorder as the pointer crosses a tab, the grab cursor, and the rail's lock holding the bar still for anyone who would rather not nudge it on the way to a tab. The arrangement is saved on the profile as charger_tab_order, beside the garage order and for the same reason: it is a layout choice that should follow the account rather than the browser, unlike which cards are folded. The field is reconciled onto the users collection at boot, so no migration step. Its normalizer is the garage's, which now takes the field name and cap as arguments instead of being copied. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
2a5d21d328
commit
1418a566fd
@@ -252,6 +252,9 @@ var collectionsSchema = map[string][]fieldDef{
|
||||
// user rather than per car, so it also covers cars shared with them and
|
||||
// never reorders somebody else's garage.
|
||||
fJSON("car_order", 20000),
|
||||
// The charging page's tab order. Per user like the garage order, and for
|
||||
// the same reason: it is this person's arrangement of their own page.
|
||||
fJSON("charger_tab_order", 2000),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user