Skip to content

ADFA-3350 | Refactor main screen actions to use ActionsRegistry#1091

Merged
jatezzz merged 3 commits intofeat/ADFA-3153-ide-shortcut-systemfrom
refactor/ADFA-3350-main-shortcuts
Mar 19, 2026
Merged

ADFA-3350 | Refactor main screen actions to use ActionsRegistry#1091
jatezzz merged 3 commits intofeat/ADFA-3153-ide-shortcut-systemfrom
refactor/ADFA-3350-main-shortcuts

Conversation

@jatezzz
Copy link
Collaborator

@jatezzz jatezzz commented Mar 18, 2026

Description

This PR refactors the main screen actions to route through the centralized ActionsRegistry rather than relying on the hardcoded MainScreenAction model. It introduces individual ActionItem implementations (such as CreateProjectAction, OpenProjectAction, OpenTerminalAction, etc.) for better modularity. Additionally, it updates the shortcut definitions to bind directly to these new action IDs and ensures that the main screen actions are properly refreshed in onResume.

Details

Logic refactor applied to action handling and shortcut bindings. The visual representation of the main screen buttons remains consistent, but their underlying click/long-click handling is now driven by the DefaultActionsRegistry.

document_5033170361982650184.mp4

Ticket

ADFA-3350

Observation

Removed legacy classes MainScreenAction.kt and ShortcutActionIds.kt as their responsibilities have been fully migrated to the new individual action classes. Fallback logic in IdeShortcutActions was also cleaned up since actions are natively resolved through the registry now.

refactor(shortcuts): route main screen actions through registry and update bindings
Copy link
Contributor

@itsaky-adfa itsaky-adfa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requires minor, good-to-have changes. Looks good otherwise.

… visibility

Add logs for missing action data, registry mismatch, and unresolved action IDs to avoid silent failures
@jatezzz jatezzz requested a review from itsaky-adfa March 19, 2026 14:24
@jatezzz jatezzz merged commit b9058de into feat/ADFA-3153-ide-shortcut-system Mar 19, 2026
2 checks passed
@jatezzz jatezzz deleted the refactor/ADFA-3350-main-shortcuts branch March 19, 2026 14:33
jatezzz added a commit that referenced this pull request Mar 20, 2026
* fix(main): refresh main screen actions on resume
refactor(shortcuts): route main screen actions through registry and update bindings

* refactor: migrate shortcut actions logging to SLF4J and improve error visibility

Add logs for missing action data, registry mismatch, and unresolved action IDs to avoid silent failures
jatezzz added a commit that referenced this pull request Mar 20, 2026
* feat(shortcuts): introduce modular IDE shortcut catalog and execution system
add grouped shortcuts and editor dispatch integration

* fix(shortcuts): correct priority scoring using only active contexts

refactor(shortcuts): rename saveFile to saveAllFiles for consistency

* fix: guard `childFragmentManager` access before recursion.

* ADFA-3350 | Refactor main screen actions to use ActionsRegistry (#1091)

* fix(main): refresh main screen actions on resume
refactor(shortcuts): route main screen actions through registry and update bindings

* refactor: migrate shortcut actions logging to SLF4J and improve error visibility

Add logs for missing action data, registry mismatch, and unresolved action IDs to avoid silent failures

* refactor: extract `.main` shortcut IDs into `ShortcutDefinitionIds`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants