Skip to content

feat: improve empty-state UX and add canvases delete command#3863

Merged
forestileao merged 5 commits intosuperplanehq:mainfrom
Vukotije:feat/improve-empty-state-ux-and-add-a-canvases-delete-command
Apr 1, 2026
Merged

feat: improve empty-state UX and add canvases delete command#3863
forestileao merged 5 commits intosuperplanehq:mainfrom
Vukotije:feat/improve-empty-state-ux-and-add-a-canvases-delete-command

Conversation

@Vukotije
Copy link
Copy Markdown
Collaborator

@Vukotije Vukotije commented Mar 31, 2026

Closes #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.
image

Add canvases delete <name-or-id> subcommand

image

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>
@superplanehq-integration
Copy link
Copy Markdown

👋 Commands for maintainers:

  • /sp start - Start an ephemeral machine (takes ~30s)
  • /sp stop - Stop a running machine (auto-executed on pr close)

@Vukotije Vukotije changed the title feat: improve empty-state UX and add canvases delete command feat: improve empty-state UX and add canvases delete command Mar 31, 2026
@forestileao forestileao merged commit 807a98c into superplanehq:main Apr 1, 2026
5 checks passed
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>
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.

CLI: improve empty-state UX and add a canvases delete command

2 participants