Skip to content

Refactor/dialog export options many params - #35

Open
noorkcmu wants to merge 3 commits into
CMU-17313Q:mainfrom
noorkcmu:refactor/dialog-export-options-many-params
Open

Refactor/dialog export options many params#35
noorkcmu wants to merge 3 commits into
CMU-17313Q:mainfrom
noorkcmu:refactor/dialog-export-options-many-params

Conversation

@noorkcmu

@noorkcmu noorkcmu commented Sep 2, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #28

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Qlty flagged DialogExportOptions.show for having too many parameters (6). This PR groups the 5 default values into one object parameter, so the function is easier to call and less likely to have arguments mixed up by accident. Also updated the one place that calls it.

Also added a small fix to turbo.json so the new tests actually run in CI — they weren't wired up before.

How did you verify your code works?

I added 2 new tests that call DialogExportOptions.show, one for confirming and one for cancelling the dialog. I ran typecheck, lint, and the full test suite and everything passes. I also ran Qlty again on the file to confirm the flagged issue is gone and nothing new showed up.

Screenshots / recordings

Screenshot 2026-09-02 at 7 16 56 PM Screenshot 2026-09-02 at 6 53 43 PM Screenshot 2026-09-02 at 3 47 41 PM Screenshot 2026-09-02 at 3 47 24 PM

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@noorkcmu
noorkcmu force-pushed the refactor/dialog-export-options-many-params branch from 5c4d797 to ea32fe0 Compare September 2, 2026 16:08
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.

P1B: Refactor (packages/tui/src/ui/dialog-export-options.tsx:190): Function with many parameters (count = 6)

1 participant