Commit Graph
2 Commits
Author SHA1 Message Date
Innei d0bf0fb657 refactor: replace useGetCommand with getCommand for improved command retrieval
- Updated the command retrieval method in various hooks and components to use the new getCommand function instead of the deprecated useGetCommand.
- Refactored related tests to ensure type correctness with the new command retrieval approach.
- Enhanced the PictureWaterFallItem component by optimizing mouse event handling with useCallback for better performance.
- Improved animation handling in the PictureWaterFallItem component for smoother transitions.

This change streamlines command access and enhances component performance.

Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 00:32:28 +08:00
WhitewaterandInnei ea8c8d0926 refactor: new command abstractions in follow (#1566)
* feat: implement command abstractions and hooks

* chore: register follow commands in search command context

* refactor: replace entry actions with command buttons in entry header

* chore: add usePopulatedEntry hook

* feat: add user focus context with atom hooks

* fix: types

* refactor: redesign command system

* refactor: update command button and hotkey hooks for improved type safety

* refactor: update command types for consistency and add new command types

* refactor: enhance entry actions component with dynamic command buttons

* chore: clean code

* refactor: streamline entry content handling and enhance command button configuration

* refactor: enhance command handling and streamline entry actions integration

* refactor: deprecate command button components and simplify command registration

* fix: disable shortcut in modal present

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: Innei <tukon479@gmail.com>
2024-11-19 13:34:55 +08:00