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

4001 - Datatable use Datagrid #4104

Draft
wants to merge 26 commits into
base: development
Choose a base branch
from

Conversation

yaguzmang
Copy link
Contributor

@yaguzmang yaguzmang commented Nov 11, 2024

Resolves #4001
Resolves #1945

  • Remove Select indicator in Taxon cell

  • Update ButtonCopyValues component to use the DataGrid ref instead of the Table ref

  • Calculate borders based on col and row spans

  • Check that print works as before

  • Check download functionality

  • Fix column widths and add grid template columns to table

  • Fix table headers for Forest growing stock composition -> add all headers to one row instead of two

  • Update Taxon cell component and delete old dependencies -> Use Select instead of Autocomplete

  • Update Text cells -> Use InputText and TextArea

  • Update numeric cells -> Add InputNumber

  • Investigate ColType.placeholder

  • Create new Cell styles (CellHeader and Cell)

    • Special cases:
      • Cell Headers:
        • Section.scss
          • &.section__degradedForest -> .fra-table
          • &.section__sustainableDevelopment
      • Normal Cells:
        • fraTable.scss
          • fra-table__calculated-cell
        • .fra-table - > .vgtf__container
      • rtl
      • Highligh rows (.fra-row-comments__open)
      • Review comments
  • Update colSpan/rowSpan to gridColGap / gridRowGap

  • Add row headers

  • RowData: add actions (review)

  • GridRow: add RowNoticeMessage

    • Fix last row border when the last row is noticeMessage
  • Fix src/client/pages/Section/DataTable/Table/GridRow/RowData/RowData.tsx

  • Fix src/client/pages/Section/DataTable/Table/GridRow/RowData/CellHeader/CellHeader.tsx

  • Move DataGrid (in Table.tsx) as parent of all elements

  • Update data grid style

  • go through DataTable and Table sass files

  • investigate usage of 'fra-table' css class name

  • investigate usage of 'fra-table__select-container' @minotogna see Remove ColType multiselect. Refactor Multiselect->Select isMulti #4106

  • Investigate src/client/pages/Section/DataTable/Table/GridRow/RowData/Cell/Cell.scss

  • Investigate and remove? all fra-table prefixed css classes ?

minotogna and others added 2 commits November 8, 2024 06:59
* 4001: Initial DataGrid POC

Co-authored-by: Alejandro Guzman <[email protected]>

* 4001: update grid first col size

Co-authored-by: Alejandro Guzman <[email protected]>

* 4001: add gridColumn + gridRow

Co-authored-by: Alejandro Guzman <[email protected]>

---------

Co-authored-by: Alejandro Guzman <[email protected]>
* 4001 - Add initial header styles

* 4001 - Split styles
@yaguzmang yaguzmang linked an issue Nov 11, 2024 that may be closed by this pull request
44 tasks
yaguzmang and others added 21 commits November 11, 2024 17:06
* 4001 - Add data-tooltip-html prop in DataCell

* 4001 - Separate old useClassName & add table-grid__data-cell class

* 4001 - Add calculated cell styles

* 4001 - Update useClassName
* 4001 - Clone TableHead as GridHead using DataCells

* 4001 - Add getODPHeader util

* 4001 - Extract cell rendering logic to custom hook

* 4001 - Update styles

* 4001 - Update OdpHeaderCell

* 4001 - Fix ReviewSummaryIndicator placement

* 4001 - Update odp header class name

* 4001 - Add GridHeadCell component

* 4001 - Remove cycle return

* 4001 - Move getODPHeader

* 4001 - Add GridHeadCellProps type

* 4001 - Use classNames

* 4001 - Update getODPHeader import path
* 4001 - Remove Multiselect from Table Grid

* 4001 - Add initial Grid Table layout fixes

* 4001 - Add FRA 2025/2020 layout fixes

* 4001 - Fix undefined spans

* 4001 - Add panEuropean 2025/2020 layout fixes
…#4134)

* 4001 - Add missing category cell style

* 4001 - Display notice messages

* 4001 - Add missing key prop

