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

Buttons refactoring #3300

Merged
merged 22 commits into from
Feb 2, 2023
Merged

Buttons refactoring #3300

merged 22 commits into from
Feb 2, 2023

Conversation

fiskus
Copy link
Member

@fiskus fiskus commented Jan 26, 2023

Changed:

  • Buttons "Create package from folder" and "Push to bucket" have icon in wide layouts too. I think it would be consistent (though chosen icon is not optimal)
  • Some small flex/margins changes like moving buttons to the next line on small screens (flexWrap: 'wrap', see screenshot)

Refactored:

  • Added components/Buttons/ButtonIconized, and replace FileView.AdaptiveLayoutButton
  • Refactor and unify margins for these buttons
  • Remove components/ButtonIcon. It was used only once, and it's trivial
    Screenshot from 2023-01-30 18-27-08
  • Changelog entry (skip if change is not significant to end users, e.g. docs only)

@codecov
Copy link

codecov bot commented Jan 26, 2023

Codecov Report

Merging #3300 (daae1bf) into master (c153b39) will increase coverage by 0.03%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #3300      +/-   ##
==========================================
+ Coverage   35.15%   35.18%   +0.03%     
==========================================
  Files         676      674       -2     
  Lines       29358    29331      -27     
  Branches     4341     4336       -5     
==========================================
  Hits        10321    10321              
+ Misses      17861    17835      -26     
+ Partials     1176     1175       -1     
Flag Coverage Δ
api-python 90.79% <ø> (ø)
catalog 8.83% <0.00%> (+0.01%) ⬆️
lambda 86.05% <ø> (ø)

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

Impacted Files Coverage Δ
catalog/app/components/ButtonIconized.tsx 0.00% <0.00%> (ø)
catalog/app/components/FileEditor/Controls.tsx 0.00% <0.00%> (ø)
catalog/app/components/Preview/Menu.tsx 0.00% <ø> (ø)
catalog/app/components/Preview/index.js 0.00% <ø> (ø)
...alog/app/components/SearchResults/SearchResults.js 0.00% <0.00%> (ø)
...g/app/components/SelectDropdown/SelectDropdown.tsx 0.00% <0.00%> (ø)
catalog/app/containers/Bucket/Dir.tsx 0.00% <0.00%> (ø)
catalog/app/containers/Bucket/Download.tsx 0.00% <0.00%> (ø)
catalog/app/containers/Bucket/File.js 0.00% <0.00%> (ø)
catalog/app/containers/Bucket/FileView.js 0.00% <0.00%> (ø)
... and 4 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@fiskus fiskus marked this pull request as ready for review January 30, 2023 16:28
@fiskus fiskus requested a review from nl0 January 30, 2023 17:34
nl0
nl0 previously approved these changes Feb 1, 2023
Copy link
Member

@nl0 nl0 left a comment

Choose a reason for hiding this comment

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

looks ok, tho i'm a little reluctant about adding a whole new namespace (components/Button) for only one export. to me, components/ButtonIconized makes more sense at the moment, tho this whole arguments smells of bike-shedding, so whatever

@fiskus
Copy link
Member Author

fiskus commented Feb 1, 2023

Hmm..., Ok, I'll rename it to ButtonIconized, and move to Buttons again only when there will be one more button reused across app

@nl0
Copy link
Member

nl0 commented Feb 1, 2023

Hmm..., Ok, I'll rename it to ButtonIconized, and move to Buttons again only when there will be one more button reused across app

As i said, it's not a requirement and you can keep it as is if you feel like it would be better in perspective

@fiskus
Copy link
Member Author

fiskus commented Feb 1, 2023

I mean, I agree, namespace Buttons will be reasonable when it contains at least two buttons

@fiskus fiskus requested a review from nl0 February 2, 2023 16:41
@fiskus fiskus merged commit d3c490b into master Feb 2, 2023
@fiskus fiskus deleted the buttons-refactoring branch February 2, 2023 16:59
nl0 added a commit that referenced this pull request Feb 6, 2023
* master:
  Cleaner syntax for pip install (add single quotes) (#3283)
  Prettify `AwsMarketplace/Features.tsx` and everything (#3319)
  Buttons refactoring (#3300)
  Landing for AWS Marketplace (#3251)
  Fix error message: `quilt login` => `quilt3 login` (#3316)
  Use code authorization flow instead of ID tokens. (#3296)
akarve pushed a commit that referenced this pull request Feb 11, 2023
* Added icon to buttons "Create package from folder" and "Push to bucket" in desktop layout
* Added components/Buttons/ButtonIconized, and replace FileView.AdaptiveLayoutButton
* Removed components/ButtonIcon
* Fix and unify margins
robnewman pushed a commit that referenced this pull request Apr 6, 2023
* Added icon to buttons "Create package from folder" and "Push to bucket" in desktop layout
* Added components/Buttons/ButtonIconized, and replace FileView.AdaptiveLayoutButton
* Removed components/ButtonIcon
* Fix and unify margins
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.

2 participants