Skip to content

fix: replace Switch with Checkbox for x-axis padding control#23784

Closed
owlas wants to merge 1 commit into
mainfrom
claude/stoic-goodall-Eo8WJ
Closed

fix: replace Switch with Checkbox for x-axis padding control#23784
owlas wants to merge 1 commit into
mainfrom
claude/stoic-goodall-Eo8WJ

Conversation

@owlas
Copy link
Copy Markdown
Collaborator

@owlas owlas commented Jun 2, 2026

Description:

Replaced the Switch component with Checkbox for the x-axis padding control in the chart configuration panel. Also updated the label from "Truncate x-axis" to "Extra padding" to better reflect the functionality.

This change improves the UI consistency by using the more appropriate Checkbox component for this binary toggle, and clarifies the control's purpose with a more descriptive label.

Changes:

  • Removed Switch import from @mantine/core
  • Replaced Switch component with Checkbox for x-axis offset control
  • Updated label text from "Truncate x-axis" to "Extra padding"
  • Removed unnecessary wrapper fragment around the control
  • Maintained all existing functionality and event handling

Test Plan:
No testing needed — this is a UI component replacement with no behavioral changes. The checkbox functions identically to the previous switch implementation.

https://claude.ai/code/session_0173GgERsTQdtMFYre1n85a2

The toggle pads/extends the numeric x-axis range rather than truncating
it, so the previous label was misleading. Also switch the control from a
Switch to a Checkbox to match the other axis options in this panel.
@owlas owlas force-pushed the claude/stoic-goodall-Eo8WJ branch from 8318d85 to 8109997 Compare June 2, 2026 14:11
@owlas owlas changed the title Replace Switch with Checkbox for x-axis padding control fix: replace Switch with Checkbox for x-axis padding control Jun 2, 2026
@owlas
Copy link
Copy Markdown
Collaborator Author

owlas commented Jun 2, 2026

waiting for preview env

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

🧪 Test Selection

✅ Tests that will run

Test Description
Preview Environment Deploys a preview environment for testing
Frontend E2E Tests Runs Cypress app tests

⏭️ Tests skipped (no relevant file changes detected)

Test How to trigger manually
Backend API Tests Add test-backend to PR description
Timezone Tests Add test-timezone to PR description
CLI Tests Add test-cli to PR description

Tip: Add test-all to your PR description to run all tests.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Your preview environment pr-23784 has been deployed.

Preview environment endpoints are available at:

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Preview Environment

🌐 URL: https://lightdash-preview-pr-23784.lightdash.okteto.dev

📋 Logs: View in GCP Console

🔧 SSH: ./scripts/okteto-ssh.sh 23784

@owlas owlas closed this Jun 8, 2026
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