Hugo Häggmark
a07f63fbef
i18n: use @grafana/i18n within @grafana/ui ( #106691 )
2025-06-16 06:04:28 +02:00
Jack Westbrook
7e6eefc8cd
Grafana UI: Replace barrel files with explicit exports ( #106168 )
...
* refactor(grafana-ui): move all exports from components barrel file to entry point
* refactor(grafana-ui): move all exports from types barrel file to entry point
* refactor(grafana-ui): explict exports for utils
* refactor(grafana-ui): move themes to explicit exports
* refactor(grafana-ui): use explicit exports for options, slate-plugins and schema
* fix(grafana-ui): put back missing components
* chore(grafana-ui): delete first level barrel files
* refactor(grafana-ui): update all internal barrel file imports
* refactor(grafana-ui): start fixing storybook mdx files
* style(grafana-ui): fix linting issues, update betterer result
* chore(grafana-ui): delete nested component barrel files
* refactor(grafana-ui): update imports to use non-barrel files
* refactor(grafana-ui): update imports to non-barrel files for story and test
* fix(grafana-ui): put back missing FileListItem component and types
* refactor(grafana-ui): update mdx to use direct imports
* fix(grafana-ui): align exports with grafana 12
2025-06-10 15:51:53 +02:00
Paul Marbach
840afe448f
update TableNG to use the grafana fork of react-data-grid, which supports React 18 ( #105970 )
2025-05-28 09:50:15 -04:00
Alex Spencer
ce3f485593
TableNG: Fix filtering bug ( #105334 )
...
fix: tableNG filtering
2025-05-20 11:10:49 -06:00
Alex Khomenko
a9b6d098e9
Chore: Add eslint no-restricted-globals rule ( #104519 )
...
* Chore: Add no-restricted-globals eslint rule
* Fix eslint warnings
* Revert some changes
* Update
* Feedback
2025-05-12 12:38:26 +03:00
Alex Spencer
2c1851e8c8
TableNG: Filter and sort sub tables ( #104327 )
...
* feat: filter and sort sub tables
* chore: extract row processing into it's own function for filtering and sorting
---------
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2025-05-06 15:45:26 -06:00
Alex Spencer
cab241fbb6
TableNG: Always use correct original row index ( #104561 )
...
Backend Code Checks / Validate Backend Configs (push) Waiting to run
Details
Backend Unit Tests / Grafana (push) Waiting to run
Details
Backend Unit Tests / Grafana Enterprise (push) Waiting to run
Details
CodeQL checks / Analyze (go) (push) Waiting to run
Details
CodeQL checks / Analyze (javascript) (push) Waiting to run
Details
CodeQL checks / Analyze (python) (push) Waiting to run
Details
Lint Frontend / Verify i18n (push) Waiting to run
Details
Lint Frontend / Lint (push) Waiting to run
Details
Lint Frontend / Typecheck (push) Waiting to run
Details
Lint Frontend / Betterer (push) Waiting to run
Details
golangci-lint / lint-go (push) Waiting to run
Details
Documentation / Build & Verify Docs (push) Waiting to run
Details
Coverage / Backend Unit Tests (push) Waiting to run
Details
End-to-end tests / Build & Package Grafana (push) Waiting to run
Details
End-to-end tests / ${{ matrix.suite }} (dashboards-suite) (push) Blocked by required conditions
Details
End-to-end tests / ${{ matrix.suite }} (panels-suite) (push) Blocked by required conditions
Details
End-to-end tests / ${{ matrix.suite }} (smoke-tests-suite) (push) Blocked by required conditions
Details
End-to-end tests / ${{ matrix.suite }} (various-suite) (push) Blocked by required conditions
Details
End-to-end tests / ${{ matrix.suite }} (old arch) (old-arch/dashboards-suite) (push) Blocked by required conditions
Details
End-to-end tests / ${{ matrix.suite }} (old arch) (old-arch/panels-suite) (push) Blocked by required conditions
Details
End-to-end tests / ${{ matrix.suite }} (old arch) (old-arch/smoke-tests-suite) (push) Blocked by required conditions
Details
End-to-end tests / ${{ matrix.suite }} (old arch) (old-arch/various-suite) (push) Blocked by required conditions
Details
Frontend tests / Unit tests (${{ matrix.chunk }} / 8) (1) (push) Waiting to run
Details
Frontend tests / Unit tests (${{ matrix.chunk }} / 8) (2) (push) Waiting to run
Details
Frontend tests / Unit tests (${{ matrix.chunk }} / 8) (3) (push) Waiting to run
Details
Frontend tests / Unit tests (${{ matrix.chunk }} / 8) (4) (push) Waiting to run
Details
Frontend tests / Unit tests (${{ matrix.chunk }} / 8) (5) (push) Waiting to run
Details
Frontend tests / Unit tests (${{ matrix.chunk }} / 8) (6) (push) Waiting to run
Details
Frontend tests / Unit tests (${{ matrix.chunk }} / 8) (7) (push) Waiting to run
Details
Frontend tests / Unit tests (${{ matrix.chunk }} / 8) (8) (push) Waiting to run
Details
Integration Tests / Sqlite (push) Waiting to run
Details
Integration Tests / MySQL (push) Waiting to run
Details
Integration Tests / Postgres (push) Waiting to run
Details
publish-technical-documentation-next / sync (push) Waiting to run
Details
Run dashboard schema v2 e2e / dashboard-schema-v2-e2e (push) Waiting to run
Details
Verify Storybook / Verify Storybook (push) Waiting to run
Details
Dispatch sync to mirror / dispatch-job (push) Waiting to run
Details
* fix: change row index
* chore: remove unused param
2025-05-05 13:16:05 -06:00
Alex Spencer
72932e10b2
TableNG: Fix sparkline sorting + column key config ( #104008 )
...
* fix: sorting sparkline cells
* fix: prevent same cell name issues
* chore: clean
* chore: bring back nuked sparkline fix
* chore: mob feedback
* chore: use getDisplayName function
* chore: missed two!!
* chore: improved betterer results
---------
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2025-05-05 10:46:07 -06:00
Alex Spencer
a8c4c824b9
TableNG: Use correct row index for background colour calculation ( #104426 )
...
* chore: row index is source index so just use that
* chore: fix better cause why not
---------
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
Co-authored-by: Sven Grossmann <svennergr@gmail.com>
2025-05-02 08:39:03 -07:00
Adela Almasan
6c0250dde2
TableNG: Fix interpolation for actions ( #104577 )
2025-04-30 17:42:15 +03:00
Ashley Harrison
b56a4a5295
Border radius: Improve rule and fix remaining violations ( #104569 )
...
* improve rule and fix remaining borderRadius violations
* prettier
* Add test case for nested classes
* Fix unnecessary string wrapping
---------
Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
2025-04-30 14:03:54 +01:00
Alex Spencer
680874e0d5
TableNG: Fix sub table styles + expand/collapse ( #104015 )
...
* fix: sub table expand/collapse + styles
* chore: pass in datagrid styles differently
* chore: fix test lint
* chore: fix cell hover flicker
* chore: fix sub table height issue
* chore: fix background color hover issue
* chore: revert hover changes - separate PR incoming
* chore: fix sub table width + alignment
---------
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2025-04-22 08:15:48 -06:00
Alex Spencer
906004c7ae
TableNg: Fix a few bugs found in K8s land ( #103829 )
...
* fix: a few bugs found in K8s land
* fix: column width buggy behavior
* fix: column width try again
2025-04-11 05:47:40 -06:00
Alex Spencer
b59a4fc5b8
TableNG: Fix some regressions after text wrap refactor ( #103663 )
...
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2025-04-09 10:23:47 -05:00
Alex Spencer
a66db96fd9
TableNG: Text wrap enhancements ( #102954 )
...
* feat: text wrap table g12
* chore: remove stale comment
* tests: skipping - can't figure out how to test right now
* move text wrap stuff to table new
* chore: make table stuff untouched. only in table new
* wrap text stuff only in table-new
* unbreak RT wrapping
* skip tests for now
* cleanup
* fix bad merge
* revert some stuffs
* maybe
* tweaks
* uwrap 0.1.1
* fix: cell width fixes for overrides
* chore: fix column width
* fix: update hover logic
* fix: utils.test.ts
* chore: mock uWrap and remove tests for now
* chore: adjust width
* chore: clean
* chore: width passed to uwrap account for border
* chore: width changes
* adjust
* no descr
---------
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2025-04-08 09:34:41 -06:00
Ashley Harrison
641031cfaf
Chore: Type fixes ( #103340 )
...
* tidy tidy
* more fixes
* some TableNG fixes
* another TableNG test fix
* some more fixes
* betterer...
2025-04-07 11:29:30 +01:00
Ashley Harrison
0fc4f53fab
Internationalisation: More markup for translations ( #103392 )
...
* some more translations
* more markup
* more translations
* fix tests
2025-04-07 09:48:03 +01:00
Leon Sorokin
683660fa42
TableNG: Fix column hiding override ( #103327 )
...
* TableNG: Fix column hiding override
* Mark field custom config as optional
---------
Co-authored-by: drew08t <drew08@gmail.com>
2025-04-03 14:54:09 -07:00
Alex Spencer
d6ec8ab8b1
TableNG [Bug Bash]: Cell inspect and filter on the field level ( #103004 )
...
* fix: cell inspect + filter at the field level, not defaults
* chore: defensive against missing custom config
* chore: reconfigure tests
* hide inspect block if nothing to show
---------
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
2025-04-03 16:28:19 +02:00
Alex Spencer
50825a8299
TableNG [Bug Bash]: Add onCellFilterAdded buttons back ( #103160 )
...
chore: bring back onCellFilterAdded controls
2025-04-03 12:41:17 +02:00
Adela Almasan
4582a45b93
TableNG: Fix sorting ( #103215 )
...
* wip sorted rows
* Move rowIdx calculation to TableNG top level
* Remove old unused props
---------
Co-authored-by: drew08t <drew08@gmail.com>
2025-04-01 11:28:34 -07:00
Alex Spencer
98a1dfbad4
TableNG: Bugfixes ( #102905 )
...
* fixes: sort persistence, sort trigger panel dirty state, use field display names
* fix: for nested tables, use column.name for header text
* chore: fix location of cache display names
2025-03-27 14:02:57 -06:00
Ihor Yeromin
a6edd1765d
TableNG: Filter ui/ux improvements ( #102985 )
...
* feat(table-ng): filter ui/ux improvements
2025-03-27 18:27:58 +01:00
Drew Slobodnjak
03d6d8f854
Table: Move library to react-data-grid ( #102482 )
...
* Changes galore
* Freedom 🗽
* Add feature flag
* Latest changes
* Basic auto cell type
* Partially working bar-gauge
* Brokenish but whatevs
* Include the toggle doc
* TableNG: Context menu (#94094 )
* feat(table-ng): context menu init commit
* betterer
* feat(table-ng): re-use contextmenu component
* fix(table-ng): close context menu issue
* TableNG: Sorting columns (#94200 )
feat(table-ng): sorting column
* fix feature toggle conflict
* TableNG: Sorting with custom table header (#95351 )
* TableNG: Header Toggle (#95310 )
* TableNG: Multi-column sorting (#95395 )
feat(table-ng): multi-sorting
* TableNG: Column width options (#95426 )
* feat(table-ng): column width
* mouse handle drag event
* move resizing task
* TableNG: Fix icon sorting direction (#95653 )
fix(table-ng): sorting icon direction
* TableNG: Show table footer (#95313 )
* TableNG: Show table footer
* Revert betterer
* Update betterer
* Incorporate reducer calculations into footer
* Update imports in FooterRow
* Use getFooterValue for summary cell render
* TableNG: Min column width (#95657 )
* feat(table-ng): min column width
* feat(table-ng): set a min width constant
* TableNG: Column alignment (#95679 )
* feat(table-ng): column alignment
* cleaning
* feat(table-ng): header cell alignment
* optimizations
* feat(table-ng): footer cell alignment
* calc counter
* TableNG: use compiled fn for columns -> records conversion (#95914 )
* use compiled fn for columns -> records conversion
* TableNG: Move key rev and fix width overrides (#95921 )
* meh
* add index to records
---------
Co-authored-by: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com>
* TableNG: Sparkline Cell Parity (#95690 )
* sparkline value
* todo
* Remove unsued shallowField
* Pass justifyContent to sparkline
---------
Co-authored-by: drew08t <drew08@gmail.com>
* TableNG: BarGauge cell updates (#95521 )
* fix bargauge cell
* merge and fix props
* cleanup imports
* TableNG: Text wrapping (#96041 )
* feat(table-ng): fix long text cell width
* feat(table-ng): fix long text cell width 2
* comment out column rowHeight
* fix long text column width
* fix types
* fix types
* naming
* Check current header cell ref is defined for key
* cleaning
* make table re-render when data changed
* eslint
---------
Co-authored-by: drew08t <drew08@gmail.com>
* TableNG: Text overflow (#96641 )
* feat(table-ng): text overflow
* cleaning
* TableNG: Fix footer for count (#96802 )
* TableNG: Table column filter (#96767 )
* feat(table-ng): add filter form
---------
Co-authored-by: drew08t <drew08@gmail.com>
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
* TableNG: On column resize trigger (#97004 )
chore(table-ng): trigger on resize on text wrap only
* TableNG: Improve sort performance (#97767 )
* TableNG: Improve sort performance
* clean a bit
* a bit more
* Remove const that was breaking sort
---------
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
* TableNG: Fix sorting (#98141 )
fix(table-ng): sorting
* TableNG: fix multi sorting (#98668 )
fix(table-ng): multi sorting
* TableNG: Column re-size handler (#98901 )
* feat(table-ng): column re-size handler
* TableNG: Fix footer calcs with no reducer (#99347 )
* TableNG: Update renderHeaderCell with filter dep (#99483 )
* TableNG: Updated styles for demo (#99530 )
* style proposal: table ng
* chore: revert gauge cell custom stuff
* TableNG: Cross-filter (#99459 )
* feat(table-ng): cross-filter
* fix filter update issue
* fix filter reset issue
* Fix spacebar for filter input
---------
Co-authored-by: drew08t <drew08@gmail.com>
* TableNG: Filter perfomance optimization (#99620 )
fix(table-ng): filter performance optimization
* TableNG: Refine styling closer to original table (#99625 )
* TableNG: Support groupToNestedTableTransform (#97134 )
* TableNG: Support groupToNestedTableTransform
* Fix merge issues
* Force refresh for now
* Remove log
* Fix some conflicts
* Fix more conflicts
* Help avoid clash with compiled frameToRecords keys
* Make subtable height unconstrained
* Support show field names in nested tables toggle
* TableNG: Fix footer + some other misc updates (#99846 )
fix: footer fixes huzzah
* TableNG: Styling - Update styling for cells (#99851 )
* fix(table-ng): bargauge inner width issue
* TableNG: Move header cell component (#99844 )
* fix(table-ng): move header cell into separate file
* Fix sub table
---------
Co-authored-by: drew08t <drew08@gmail.com>
* TableNG: Auto cell feature parity (#100095 )
* feat(table-ng): auto cell feature parity
* TableNG: JSON cell implementation + hover fixes (#100152 )
* feat: tableNG json cell + auto fixes
* chore: add comment
* add justify content to json cell
---------
Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
* TableNG: Fix cell hover issue (#100207 )
* fix(table-ng): cell hover issue
* better commenting
* TableNG: Text color cell (#100120 )
feat(table-ng): text color cell feature parity
* TableNG: Image cell implementation (#100132 )
* feat: tableNG image cell
* fix: incorporate justify-content correctly
* chore: pass down cell options from fieldConfig
---------
Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
* TableNG: Cell height performance improvement (#100544 )
* chore: perf improvement
* chore: minor fix
* Update packages/grafana-ui/src/components/Table/TableNG/TableNG.tsx
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
* chore: fix betterer
---------
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
* TableNG: Add pagination (#100165 )
* TableNG: Add pagination
* TableNG: Get collapsed icon state correct + update `rowHeight` (#100556 )
* fix: get collapsed icon state correct + update condition for calculating row height
* chore: some cleanup!
* chore: naming to avoid confusion with local state name
* TableNG: Add support for `DataLinksCell` (#100459 )
* TableNG: Improve sub table styling (#100772 )
* Move files temporarily to fix conflicts
* Fix feature flag conflicts
* Move files back to cell dir
* TableNG: Update inner height of bar gauge cell (#100996 )
* fix: change inner height of bar gauge cell
* chore: move function to utils, cleanup
* Remove testing line
* TableNG: Add bottom border to column headers + fix footer styling (#101016 )
* feat: add bottom border to column headers for table parity
* feat: summary row style fix
* chore: remove redundant style
---------
Co-authored-by: drew08t <drew08@gmail.com>
* TableNG: Add support for `ActionsCell` (#101024 )
* TableNG: Cell hover styles + header resize handler indicator (#100770 )
* fix: tableNG styles
* chore: clean up comments
* chore: remove column header stuffz for now
* fix: refactor to transform/translate + resize handler hover styling
* chore: re-think approach - change a lot of things
* chore: most recent iteration
* chore: wait i like this better
* chore: hoist into colors function + clean it up!
* moar better
* chore: define constants for clarity
* chore: calculate rbga to rgb values given background color
---------
Co-authored-by: drew08t <drew08@gmail.com>
* TableNG: Fix scoll hover jumpy behavior (#101085 )
* fix(table-ng): hover scroll jumping
* Account for panel padding during pagination
---------
Co-authored-by: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com>
Co-authored-by: drew08t <drew08@gmail.com>
* TableNG: Fix imports (#101059 )
* fix(table-ng): clean imports
Co-authored-by: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com>
* TableNG: Sorted rows dependent upon filtered rows (#100985 )
TableNG: Improve multi-sort performance
* TableNG: Fix sparkline width (#101164 )
fix(table-ng): sparkline width
* TableNG: Type TableNG (#101257 )
* feat: type tableNG
* chore: push betterer
* chore: fix linter + why can't I have inline if statements... GRR!
* fix: linter - props name got changed at some point...
* feedback: data links prop consistency + json cell robustness
* chore: remove unused rowIndex prop
---------
Co-authored-by: drew08t <drew08@gmail.com>
* TableNG: Add support for datalinks (#100769 )
Co-authored-by: drew08t <drew08@gmail.com>
* Chore: Remove unused import (#102064 )
remove unused import
* Update betterer
* BarGauge: Remove z-index (#102220 )
fix(bargauge): remove z-index
* TableNG: Refactor + testing (#102045 )
* feat: type tableNG
* chore: push betterer
* chore: fix linter + why can't I have inline if statements... GRR!
* fix: linter - props name got changed at some point...
* feedback: data links prop consistency + json cell robustness
* feat: refactor + tests
* chore: fix import lint errors
* betterer
* chore: fix image cell
* chore: revert width function
* add test
* betterer
* chore: fix sorting + add tests
* chore: pr feedback
---------
Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
Co-authored-by: drew08t <drew08@gmail.com>
* TableNG: Fix table suggestion (#102497 )
fix: defensively guard against missing cellOptions
* TableNG: Footer fields calc fix (#102487 )
* fix: respect footer fields calc selection
* chore: add test
* TableNG: Image cell hover fix (#102489 )
fix: image cell hover
* TableNG: Persist scrollbars during re render (#102559 )
* TableNG: Persist scrollbars during re render
* Update improved betterer
* TableNG: Fix column width override (#102474 )
* fix(table): column width override
* TableNG: Add support for crosshair share (#102410 )
* TableNG: Add support for crosshair share
* Add tests
* TableNG: Fix table ng tests (#102645 )
fix: cellType causing tests to fail
* Remove empty file
* TableNG: Update util tests (#102646 )
* TableNG: Add column type icon (#102686 )
* chore(table-ng): add column type icon
* chore(table-ng): clean styling
* Use core internationalization outside grafana ui
* Import popover directly
* Add count to grafana-ui locales
* TableNG: Change feature flag to tableNextGen (#102814 )
Change feature flag to tableNextGen
* TableNG: Add row colors (#102706 )
* chore(table-ng): add row colors
* clean up
* fix params
* fix(table-ng): cell color background indexing
---------
Co-authored-by: Kyle Cunningham <kyle@codeincarnate.com>
Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
Co-authored-by: Adela Almasan <88068998+adela-almasan@users.noreply.github.com>
Co-authored-by: Alex Spencer <52186778+alexjonspencer1@users.noreply.github.com>
2025-03-25 20:57:57 -07:00