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:
@@ -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;
|
||||
Reference in New Issue
Block a user