Skip to content

feat: Picker - Get formatter settings from context#1906

Closed
bmingles wants to merge 2 commits intodeephaven:mainfrom
bmingles:1889-picker-column-types
Closed

feat: Picker - Get formatter settings from context#1906
bmingles wants to merge 2 commits intodeephaven:mainfrom
bmingles:1889-picker-column-types

Conversation

@bmingles
Copy link
Copy Markdown
Contributor

@bmingles bmingles commented Mar 27, 2024

Likely going to replace this PR with simpler version #1907
resolves #1889

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 27, 2024

Codecov Report

Attention: Patch coverage is 4.16667% with 23 lines in your changes are missing coverage. Please review.

Project coverage is 46.18%. Comparing base (bfbf7b1) to head (0eac412).

Files Patch % Lines
packages/jsapi-components/src/useFormatter.ts 0.00% 16 Missing ⚠️
...p-utils/src/components/FormatSettingsBootstrap.tsx 0.00% 3 Missing ⚠️
packages/jsapi-components/src/useFormatSettings.ts 0.00% 3 Missing ⚠️
...es/jsapi-components/src/spectrum/Picker/Picker.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1906      +/-   ##
==========================================
- Coverage   46.20%   46.18%   -0.03%     
==========================================
  Files         641      644       +3     
  Lines       38218    38237      +19     
  Branches     9670     9676       +6     
==========================================
  Hits        17659    17659              
- Misses      20506    20525      +19     
  Partials       53       53              
Flag Coverage Δ
unit 46.18% <4.16%> (-0.03%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

showNullStrings,
}: FormatterOptions = {}): UseFormatterResult {
const dh = useApi();
const formatSettings = useFormatSettings();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The other option that occurs to me is to pass formatSettings in as an arg instead of the overrides and then get rid of the useFormatSettings hook + context. Then could pass in formatSettings to the JS API Picker component as a prop and have the plugin wrapper provide it from the Redux store.

@bmingles bmingles marked this pull request as draft March 28, 2024 13:56
@bmingles
Copy link
Copy Markdown
Contributor Author

Replaced by /pull/1907

@bmingles bmingles closed this Mar 28, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 28, 2024
@bmingles bmingles deleted the 1889-picker-column-types branch April 4, 2024 13:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Picker - handle JS API column types in display labels

1 participant