Skip to content
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

Don't trigger console csv upload overlay if dragging text #344

Merged
merged 3 commits into from
Dec 14, 2021

Conversation

dsmmcken
Copy link
Contributor

@dsmmcken dsmmcken commented Dec 9, 2021

  • You can select text and drag it in a browser (kind == "string"), this shouldn't trigger the csv overlay
  • Fix Button component proptype error with "type" other than button requiring an onClick function ex. (csv overlay bar, type=submit)
  • Multiple file error should return, as filetype error can replace it

@dsmmcken dsmmcken self-assigned this Dec 9, 2021
@dsmmcken dsmmcken requested a review from mofojed December 9, 2021 21:17
@dsmmcken dsmmcken added the bug Something isn't working label Dec 9, 2021
@codecov
Copy link

codecov bot commented Dec 9, 2021

Codecov Report

Merging #344 (db6ee42) into main (b08ecf6) will increase coverage by 10.32%.
The diff coverage is 25.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##           main     #344       +/-   ##
=========================================
+ Coverage      0   10.32%   +10.32%     
=========================================
  Files         0        9        +9     
  Lines         0      901      +901     
  Branches      0      159      +159     
=========================================
+ Hits          0       93       +93     
- Misses        0      802      +802     
- Partials      0        6        +6     
Flag Coverage Δ
unit 10.32% <25.00%> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/console/src/Console.jsx 17.15% <0.00%> (ø)
packages/console/src/csv/CsvOverlay.jsx 5.50% <100.00%> (ø)
packages/console/src/ConsoleShortcuts.ts 100.00% <0.00%> (ø)
packages/console/src/ConsoleInput.jsx 4.52% <0.00%> (ø)
packages/console/src/csv/CsvInputBar.jsx 4.03% <0.00%> (ø)
packages/console/src/ConsoleStatusBar.jsx 4.54% <0.00%> (ø)
packages/console/src/common/ConsoleUtils.js 0.00% <0.00%> (ø)
...ges/console/src/console-history/ConsoleHistory.jsx 8.33% <0.00%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b08ecf6...db6ee42. Read the comment docs.

packages/components/src/Button.tsx Outdated Show resolved Hide resolved
@dsmmcken dsmmcken requested a review from mofojed December 10, 2021 16:07
- You can select text and drag it in a browser (kind == "string"), this shouldn't trigger the csv overlay
- Fix Button component proptype error with "type" other than button requiring an onClick function ex. (csv overlay bar, type=submit)
- Multiple file error should return, as filetype error can replace it
@dsmmcken dsmmcken force-pushed the dmckenzie_csvOverlay branch from 0f86d7e to db6ee42 Compare December 10, 2021 21:38
@dsmmcken dsmmcken requested a review from mattrunyon December 10, 2021 21:39
@dsmmcken
Copy link
Contributor Author

Uh, just trying to make both defaultProps and typescript to work together for the type field, and extend the default react button types for everything else.

@dsmmcken dsmmcken merged commit bd81bfc into main Dec 14, 2021
@dsmmcken dsmmcken deleted the dmckenzie_csvOverlay branch December 14, 2021 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants