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

[UILISTS-91] Create typings for ui-lists components usage #47

Merged
merged 22 commits into from
Jan 5, 2024

Conversation

ncovercash
Copy link
Member

@ncovercash ncovercash commented Jan 4, 2024

Jira UILISTS-91

⚠️ MERGE WITH UI-LISTS

There is improper usage of FilterGroups and ConfirmationModal in ui-lists which will break if this is merged. These issues should be fixed in ui-lists and merged with/before. See UILISTS-95

Adds

  • ConfirmationModal
  • FilterControlGroup
  • FilterGroups
  • Headline
  • InfoPopover
  • Layer
  • Layout
  • Loading
  • LoadingPane
  • LoadingView
  • MessageBanner
  • MetaSection
  • Popover
    • LegacyPopover was typed as any and marked @deprecated
      • A quick rg LegacyPopover ./node_modules/@folio/* shows that this component is not used anymore. Maybe we should remove it entirely?
      • It also is not exported from stripes-components itself...
  • Popper
  • RadioButtonGroup
  • Spinner
  • TextArea
  • TextLink

Improves

  • Accordion — allows non-default header props via generics
  • Button — exports buttonStyle typings for easier reuse
  • Checkbox — corrects label typing
  • Datepicker — better reuse Popper props
  • Dropdown — better reuse Popper props
  • LayoutGrid — adds additional type exports for reuse
  • MultiSelection — better reuse Popper props
  • Timerpicker — better reuse Popper props

Bonus PRs made as part of this

Copy link

github-actions bot commented Jan 4, 2024

Jest Unit Test Statistics

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit d5b170f. ± Comparison against base commit bddac96.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 4, 2024

BigTest Unit Test Statistics

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit d5b170f. ± Comparison against base commit bddac96.

♻️ This comment has been updated with latest results.

Copy link

sonarcloud bot commented Jan 5, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

* value and displayed on the page), or an object enabling more customization.
*/
export type FilterGroupsConfigValue =
| string

Choose a reason for hiding this comment

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

This is a new syntax thing for me... Does the leading | just get ignored or does it have some semantics beyond just making the formatting look nice?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, the leading one gets ignored specifically to make things like this line up pretty

Comment on lines +20 to +21
/** @deprecated use dismissible instead */
dismissable?: true;

Choose a reason for hiding this comment

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

🤣
...nice

@ncovercash ncovercash merged commit 921f42f into master Jan 5, 2024
6 checks passed
@ncovercash ncovercash deleted the uilists-91 branch January 5, 2024 18:29
@ncovercash ncovercash changed the title [DO NOT MERGE] [UILISTS-91] Create typings for ui-lists components usage [UILISTS-91] Create typings for ui-lists components usage Jan 5, 2024
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