Skip to content

Made schedule actions dynamic#3241

Merged
Corepex merged 7 commits into1.xfrom
3136-scheduler-wrong-or-incomplete-actions
Mar 30, 2026
Merged

Made schedule actions dynamic#3241
Corepex merged 7 commits into1.xfrom
3136-scheduler-wrong-or-incomplete-actions

Conversation

@Corepex
Copy link
Copy Markdown
Contributor

@Corepex Corepex commented Mar 27, 2026

Changes in this pull request

Resolves #3136

Additional info

This pull request updates the actions available in the schedule grid cell to be dynamically fetched based on the element type, and also updates translation keys to provide more flexible and accurate action labels. The most important changes are grouped below.

Dynamic Actions in Schedule Grid Cell:

  • Updated ActionsCell in actions-cell.tsx to fetch available actions dynamically using useScheduleListActionsForElementTypeQuery, replacing the previous hardcoded list of actions. This makes the available actions context-aware and extensible.
  • Added error handling in ActionsCell to track API errors using trackError and ApiError for better reliability and debugging.

Translation and Label Improvements:

  • Changed translation keys in studio.en.yaml from schedule.version.* to schedule.action.*, and updated/added action labels (e.g., "Delete", "Publish", "Unpublish", "Publish version") to better match the new dynamic actions and improve clarity.

@Corepex Corepex self-assigned this Mar 27, 2026
@Corepex Corepex requested a review from xIrusux March 27, 2026 09:53
@Corepex
Copy link
Copy Markdown
Contributor Author

Corepex commented Mar 27, 2026

@markus-moser please double check 6eab1ac to verify that this is OK.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@xIrusux xIrusux left a comment

Choose a reason for hiding this comment

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

lgtm
:)

@Corepex Corepex merged commit 47c92c8 into 1.x Mar 30, 2026
1 check passed
@Corepex Corepex deleted the 3136-scheduler-wrong-or-incomplete-actions branch March 30, 2026 13:25
@github-actions github-actions bot locked and limited conversation to collaborators Mar 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Scheduler] Wrong or incomplete actions

2 participants