Skip to content

Add TUI table overrides for 5 high-traffic list commands#4732

Open
simonfaltum wants to merge 5 commits intosimonfaltum/list-tui-overridesfrom
simonfaltum/list-tui-overrides-2
Open

Add TUI table overrides for 5 high-traffic list commands#4732
simonfaltum wants to merge 5 commits intosimonfaltum/list-tui-overridesfrom
simonfaltum/list-tui-overrides-2

Conversation

@simonfaltum
Copy link
Member

@simonfaltum simonfaltum commented Mar 13, 2026

Why

PR #4731 added curated TUI table overrides for 15 list commands. This follow-up covers 5 additional commands that are among the most frequently used in the CLI, but were missing curated columns.

Changes

Before: these 5 commands used either generic text templates (secrets, cluster-policies) or raw JSON output (lakeview, pipeline events) with no curated TUI table columns.

Now: all 5 register curated TableConfig overrides so they show useful columns in the interactive TUI. Commands that had no text template override (lakeview list, pipelines list-pipeline-events) also get template annotations for the non-interactive fallback.

This PR stacks on #4731. It only adds per-command overrides, no engine changes.

Test plan

  • go build ./...
  • make checks passes
  • make lintfull passes (0 issues)
  • Manual smoke test: verify curated columns for secrets list-scopes, lakeview list, pipelines list-pipeline-events

@eng-dev-ecosystem-bot
Copy link
Collaborator

eng-dev-ecosystem-bot commented Mar 13, 2026

Commit: 9360cf6

Run: 23070528662

Env ✅​pass 🙈​skip Time
✅​ aws linux 73 14 0:38
✅​ aws windows 73 14 0:28
✅​ aws-ucws linux 76 11 0:43
✅​ aws-ucws windows 76 11 0:42
✅​ azure linux 72 14 0:36
✅​ azure windows 72 14 1:01
✅​ azure-ucws linux 75 11 0:35
✅​ azure-ucws windows 75 11 0:39
✅​ gcp linux 73 14 0:32
✅​ gcp windows 73 14 0:43

@simonfaltum simonfaltum marked this pull request as ready for review March 13, 2026 10:33
Copy link
Contributor

@shreyas-goenka shreyas-goenka left a comment

Choose a reason for hiding this comment

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

Note: This review was posted by Claude (AI assistant). Shreyas will do a separate, more thorough review pass.

Priority: LOW — Clean mechanical PR

This is a straightforward PR that adds TUI table overrides for 5 commands. No bugs or correctness issues found.

Minor Nits

  • Unused listReq variables: Several overrides declare listReq (e.g., listReq := &catalog.ListCatalogsRequest{}) that is never used after flag binding. Consider using _ or removing if unneeded.
  • Consistency: The pattern matches the existing override style in the codebase, which is good.

What looks good

  • Clean, consistent pattern across all 5 overrides
  • Correct use of tableview.RegisterConfig for each command
  • Proper column selection for each resource type

No blocking issues.

Several list override functions declared a named request parameter
(e.g. listReq) that was never used after flag binding. Replace these
with blank identifiers to satisfy go vet and make intent clearer.

The parameter is kept named in clusters, jobs, pipelines, and
workspace overrides where it is actively used for flag binding
or search closures.
@simonfaltum simonfaltum requested a review from a team as a code owner March 13, 2026 14:47
Previously, RenderIterator and RunPaginated only returned the error from
tea.Program.Run(), ignoring any fetch error stored in the model. An API
error mid-stream would display an error screen in the TUI but the command
would still exit 0.

Now both functions inspect the final model via the new Err() accessor and
return the fetch error if set. Also documents the destructive MaxWidth
truncation behavior on ColumnDef and renderContent.
…ui-overrides-2

# Conflicts:
#	libs/cmdio/render.go
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.

3 participants