Skip to content

feat(CSVColumnMapper): redesign column cards with design system tokens#48

Merged
wreiske merged 3 commits intomainfrom
feature/csv-column-mapper-updates
Feb 2, 2026
Merged

feat(CSVColumnMapper): redesign column cards with design system tokens#48
wreiske merged 3 commits intomainfrom
feature/csv-column-mapper-updates

Conversation

@garrity-miepub
Copy link
Copy Markdown
Contributor

  • Redesign column cards to match professional reference design
  • Add status icons: checkmark for mapped columns, warning for unmapped
  • Apply semantic border colors: success/30 for mapped, warning/30 for unmapped
  • Display sample data in monospace font within muted pill background
  • Use uppercase labels with tracking-wider for 'SAMPLE DATA' and 'MAP TO FIELD'
  • Integrate Select component from design system for field mapping dropdown
  • Add warning ring indicator on Select when column is unmapped
  • Replace Button component with simple text link for Ignore/Include action
  • Use conditional icons: + for Include Column, × for Ignore Column
  • Apply opacity-50 and neutral border for ignored/disabled cards
  • Configure Storybook controls with proper argTypes and default args
  • Apply design system CSS variables throughout for consistent theming
csv-column-mapper.mov

- Redesign column cards to match professional reference design
- Add status icons: checkmark for mapped columns, warning for unmapped
- Apply semantic border colors: success/30 for mapped, warning/30 for unmapped
- Display sample data in monospace font within muted pill background
- Use uppercase labels with tracking-wider for 'SAMPLE DATA' and 'MAP TO FIELD'
- Integrate Select component from design system for field mapping dropdown
- Add warning ring indicator on Select when column is unmapped
- Replace Button component with simple text link for Ignore/Include action
- Use conditional icons: + for Include Column, × for Ignore Column
- Apply opacity-50 and neutral border for ignored/disabled cards
- Configure Storybook controls with proper argTypes and default args
- Apply design system CSS variables throughout for consistent theming
Copilot AI review requested due to automatic review settings February 2, 2026 21:14
Copy link
Copy Markdown

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 redesigns the CSVColumnMapper component to use design system tokens and components for a more professional, consistent appearance.

Changes:

  • Replaced hardcoded colors with semantic design system tokens (e.g., bg-card, text-primary-foreground, border-success/30)
  • Integrated Button and Select components from the design system to replace native HTML elements
  • Added status icons (checkmark for mapped, warning for unmapped) and visual indicators to column cards
  • Enhanced Storybook configuration with proper argTypes and controls for importing and importProgress props

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/components/CSVColumnMapper/CSVColumnMapper.tsx Redesigned UI with design tokens, added status icons, integrated Button/Select components, improved accessibility with uppercase labels
src/components/CSVColumnMapper/CSVColumnMapper.stories.tsx Added argTypes configuration and wired importing/importProgress props through wrapper component

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

- Remove unused 'labels' parameter from CSVColumnCard component
- Remove unused label properties from CSVColumnCardProps interface
- Remove unused label properties (ignore, include, incomingSample, fieldType) from CSVColumnMapperLabels
- Replace hardcoded text-[10px] with text-xs for design system consistency

Addresses Copilot review feedback on PR #48
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Feb 2, 2026

Deploying ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2805ced
Status: ✅  Deploy successful!
Preview URL: https://7dd98dce.ui-6d0.pages.dev
Branch Preview URL: https://feature-csv-column-mapper-up.ui-6d0.pages.dev

View logs

@garrity-miepub garrity-miepub marked this pull request as ready for review February 2, 2026 21:30
Copilot AI review requested due to automatic review settings February 2, 2026 21:30
Copy link
Copy Markdown

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

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


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

Copy link
Copy Markdown
Contributor Author

@garrity-miepub garrity-miepub left a comment

Choose a reason for hiding this comment

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

Addressed Copilot's feedback on uppercase + tracking-wider:

These classes are not redundant - they serve different purposes:

  • uppercase applies text-transform: uppercase (converts text to all caps)
  • tracking-wider applies letter-spacing: 0.05em (adds spacing between letters)

Using both together is a common design pattern for stylized section labels, making text more readable when capitalized. Both are intentional.

@wreiske
Copy link
Copy Markdown
Member

wreiske commented Feb 2, 2026

Screenshot 2026-02-02 at 2 33 01 PM

In your example, the dropdown gets cut off by the card around it. This shouldn't be the case & needs resolved before merging.

- Remove overflow-hidden from card container to allow Select dropdown
  to extend beyond card boundaries without being clipped
- Replace hardcoded text-white on status icons with design system tokens:
  - Success checkmark: use text-success-foreground
  - Warning icon: use text-warning-foreground
  - Warning icon inner circle: use fill-warning class
- Ensures proper color adaptation when switching between light/dark modes
  and across different brand themes
@garrity-miepub
Copy link
Copy Markdown
Contributor Author

fixed dropdown

column-mapper-2.mov

@wreiske wreiske merged commit d4bde6e into main Feb 2, 2026
1 of 9 checks passed
@wreiske wreiske deleted the feature/csv-column-mapper-updates branch February 2, 2026 22:05
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