Skip to content

feat(tools): restructure tool category pages to single-column full-width layout - #4

Merged
Bissbert merged 1 commit into
mainfrom
feature/gemmological-tools-expansion
Jan 28, 2026
Merged

Bissbert merged 1 commit into
mainfrom
feature/gemmological-tools-expansion

Conversation

@Bissbert

Copy link
Copy Markdown
Contributor

Summary

  • Replaces the 2-column accordion grid across all six tool category pages with a single-column, all-expanded full-width layout
  • Introduces ToolSection.tsx, a reusable layout primitive with a sticky colored-accent header
  • Restructures internal tool layouts (GemComparison, HardnessReference, FractureCleavageGuide, DichroscopeResults, TreatmentDetection) to take advantage of the wider column

Accent color mapping

Category Accent
Measurement emerald
Conversion blue
Optical purple
Lab rose
Identification amber
Advanced cyan

Layout details

  • GemComparison — pill selectors with a full-width comparison table
  • HardnessReference — Mohs scale and searchable lookup arranged side-by-side
  • FractureCleavageGuide — 4-column fracture grid + full-width cleavage table
  • DichroscopeResults — horizontal filter bar + 3-column gem card grid
  • TreatmentDetection — 4-column treatment-type grid + full-width detection table

Test plan

  • npm run build passes with zero errors
  • Each tool category page renders without visual regressions (measurement, conversion, optical, lab, identification, advanced)
  • ToolSection sticky headers scroll correctly on desktop and mobile viewports
  • All interactive tool controls (pill selectors, search inputs, filter bars) remain functional
  • Responsive behavior verified at 768 px, 1024 px, and 1440 px breakpoints

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jan 28, 2026 •

Copy link
Copy Markdown

Deploying gemmology-dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: a6f211f
Status:🚫  Build failed.

View logs

…dth layout

Replace the 2-column accordion grid with a single-column, all-expanded layout
across all six tool category pages. Each section now uses a sticky colored-accent
header via the new ToolSection layout primitive.

Layout changes by category:
- Measurement (emerald) and Conversion (blue) switch from CalculatorCard
  accordion to ToolSection wrappers
- Optical (purple): DichroscopeResults uses horizontal filter bar with a
  3-column gem card grid
- Lab (rose): adopts ToolSection container
- Identification (amber): GemComparison gets pill selectors with a full-width
  comparison table; HardnessReference arranges Mohs scale and searchable lookup
  side-by-side; FractureCleavageGuide uses a 4-column fracture grid and
  full-width cleavage table
- Advanced (cyan): TreatmentDetection uses a 4-column treatment-types grid
  with a full-width detection table

New primitive:
- src/components/ui/ToolSection.tsx — reusable section wrapper with configurable
  accent color and sticky header

Refs: feature/gemmological-tools-expansion
@Bissbert
Bissbert force-pushed the feature/gemmological-tools-expansion branch from 89017dc to a6f211f Compare January 28, 2026 04:22
@Bissbert
Bissbert merged commit 1e4e3c8 into main Jan 28, 2026
1 of 2 checks passed
@Bissbert
Bissbert deleted the feature/gemmological-tools-expansion branch January 28, 2026 04:22
Bissbert added a commit that referenced this pull request May 11, 2026
- QuestionNav: Add horizontal scroll with snap points on mobile, hide legend
- ExamTimer: Add responsive sizing (smaller padding/font on mobile), hide icon on small screens
- Calculator: Replace horizontal scroll tabs with dropdown select on mobile
Bissbert added a commit that referenced this pull request May 11, 2026
…dth layout (#4)

Replace the 2-column accordion grid with a single-column, all-expanded layout
across all six tool category pages. Each section now uses a sticky colored-accent
header via the new ToolSection layout primitive.

Layout changes by category:
- Measurement (emerald) and Conversion (blue) switch from CalculatorCard
  accordion to ToolSection wrappers
- Optical (purple): DichroscopeResults uses horizontal filter bar with a
  3-column gem card grid
- Lab (rose): adopts ToolSection container
- Identification (amber): GemComparison gets pill selectors with a full-width
  comparison table; HardnessReference arranges Mohs scale and searchable lookup
  side-by-side; FractureCleavageGuide uses a 4-column fracture grid and
  full-width cleavage table
- Advanced (cyan): TreatmentDetection uses a 4-column treatment-types grid
  with a full-width detection table

New primitive:
- src/components/ui/ToolSection.tsx — reusable section wrapper with configurable
  accent color and sticky header

Refs: feature/gemmological-tools-expansion
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.

1 participant