* 4001 - Fix cell placeholder style

* 4001 - Sort props

* 4001 - Rename useTableData to useParsedTable

* 4001 - Remove text-aligns & add rtl

* 4001 - Rename parsedTable to table

* 4001 - Move parseTable file

* 4001 - Remove rows concat
* 4001 - Fix layouts when review comments are enabled

* 4001 - Add highlight props

* 4001 - Add table actions

* 4001 - Add DataRow highlightRange prop

* 4001 - Add highlightRange to grid table

* 4001 - Update highlightRange calculation

* 4001 - Add firstHighlightCol & lastHighlightCol

* 4001 - Fix DataRow first & last col bug
* 4001 - Remove GridHead component

* 4001 - Remove GridRow component

* 4001 - Fix cells padding

* 4001 - Fix cell editable prop

* 4001 - Update text inputs

* 4001 - Delete VerticallyGrowingTextField component

* 4001 - Delete Old TextInput component

* 4001 - Fix Select container style

* 4001 - Rollback changes to InviteUserForm
* 4001 - Add InputNumber & use it for InputPercent

* 4001 - Use InputNumber instead of ThousandSeparated inputs

* 4001 - Sync input local value after paste

* 4001 - Simplify cell Number component

* 4001 - Remove isInteger, shouldRound, & thousandSeparated props

* 4001 - Add className, onBlur & onFocus to InputText

* 4001 - Use InputText and remove localValue
* 4001 - Add CreatableSelect and input props

* 4001 - Add input event props

* 4001 - Fix Taxon code not being persisted

* 4001 - Update Taxon component

* 4001 - Add createOptionPosition & remove onPaste from Select

* 4001 - Add current node to options & save onBlur

* 4001 - Add migration taxon codes fix

* 4001 - Add _fixColumnNames function

* 4001 - Compile together column fixes

* 4001 - Delete Autocomplete component

* 4001 - Delete downshift dependency

* 4001 - Remove Taxon disabled classname

* 4001 - Use Objects.isEmpty in useOnChange

* 4001 - Handle paste in Select itself

* 4001 - Use common.add and remove common.addValue
)

* 4001 - Add Table props->style

* 4001 - Add FRA 2025 gridTemplateColumns where necessary

* 4001 - Remove all col styles related to width

* 4001 - Target only FRA for Taxon codes fix

* 4001 - Add FRA 2020 gridTemplateColumns

* 4001 - Add gridTemplateColumns to Table component

* 4001 - Add useGridTemplateColumns hook
…pean (#4189)

* 4001 - Add panEuropean 2020 gridTemplateColumns

* 4001 - Add panEuropean 2025 gridTemplateColumns

* 4001 - Pass custom classname to InputText disabled div
…ader row & Minor fixes (#4190)

* 4001 - Fix Growing Stock Composition 2025 header rows

* 4001 - Fix table_1_4b_2020 labels

* 4001 - Remove unnecessary section -> table styles

* 4001 - Make RowNoticeMessage span entire row
yaguzmang and others added 3 commits January 2, 2025 04:49
* 4001 - Use filename logic from ButtonTableExport in ButtonGridExport

* 4001 - Handle cells that are calculated and input

* 4001 - Handle spanning cells in DataGrid export

* 4001 - Fix table 7c NWFP category export

* 4001 - Fix odp year with status not being exported

* 4001 - Fix table 3a duplicated text bug

* 4001 - Fix growingStockComposition2025 export layout

* 4001 - Update useClassName hook

* 4001 - Use route params in OdpHeaderCell

* 4001 - Highlight only non text input calculated cells
…lly center input disabled & Cache fix (#4193)

* 4001 - Hide Taxon DropdownIndicator

* 4001 - Vertically center disabled input cells

* 4001 - Generate data cache only for affected tables

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* 4001 - Copy values from grid

* 4001 - Move and refactor Copy logic to useCopyValues hook

* 4001 - Minor rtl fix for disabled input number
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.

DataTable: Use DataGrid Improvement tables - horizontal scrollbar(High priority)
2 participants