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: Deephaven UI table databar support (#2190) #2340

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

mofojed
Copy link
Member

@mofojed mofojed commented Jan 10, 2025

Changes needed for dh.ui databars

  • Support for extracting data in viewport columns not listed in table.columns. This allows us to hide the aggregation columns for databars from the user but still get their data. If a column is not in table.columns then it will be added to viewport data via its name instead of model index
  • Improved gradient rendering to be much more efficient
  • Fixed opacity being ignored if a gradient was used
  • Fixed some of the databar spacing (was 1px off center)
  • Modified colorValueStyle to have overrides so if we pass a string we don't get back string | undefined when we know we'll get a string
  • Modified resolveCssVariablesInRecord to always resolve CSS colors regardless of if they contain a variable

Changes needed for dh.ui databars

- Support for extracting data in viewport columns not listed in
`table.columns`. This allows us to hide the aggregation columns for
databars from the user but still get their data. If a column is not in
`table.columns` then it will be added to viewport data via its name
instead of model index
- Improved gradient rendering to be much more efficient
- Fixed opacity being ignored if a gradient was used
- Fixed some of the databar spacing (was 1px off center)
- Modified `colorValueStyle` to have overrides so if we pass a string we
don't get back `string | undefined` when we know we'll get a string
- Modified `resolveCssVariablesInRecord` to always resolve CSS colors
regardless of if they contain a variable
@mofojed mofojed requested a review from mattrunyon January 10, 2025 20:19
@mofojed mofojed self-assigned this Jan 10, 2025
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 18.91892% with 60 lines in your changes missing coverage. Please review.

Project coverage is 46.71%. Comparing base (a411f25) to head (2bc1f26).

Files with missing lines Patch % Lines
packages/grid/src/DataBarCellRenderer.ts 3.44% 56 Missing ⚠️
...ckages/iris-grid/src/IrisGridTableModelTemplate.ts 57.14% 3 Missing ⚠️
packages/iris-grid/src/IrisGridTreeTableModel.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##           release/v0.85    #2340   +/-   ##
==============================================
  Coverage          46.71%   46.71%           
==============================================
  Files                689      689           
  Lines              38630    38623    -7     
  Branches            9799     9809   +10     
==============================================
- Hits               18046    18043    -3     
+ Misses             20574    20528   -46     
- Partials              10       52   +42     
Flag Coverage Δ
unit 46.71% <18.91%> (+<0.01%) ⬆️

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.

@mofojed mofojed merged commit d8f667a into deephaven:release/v0.85 Jan 10, 2025
11 checks passed
@mofojed mofojed deleted the v0.85-table-databars branch January 10, 2025 20:54
@github-actions github-actions bot locked and limited conversation to collaborators Jan 10, 2025
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.

2 participants