Skip to content

[refactor] Refactor file handling #3955

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2025

Conversation

christian-byrne
Copy link
Contributor

@christian-byrne christian-byrne commented May 21, 2025

Refactors file drop handling to use the supportedWorkflowFormats.ts constants as a source of truth. This makes extending file format support more maintainable by centralizing MIME types in a single location. Fixes #3651.

┆Issue is synchronized with this Notion page by Unito

@christian-byrne christian-byrne requested review from a team as code owners May 21, 2025 18:40
@christian-byrne christian-byrne changed the title [refactor] Use supportedWorkflowFormats constants for file handling [refactor] Refactor file handling May 21, 2025
@christian-byrne christian-byrne force-pushed the refactor/use-mime-type-constants branch from 5d8bd81 to ff36273 Compare May 30, 2025 04:36
@christian-byrne christian-byrne enabled auto-merge (squash) May 30, 2025 09:04
@christian-byrne christian-byrne disabled auto-merge May 30, 2025 09:05
@christian-byrne christian-byrne merged commit 30ee669 into main May 30, 2025
10 checks passed
@christian-byrne christian-byrne deleted the refactor/use-mime-type-constants branch May 30, 2025 09:05
christian-byrne added a commit that referenced this pull request May 30, 2025
Replace dynamic import with static import in handleFile method to eliminate race condition causing Playwright test flakiness.

The dynamic import introduced asynchronous behavior that created timing issues in tests expecting immediate file processing completion.

Fixes #3955 test flakiness
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.

[DevTask] Refactor file drop parsing logic
1 participant