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

feat: Picker - formatter settings #1907

Merged
merged 10 commits into from
Apr 3, 2024

Conversation

bmingles
Copy link
Contributor

@bmingles bmingles commented Mar 28, 2024

  • useFormatter hook + optional settings prop in jsapi Picker
  • Fixed a bug with bindAllMethods function. It now excludes getters

resolves #1889

@bmingles bmingles marked this pull request as ready for review March 28, 2024 14:01
Copy link

codecov bot commented Mar 28, 2024

Codecov Report

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

Project coverage is 46.26%. Comparing base (a03fa07) to head (4163862).
Report is 1 commits behind head on main.

Files Patch % Lines
...es/jsapi-components/src/spectrum/Picker/Picker.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1907      +/-   ##
==========================================
+ Coverage   46.23%   46.26%   +0.02%     
==========================================
  Files         645      646       +1     
  Lines       38241    38252      +11     
  Branches     9672     9673       +1     
==========================================
+ Hits        17682    17697      +15     
+ Misses      20506    20502       -4     
  Partials       53       53              
Flag Coverage Δ
unit 46.26% <93.33%> (+0.02%) ⬆️

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.

@bmingles bmingles requested a review from mofojed April 3, 2024 15:19
mofojed
mofojed previously approved these changes Apr 3, 2024
@@ -38,7 +38,7 @@ export function useGetItemIndexByValue<TValue>({
return index === -1 ? null : index;
} catch (err) {
log.debug('Error seeking row', { column, value, columnValueType });
return null;
throw err;
Copy link
Member

Choose a reason for hiding this comment

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

I wouldn't bother logging it either - consumer either catches it and logs it or does something with it in which case the log would be extra spam. If it's uncaught would be logged as an uncaught promise anyway.

@bmingles bmingles merged commit f06a141 into deephaven:main Apr 3, 2024
5 checks passed
@bmingles bmingles deleted the 1889-picker-column-types2 branch April 3, 2024 20:17
@github-actions github-actions bot locked and limited conversation to collaborators Apr 3, 2024
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
2 participants