Skip to content

Add bucket deletion support in the OSCAR TUI by wiring the existing delete flow to Buckets view#76

Open
gmolto wants to merge 2 commits intodevelfrom
feat-tui-delete-buckets
Open

Add bucket deletion support in the OSCAR TUI by wiring the existing delete flow to Buckets view#76
gmolto wants to merge 2 commits intodevelfrom
feat-tui-delete-buckets

Conversation

@gmolto
Copy link
Member

@gmolto gmolto commented Feb 20, 2026

What Changed

  • Enabled deletion from Buckets view using the same confirmation flow already used for services.
  • Updated key handling so deletion works when:
    • Focus is on the main table.
    • Mode is either Services or Buckets.
  • Added Del as an alias to d for delete.
  • Updated TUI help text and legend to reflect service/bucket deletion behavior.

Key Binding

  • d (primary)
  • Del (alias)

Both now delete the selected item in the current table context:

  • Services view: selected service
  • Buckets view: selected bucket (DEL /system/buckets/{bucketName})

Files Updated

  • pkg/tui/app.go
  • pkg/tui/state.go

Validation

  • GOCACHE=/tmp/go-build GOMODCACHE=/tmp/go-mod go test ./pkg/tui passed.

Impact

  • No API changes.
  • No new deletion logic in storage layer; this PR wires existing bucket deletion functionality into TUI key handling and user
    guidance.

* Included support for oscar-cli cluster status (#67)

* Included support for /system/status

oscar-cli cluster status

* status update

* update readme

---------

Co-authored-by: SergioLangaritaBenitez <sergiolangaritabenitez@gmail.com>

* Include support for cluster status in the TUI (#68)

* Included support for /system/status

oscar-cli cluster status

* Included support for /system/status in the TUI

* Included support for cluster status in the tui

via oscar-cli interactive

---------

Co-authored-by: SergioLangaritaBenitez <sergiolangaritabenitez@gmail.com>

* Refactored TUI & Included Search Functionality (#70)

* Splitted TUI

Split the TUI into focused files so pkg/tui/app.go is now mostly the UI wiring/entrypoint while helpers live alongside it:

+ pkg/tui/state.go holds constants/enums and uiState/bucket object structs; formatters.go and table_helpers.go hold pure helpers.
+ View/controller logic now lives in services_view.go, buckets_view.go, and bucket_objects.go;
+ cross-cutting UI helpers went to dialogs.go, search.go, and auto_refresh.go.
+ app.go cleaned up accordingly, with redundant definitions removed and imports trimmed.

* Improved search functionality

+ Implemented support for search via "/" across Services, Buckets, Clusters and Details panels, including substrings.

* resolve conflict

* resolve conflict

---------

Co-authored-by: SergioLangaritaBenitez <sergiolangaritabenitez@gmail.com>

* Improved Log Management in the TUI (#71)

* Splitted TUI

Split the TUI into focused files so pkg/tui/app.go is now mostly the UI wiring/entrypoint while helpers live alongside it:

+ pkg/tui/state.go holds constants/enums and uiState/bucket object structs; formatters.go and table_helpers.go hold pure helpers.
+ View/controller logic now lives in services_view.go, buckets_view.go, and bucket_objects.go;
+ cross-cutting UI helpers went to dialogs.go, search.go, and auto_refresh.go.
+ app.go cleaned up accordingly, with redundant definitions removed and imports trimmed.

* Improved search functionality

+ Implemented support for search via "/" across Services, Buckets, Clusters and Details panels, including substrings.

* Improved log management in the TUI

---------

Co-authored-by: SergioLangaritaBenitez <sergiolangaritabenitez@gmail.com>

* fix invocation (#73)

* Allow to override bucket name to match service name (#72)

This is applied both for oscar-cli hub and oscar-cli apply

---------

Co-authored-by: Estíbaliz Parcero <5576714+esparig@users.noreply.github.com>
Co-authored-by: Germán Moltó <gmolto@dsic.upv.es>
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