Skip to content

Add card-only mode to TableBuilder#106

Merged
SimonBarrettACT merged 1 commit intomainfrom
feature/issue-105-card-only-mode
Mar 6, 2026
Merged

Add card-only mode to TableBuilder#106
SimonBarrettACT merged 1 commit intomainfrom
feature/issue-105-card-only-mode

Conversation

@SimonBarrettACT
Copy link
Member

Summary

  • Adds isCardOnly() method to WithCardView trait, defaulting to false
  • When true, defaults $viewMode to 'cards' on mount and hides the view toggle button
  • Applied to both table.blade.php and query-table.blade.php views

Closes #105

Test plan

  • Verify existing card view toggle still works when isCardOnly() is not overridden
  • Override isCardOnly() to return true and confirm cards render without toggle
  • Confirm QueryBuilder card view toggle is also hidden when card-only mode is active

🤖 Generated with Claude Code

Closes #105

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@SimonBarrettACT SimonBarrettACT merged commit 413e92e into main Mar 6, 2026
2 of 10 checks passed
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.

Add card-only mode to TableBuilder

1 participant