feat: improve empty-state UX and add canvases delete command#3863
Merged
forestileao merged 5 commits intosuperplanehq:mainfrom Apr 1, 2026
Conversation
This update introduces user-friendly messages for scenarios where no results are found across several CLI commands, enhancing the user experience. The following commands have been updated: - `change_requests`: Displays "No change requests found." - `canvases`: Displays "No canvases found." - `event_executions`: Displays "No executions found." - `events`: Displays "No events found." - `integration_resources`: Displays "No integration resources found." - `integrations`: Displays "No integrations found." - `queue_items`: Displays "No queue items found." - `secrets`: Displays "No secrets found." These messages provide clear feedback to users when there are no items to display, improving the overall usability of the CLI. Signed-off-by: Vukotije <vukanradojevicc@gmail.com>
This commit introduces the `delete` command for canvases in the CLI, allowing users to delete a canvas by name or ID. It includes the following changes: - Added `delete.go` to define the `deleteCommand` struct and its execution logic. - Implemented unit tests in `delete_test.go` to verify the command's functionality, including successful deletion, JSON output, and error handling for server issues. - Updated `root.go` to register the new `delete` command in the CLI. These enhancements improve the CLI's capabilities for managing canvases effectively. Signed-off-by: Vukotije <vukanradojevicc@gmail.com>
|
👋 Commands for maintainers:
|
…es-delete-command
…es-delete-command
forestileao
approved these changes
Mar 31, 2026
…es-delete-command
harxhist
pushed a commit
to harxhist/superplane
that referenced
this pull request
Apr 4, 2026
…anehq#3863) Closes superplanehq#3639 ## Summary Empty list commands now print clear messages instead of bare table headers | Command | Message | | :--- | :--- | | secrets list | No secrets found. | | queue list | No queue items found. | | canvases list | No canvases found. | | events list (node) | No events found. | | events list (canvas) | No events found. | | executions list | No executions found. | | integrations list | No integrations found. | | integrations list-resources | No integration resources found. | | canvases change-requests list | No change requests found. | | events list-executions | No executions found. | <img width="487" height="36" alt="image" src="https://github.com/user-attachments/assets/2cc82036-7bc6-4eaa-a0fb-c26387fcfde4" /> --- Add `canvases delete <name-or-id>` subcommand <img width="804" height="41" alt="image" src="https://github.com/user-attachments/assets/3f634a44-3746-45bc-a234-154482a5b66c" /> --------- Signed-off-by: Vukotije <vukanradojevicc@gmail.com> Co-authored-by: Pedro Leão <60622592+forestileao@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3639
Summary
Empty list commands now print clear messages instead of bare table headers
Add
canvases delete <name-or-id>subcommand