Skip to content

Remove explorer table column expansion#15

Merged
koianaoki merged 2 commits into
codex/fix-filter-issue-in-tree-viewfrom
codex/remove-column-list-display-on-enter
May 20, 2026
Merged

Remove explorer table column expansion#15
koianaoki merged 2 commits into
codex/fix-filter-issue-in-tree-viewfrom
codex/remove-column-list-display-on-enter

Conversation

@koianaoki
Copy link
Copy Markdown
Owner

Motivation

  • Stop the Explorer from expanding table/view nodes to show column lists when pressing Enter or expanding a table; the Tables view should no longer auto-load or show columns in the tree.
  • Make restored/expanded-state loading only apply to folder nodes (e.g., Tables, Views) to avoid reloading per-table column children.

Description

  • Removed the table/view branch in the tree expansion handler so table/view nodes no longer trigger load_columns_async from sqlit/domains/explorer/ui/mixins/tree.py.
  • Restricted the expanded-node auto-load logic in sqlit/domains/explorer/ui/tree/loaders.py to only consider folder nodes (changed _should_load_expanded_node to require kind == "folder").
  • Rendered table/view nodes as non-expandable by setting child.allow_expand = False in sqlit/domains/explorer/ui/tree/schema_render.py so they do not appear expandable in the UI.
  • Updated unit/ui/integration expectations to reflect the new behavior by changing tests that previously expected column-loading on table expansion to assert no expansion/load: tests/ui/explorer/test_tree_expansion.py, tests/ui/test_tree_schema_grouping.py, tests/ui/explorer/test_refresh_expanded_loads.py, tests/ui/explorer/test_markup_escaping.py, and tests/integration/test_stale_connection_reconnect.py.

Testing

  • Compiled modified modules with python -m compileall -q for the changed files and compilation succeeded.
  • Ran git diff --check to validate no whitespace/diff issues and it returned clean results.
  • Attempted to run a subset of pytest UI tests (tests/ui/explorer/... etc.), but test execution was blocked by missing dependency: ModuleNotFoundError: No module named 'textual' so the UI tests could not be executed in this environment.

Codex Task

@koianaoki
Copy link
Copy Markdown
Owner Author

@codex 日本語でレビュー

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e4694e2c68

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

child.allow_expand = True
if expansion_state.get_node_path(host, child) in expanded_paths:
child.expand()
child.allow_expand = False
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge テーブル選択時の Enter 表示も更新する

この変更でテーブル/ビューが allow_expand=False になると、Textual の toggle_node は何もしなくなりますが、TreeOnTableState はまだフッターに EnterColumns として表示しています。そのためテーブル/ビューにフォーカスしたユーザーには、実際には動作しない「Enter でカラム表示」が案内されます。show_table_columns へ案内を差し替えるか、Enter の表示を削除してください。

Useful? React with 👍 / 👎.

@koianaoki
Copy link
Copy Markdown
Owner Author

@codex 指摘が治ったか確認

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@koianaoki koianaoki merged commit b378d10 into codex/fix-filter-issue-in-tree-view May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant