EightfoldAI / octuple

The Octuple component library
MIT License
16 stars 45 forks source link

feat: configprovider: add support for gradient and individual component theme containers #783

Closed dkilgore-eightfold closed 4 months ago

dkilgore-eightfold commented 4 months ago

SUMMARY:

An example where a button was changed to ButtonVariant.Primary with gradient, theme="blueViolet" and configContextProps={{ noThemeContext: true }} in a local test. home

Storybook https://github.com/EightfoldAI/octuple/assets/99700808/9222e250-f487-4f2b-8dc3-6277397fefdd

JIRA TASK (Eightfold Employees Only):

ENG-78260 ENG-78250 ENG-77347 ENG-77346 ENG-76044 ENG-76043 ENG-76042

CHANGE TYPE:

TEST COVERAGE:

TEST PLAN:

Pull the PR branch and run yarn and yarn storybook. Verify the ConfigProvider, Accordion, Button, Carousel, CheckBox, Dialog, InfoBar, Link, LinkButton, MatchScore, Modal, Pagination, Panel, PersistentBar, Pill, Progress, RadioButton, TextArea, TextInput, SearchBar, Select, Slider, Snackbar, Stepper, Timeline, Tabs, TimePicker,DatePicker, and Upload stories behave as expected.

codesandbox-ci[bot] commented 4 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

codecov[bot] commented 4 months ago

Codecov Report

Attention: 177 lines in your changes are missing coverage. Please review.

Comparison is base (e828a69) 84.83% compared to head (dc1ec70) 84.37%.

Files Patch % Lines
src/components/PersistentBar/PersistentBar.tsx 34.28% 23 Missing :warning:
...omponents/ConfigProvider/Theming/styleGenerator.ts 62.50% 18 Missing :warning:
src/components/Panel/PanelHeader.tsx 0.00% 18 Missing :warning:
src/components/Upload/Cropper/Cropper.tsx 0.00% 15 Missing :warning:
src/components/Slider/Slider.tsx 83.72% 14 Missing :warning:
src/components/LinkButton/LinkButton.tsx 59.25% 11 Missing :warning:
src/components/Pagination/Pagination.tsx 84.21% 6 Missing and 3 partials :warning:
src/components/Select/Select.tsx 75.00% 6 Missing :warning:
src/components/Inputs/TextInput/TextInput.tsx 87.17% 5 Missing :warning:
src/components/Button/Button.tsx 66.66% 4 Missing :warning:
... and 32 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #783 +/- ## ========================================== - Coverage 84.83% 84.37% -0.47% ========================================== Files 999 1008 +9 Lines 19552 19866 +314 Branches 7302 7530 +228 ========================================== + Hits 16587 16762 +175 - Misses 2885 3022 +137 - Partials 80 82 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.