Skip to content

Comments

Styling Fixes#155

Merged
ascibisz merged 5 commits intomainfrom
fix/input-styling
Nov 14, 2025
Merged

Styling Fixes#155
ascibisz merged 5 commits intomainfrom
fix/input-styling

Conversation

@ascibisz
Copy link
Contributor

@ascibisz ascibisz commented Nov 13, 2025

Problem

There were a few things Thao had asked for that I hadn't gotten around to making tickets for because they were so small. One step towards getting closer to the figma doc

I did check in with Thao and she has approved this set of changes.

Solution

  • Moved the units (which currently only for radius) from after the slider to the label
  • Added small labels under the slider indicating the min and max values, as well as "weak" and "strong" for the decay length slider
  • Changed the editable fields tab label from "Edit" to "Editable Fields"
  • Some padding / margins changes, based on feedback from Thao

@ascibisz ascibisz changed the base branch from main to bug/radii-rounding November 13, 2025 00:41
@github-actions
Copy link

github-actions bot commented Nov 13, 2025

PR Preview Action v1.6.2
Preview removed because the pull request was closed.
2025-11-14 01:32 UTC

@github-actions
Copy link

github-actions bot commented Nov 13, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 20% 367 / 1835
🔵 Statements 20% 367 / 1835
🔵 Functions 40% 24 / 60
🔵 Branches 71.05% 81 / 114
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/components/GradientInput/index.tsx 0% 0% 0% 0% 1, 7-9, 16, 18-22, 24-28, 30, 32-40, 42-46, 48-51, 53-96, 98, 100, 102
src/components/InputSwitch/index.tsx 0% 0% 0% 0% 1-2, 9-11, 27-28, 30-33, 37, 40-42, 44-55, 58, 61-63, 65-68, 70-74, 76-83, 85-122, 124, 126-144, 146, 148-155, 157, 159, 161-173, 175-177, 179
src/components/PackingInput/index.tsx 0% 0% 0% 0% 1-2, 12-16, 26-30, 32-35, 37-40, 43-45, 47-49, 51, 54-56, 58-68, 70-71, 73-80, 82, 84, 86
Generated in workflow #172

@ascibisz ascibisz marked this pull request as ready for review November 13, 2025 18:48
@ascibisz ascibisz requested review from Copilot, interim17, meganrm and rugeli and removed request for interim17 and meganrm November 13, 2025 18:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements several UI/UX improvements to align the interface more closely with the Figma design specifications. The changes focus on enhancing the visual clarity and usability of form inputs and sliders.

Key Changes:

  • Moved units from after sliders to their labels for better visual organization
  • Added min/max value labels below sliders, with descriptive "weak"/"strong" labels for the decay length slider
  • Updated tab labeling from "Edit" to "Editable fields" for clarity

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/test/test-files/one_sphere.json Updated test data bounding box coordinates and sphere radius to reflect new test values
src/test/recipeLoader.test.ts Updated test assertions to match new bounding box coordinates and radius values
src/components/RecipeForm/style.css Removed padding from recipe form container
src/components/PackingInput/index.tsx Changed tab label from "Edit" to "Editable fields"
src/components/InputSwitch/style.css Added styles for slider wrapper, min/max labels, and adjusted alignment and spacing
src/components/InputSwitch/index.tsx Restructured slider markup to include min/max labels and moved units to the label area
src/components/GradientInput/style.css Added styles for strength input container
src/components/GradientInput/index.tsx Added min/max labels with "weak"/"strong" descriptors for the gradient strength slider
src/App.css Reduced footer padding from 10px to 5px

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<small className="slider-label-left">
{gradientStrengthData.min}<br /> weak
</small>
<small className="slider-label-right" style={{ marginRight: "5px" }}>
Copy link

Copilot AI Nov 13, 2025

Choose a reason for hiding this comment

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

Inline styles should be avoided when possible. Consider moving this marginRight style to the CSS class definition for consistency with the rest of the codebase.

Copilot uses AI. Check for mistakes.
Base automatically changed from bug/radii-rounding to main November 13, 2025 18:59
Copy link
Contributor

@rugeli rugeli left a comment

Choose a reason for hiding this comment

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

tested things around and everything looks good on my end! (mainly speak from the visual/behavior side)

@ascibisz ascibisz merged commit c5bf979 into main Nov 14, 2025
2 checks passed
@ascibisz ascibisz deleted the fix/input-styling branch November 14, 2025 01:32
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