- Add `isFav` selector to `useFavPlayerStore` to determine initial button state immediately.
- Initialize `FavButton` value based on the store's `isFav` result instead of a stale local state.
- In `FavePlayersPage`, integrate Ant Design message hooks for user feedback during server sync.
- Show "syncing" loading indicator when starting the sync process.
- Show "synced" success notification upon completion.
- Enhance the "Clear Local Favorites" confirmation dialog:
- Update warning text to indicate the action is irreversible.
- Add custom button labels ("清空", "取消").
- Make the confirm button dangerous and add a delete icon for better UX.
|
||
|---|---|---|
| __test__ | ||
| .vscode | ||
| prisma | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| bun-env.d.ts | ||
| bun.lock | ||
| bunfig.toml | ||
| docker-compose.yml | ||
| dockerfile | ||
| package.json | ||
| prisma.config.ts | ||
| README.md | ||
| tsconfig.json | ||