feat: persist account group display order and backup preferences
This commit is contained in:
1 parent
20643b366f
commit
1af5edbadc
28 files changed
+379
-47
No files matched your search
@@ -0,0 +1,8 @@
|
||||
// Only present groups are displayed; saved groups absent from this view stay private.
|
||||
export function orderedGroups(groups: string[], order: string[] = []) {
|
||||
const present = new Set(groups);
|
||||
return [...order.filter((g) => present.delete(g)), ...present];
|
||||
}
|
||||
export function mergeGroupOrder(visible: string[], saved: string[]) {
|
||||
return [...visible, ...saved.filter((g) => !visible.includes(g))];
|
||||
}
|
||||
Reference in new issue
Block a user