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

UX-224 Support composable ActionList components #584

Merged
merged 5 commits into from
Aug 13, 2020
Merged

UX-224 Support composable ActionList components #584

merged 5 commits into from
Aug 13, 2020

Conversation

jonambas
Copy link
Contributor

@jonambas jonambas commented Aug 11, 2020

What Changed

  • Adds ActionList.Action and ActionList.Section components
  • Updates components that use ActionList

How To Test or Verify

PR Checklist

  • Add the correct type label
  • Pull request approval from #uxfe or #design-guild

@jonambas jonambas changed the title UX-224 Support composable Actionlist components WIP Aug 11, 2020
@codecov
Copy link

codecov bot commented Aug 11, 2020

Codecov Report

Merging #584 into rc/4.1.0 will increase coverage by 0.01%.
The diff coverage is 92.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##           rc/4.1.0     #584      +/-   ##
============================================
+ Coverage     93.62%   93.64%   +0.01%     
============================================
  Files           135      138       +3     
  Lines          1757     1777      +20     
============================================
+ Hits           1645     1664      +19     
- Misses          112      113       +1     
Impacted Files Coverage Δ
packages/matchbox/src/components/Tabs/Tabs.js 86.11% <0.00%> (-2.47%) ⬇️
...ages/matchbox/src/components/ActionList/Section.js 90.90% <90.90%> (ø)
...kages/matchbox/src/components/ActionList/Action.js 100.00% <100.00%> (ø)
...s/matchbox/src/components/ActionList/ActionList.js 100.00% <100.00%> (+4.54%) ⬆️
...s/matchbox/src/components/ComboBox/ComboBoxMenu.js 100.00% <100.00%> (ø)
packages/matchbox/src/components/Page/Page.js 90.00% <100.00%> (+0.34%) ⬆️
packages/matchbox/src/components/Modal/Modal.js 96.15% <0.00%> (ø)
packages/matchbox/src/components/Modal/Footer.js 100.00% <0.00%> (ø)
packages/matchbox/src/components/Banner/Banner.js 100.00% <0.00%> (ø)
... and 2 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 a89821c...27651c5. Read the comment docs.

@jonambas jonambas marked this pull request as ready for review August 12, 2020 14:48
@jonambas jonambas changed the title WIP UX-224 Support composable ActionList components Aug 12, 2020
@jonambas jonambas added this to the Matchbox 4.1 milestone Aug 12, 2020
Copy link
Contributor

@logansparlin logansparlin left a comment

Choose a reason for hiding this comment

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

Looks good! Just a couple little updates that could be made to the old code if you want

<CheckBox size={20} />
</Box>
)}
{helpText && (
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we use <HelpText /> here?

as={is === 'button' ? 'button' : null}
type={is === 'button' ? 'button' : null}
isType={is}
{...(is === 'checkbox'
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a little hard to read, but I get what it's doing so not a big deal

Copy link
Contributor

@logansparlin logansparlin left a comment

Choose a reason for hiding this comment

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

Looks good!

</Box>
);
}, [content, selected, helpText]);

const isAttributes =
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, this is much easier to read

@jonambas jonambas merged commit 0278e6d into rc/4.1.0 Aug 13, 2020
@jonambas jonambas deleted the UX-224 branch August 13, 2020 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants