Skip to content

feat(csv-transformer): API-sourced worker status, global theme fixes, and CSV UI polish#1066

Merged
ct3685 merged 5 commits into
stagingfrom
ct/theme-updates-remove-cronEnabled-prop-and-streamline-CsvTransformerClient-component
May 5, 2026
Merged

feat(csv-transformer): API-sourced worker status, global theme fixes, and CSV UI polish#1066
ct3685 merged 5 commits into
stagingfrom
ct/theme-updates-remove-cronEnabled-prop-and-streamline-CsvTransformerClient-component

Conversation

@ct3685
Copy link
Copy Markdown

@ct3685 ct3685 commented May 5, 2026

Summary

CSV Transformer — Worker Status via API

  • Added GET /api/v1/csv-parser/worker-status endpoint on the Flowise server that exposes whether ENABLE_CSV_RUN_CRON is enabled
  • Introduced packages/server/src/utils/isCsvRunCronEnabled.ts as single source of truth for the flag (used by both cron registration and the new endpoint)
  • CsvTransformer.Client.tsx now fetches worker status from the API at runtime — the web app no longer needs ENABLE_CSV_RUN_CRON in its environment variables
  • Removed cronEnabled prop from CsvTransformerClient and page.tsx; banner state is now loading | enabled | disabled | error driven by the live API response

Global Theme Fixes (muiOverrides.ts)

  • Fixed MuiChip: replaced blanket glassSubtle spread (invisible text in both modes) with solid, mode-aware surface + explicit text.primary label; scoped to :not([class*="MuiChip-color"]) and :not(.MuiChip-colorDefault) so status chips keep MUI palette colors
  • Fixed MuiButton.contained dark mode: was glassPrimary = rgba(0,0,0,0.6) (near-invisible); now solid #2196f3 with proper hover
  • Fixed MuiPaper, MuiDialog: replaced glassSecondary with solid surfaces + explicit text.primary
  • Fixed MuiMenu/MuiMenuItem: solid backgrounds + action.hover hover (was glassHover = white-on-white in light mode)
  • Fixed MuiButton.root: removed glassSubtle spread (was adding backdropFilter: blur to every button)
  • Fixed MuiTabs.root: removed glassSubtle (was adding blur + near-white background)
  • Fixed MuiAccordion, MuiAlert: replaced glass spreads with solid surfaces + explicit text colors
  • Fixed MuiBackdrop: removed blur(8px) that was blurring the full page on every dropdown/select

CSV Transformer UI Polish

  • ProcessCsv.tsx: column selection chips now use solid #2196f3 for selected / visible mode-aware grey for unselected (via sx theme callback); no longer relies on palette.primary.main
  • ProcessCsv.tsx: AI Processor Select uses MenuProps to suppress full-page backdrop blur; added "Create new processor…" option that opens CSV marketplace in a new tab
  • ProcessCsv.tsx: all navigation buttons (Back, Cancel, Next, Process and Download) use consistent variant="outlined" style
  • Overview sidebar step titles: replaced color="primary" (invisible in dark mode) with color="text.primary" / color="text.secondary"
  • ProcessingHistory.tsx: DataGrid replaced hardcoded color: 'white' with text.primary / text.secondary palette tokens
  • parseCsv.ts: strip BOM/zero-width chars from headers; deduplicate column names; export formatCsvHeaderForUi helper
  • Fixed HTML entity literals (', ", ') inside JS string literals in ProcessCsv.tsx, jlinc-partnership.tsx, webinar-thank-you.tsx

Test Plan

  • CSV Transformer: upload CSV, verify all column chips visible and togglable in both light and dark mode
  • CSV Transformer: verify "Create new processor…" opens marketplace in new tab
  • CSV Transformer: verify worker status banner shows correct state without ENABLE_CSV_RUN_CRON on the web env
  • Processing History: verify table text readable in light and dark mode
  • Spot-check chips, buttons, menus, alerts, dialogs in light and dark mode across the app
  • Confirm flowise server build passes (pnpm --filter flowise build)

…rClient and related components

- Simplified CsvTransformerClient by removing the cronEnabled prop, which is no longer needed.
- Updated the Page component to reflect this change, ensuring it no longer passes the cronEnabled prop.
- Enhanced user experience by directly managing worker status within the CsvTransformer component, providing real-time feedback on background processing status.

This refactor streamlines the component's interface and improves maintainability.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
answerai-docs Building Building Preview May 5, 2026 10:08pm
the-answerai Building Building Preview May 5, 2026 10:08pm

Request Review

…teraction

- Removed redundant color and variant props from the CsvTransformer component to streamline the code.
- Introduced custom styling for MuiChip components, ensuring better visual feedback on selection states.
- Updated hover and active states for chips to enhance user experience and maintain consistency across light and dark modes.

This refactor improves the overall maintainability of the component while enhancing the user interface.
- Updated MuiChip component styles to provide better visual feedback across light and dark modes.
- Adjusted background and border colors for various states to ensure consistency and improved user interaction.
- Refined typography color settings for better readability based on file presence.

This refactor enhances the overall user experience and maintains a cohesive design across the application.
@ct3685 ct3685 changed the title TBD feat(csv-transformer): API-sourced worker status, global theme fixes, and CSV UI polish May 5, 2026
…rast

- Updated styling for filled colored chips to ensure labels remain white for contrast.
- Clarified comments to specify that outlined colored chips will use the palette color for text, avoiding unnecessary overrides.

This refactor enhances the visual consistency and accessibility of the MuiChip component across different color modes.
…and-streamline-CsvTransformerClient-component
@ct3685 ct3685 merged commit 1a2dd33 into staging May 5, 2026
6 of 8 checks passed
@ct3685 ct3685 deleted the ct/theme-updates-remove-cronEnabled-prop-and-streamline-CsvTransformerClient-component branch May 5, 2026 23:03
ct3685 added a commit that referenced this pull request May 5, 2026
## 🚀 Release: Staging to Production

**Release Date:** 2026-05-05

### Changes in this release

- feat(csv-transformer): API-sourced worker status, global theme fixes,
and CSV UI polish (#1066) (1a2dd33)
- chore(llmchain): drop noisy *****FINAL RESULT***** console output
(#1065) (1154e74)
- fix(credentials): resolve case-mismatched credential lookups returning
500 (#1063) (e2db107)

---
*This PR is automatically created/updated when commits are pushed to
staging.*
*Merging this PR will trigger the release workflow to create a new
GitHub release.*

---------

Co-authored-by: Cameron Taylor <50385537+ct3685@users.noreply.github.com>
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