1
0
forked from boos/BoosAPI

feat: add sorting and pinning functionality for accounts and sites

- Introduced `isPinned` and `sortOrder` fields in the `accounts` and `sites` tables to allow users to pin and sort their accounts and sites.
- Updated API routes to handle pinning and sorting operations for accounts and sites.
- Enhanced the frontend to support sorting by balance and custom order, as well as toggling the pin status of accounts and sites.
- Added tests for sorting and reordering logic to ensure correct functionality.
- Updated documentation to reflect changes in token management and new features.
This commit is contained in:
cita
2026-02-28 23:45:30 +08:00
parent 08eaf11ea2
commit 44af9a91cf
17 changed files with 647 additions and 67 deletions
+7
View File
@@ -0,0 +1,7 @@
ALTER TABLE `sites` ADD COLUMN `is_pinned` integer DEFAULT false;
--> statement-breakpoint
ALTER TABLE `sites` ADD COLUMN `sort_order` integer DEFAULT 0;
--> statement-breakpoint
ALTER TABLE `accounts` ADD COLUMN `is_pinned` integer DEFAULT false;
--> statement-breakpoint
ALTER TABLE `accounts` ADD COLUMN `sort_order` integer DEFAULT 0;
+8 -1
View File
@@ -29,6 +29,13 @@
"when": 1772079351462,
"tag": "0003_great_blizzard",
"breakpoints": true
},
{
"idx": 4,
"version": "6",
"when": 1772320800000,
"tag": "0004_sorting_preferences",
"breakpoints": true
}
]
}
}