react-data-grid icon indicating copy to clipboard operation
react-data-grid copied to clipboard

(abandoned) Feature proposals

Open jpdriver opened this issue 9 years ago • 47 comments

Hey everyone,

Bit of background first — I’m JP, one of the original maintainers of React Data Grid.

I’m opening this issue as a place to track and discuss a set of potential new features for the next version of the Grid project.

Below is a list of notable features I personally want to explore for V3; beyond a bunch of bug-fixes and stability improvements.

If you have any additional features / comments / suggestions / can help, please leave a comment below.


⚠️ ☢️

DISCLAIMER: This is not an official announcement of new features. I'm trying to gather feedback / gauge interest on this proposed feature set.

⚠️ ☢️


Core

  • Even more performant rendering perf
  • Nested Grids
  • Universal (aka Isomorphic aka SSR) Rendering ssr

Columns

  • Responsive improvements
    • "Hide Order" for Columns at certain breakpoints
  • APIs to programmatically resize / reorder Columns & Rows on the client
  • Select cells by column
  • Client-side create / delete / hide Columns
  • Left / Right Column Freeze

Rows

  • Dynamic row heights dynamic
  • Drag to resize row height per row (+ API to programmatically resize / reorder)

resizable-rows

  • Swap Column Formatters & Editors dynamically on the client
  • Freezable Rows (1 or more)

Cells

  • ColSpan Cells
  • RowSpan Cells
  • Dynamic Styles (dirty data, server-updated data, required, invalid)
    • thanks @dzwiedziu-nkg

Editors

  • Formula Cells (=A1+B1+C1)

Functions

  • Copy / Paste Continuous Cell Ranges (finally!!)
  • Copy / Paste Random Cell Sequences
  • Content-aware fill (Drag-down from "August 2017" to fill with "September 2017", "October 2017", etc)
  • File Import & Exports (.json & .csv)

Theming

  • Material UI theme
  • Full support for Custom Theming

Tooling

  • Move back to single NPM package (? - to be discussed w/ Adazzle)
  • preact-data-grid & inferno-data-grid (? - anyone interested in official bindings)

jpdriver avatar May 03 '17 19:05 jpdriver

Definitely looking for expandable rows which I believe is the same things as Nested Grids. Like this example: http://allenfang.github.io/react-bootstrap-table/example.html#expand "Custom Expand Row Indicator"

smorin avatar May 05 '17 00:05 smorin

hey @smorin -- so that's actually two features

the first is the functional ability to expand a row. we refer to that as a tree view, and it's currently being implemented in this PR https://github.com/adazzle/react-data-grid/pull/664

the second (which i believe is beyond the scope of tree view in it's current form) is the nested Grids

jpdriver avatar May 05 '17 09:05 jpdriver

@jpdriver I guess I am not understanding clearly what the difference between functionality in a tree view would be vs a nested grid. For example is a tree view just extra canvas space that opens under a row, while a nested grid is extra rows that get expanded?

smorin avatar May 05 '17 16:05 smorin

So by Tree View we mean something like this -- where you can expand one or more child rows that have the same structure as the parent grid.

img_0512

Nested Grids on the other hand involve rendering a whole separate Grid, essentially instead of a Row on a parent Grid.

img_0513

That Nested Grid could have it's own structure, columns, rows, etc.

Make sense?

jpdriver avatar May 05 '17 17:05 jpdriver

Much clearer now, makes sense.

Would it make sense then as a step on to allow basically a arbitrary "area"/"canvas" to be opened up like that so that any component could be put in the expanded space? One implementation of that would be a "Nested Grid".

smorin avatar May 05 '17 17:05 smorin

Hi everyone, the version I am using now cannot disable the "drag and drop" function. It seems when I made the cell editable, it will automatically trigger the "drag and drop to copy" function. I am trying to read the github source code to modify the function myself. I wish in the next version it will have a better documentation of every single element, from Cell, Editor to Canvas, Viewport. Besides, the current version uses a lot of of "mixin", not sure if they will be replaced by the 'composition pattern', or 'presentational and container ' components, in the future.

hkjpotato avatar May 06 '17 05:05 hkjpotato

Is there a slack channel for this project? I saw a reference to that in the contributing page.

smorin avatar May 06 '17 20:05 smorin

@hkjpotato -- better documentation is something several people are asking for, and something that i'm hoping to include as part of the V3 improvements.

jpdriver avatar May 06 '17 21:05 jpdriver

@smorin you can join the Slack channel at https://react-data-grid.herokuapp.com/

jpdriver avatar May 06 '17 21:05 jpdriver

Feature request: easy way to implement custom cell theme (i.e. background color) according to data value, for example:

  • cell data was modified by user (i.e. yellow background) and not save,
  • cell data just updated from server (i.e. according to time of last changed),
  • cell is need to fill by user,
  • cell have invalid data,
  • etc.

dzwiedziu-nkg avatar May 07 '17 05:05 dzwiedziu-nkg

While on the topic of next versions... can someone explaining the version numbering for this project? There seems to be a version bump with literally every single commit. Why is that? Should the stuff on the 'releases' section of the project be considered the 'official' release, and the version bumps in the commit history are not actually 'official' releases and people should ignore the versions in the commit history?

mattknoxca avatar May 09 '17 21:05 mattknoxca

hey @mattknoxca -- we follow semver, which dictates that any patch releases to fix bugs should bump the version number. Because of this, we have an automated script that bumps the version number after every merge commit into the master branch.

As for why GitHub Releases shows a different "latest version", that's because we adopted Lerna -- which lets you split your source code into multiple NPM packages within one repository. We actually have two version numbers. If you look at the package.json file in the root, it says the version for the repository is 2.0.1. But the latest version of the packages within it is 2.0.33.

So both are official -- but we'll only publish a new Github Release when we need to bump the repository version. Let me know if that all makes sense 😄

jpdriver avatar May 10 '17 07:05 jpdriver

One feature I think would be nice, though possibly difficult to implement, and only necessary on the most advanced grids would be virtual columns.

I have grids where the user can include up to 50 different columns, with the first 3 of them locked. Most of those columns are simple render the value from the DB, though others need complex formatting that depends on other values and things. This makes horizontal scrolling laggy in some instances. If there were a way to only render the X columns visible, that would be great!

lord-xeon avatar May 10 '17 15:05 lord-xeon

hey @lord-xeon -- as things are right now, the Grid already has "virtualised columns" in that if a cell is within a column which is outside the currently viewable <Viewport /> bounds, it will render as an <OverflowCell />.

These are empty divs that have the same dimensions as their fully-rendered counterparts, so they provide a slight performance boost while maintaining Grid structure.

But you still get something rendered for every Column, visible or otherwise.


V3 on the other hand silently unmounts non-visible Rows and Columns components from the DOM.

We needed to adopt that pattern to make the performance as fast as it is now, and that's actually also how I solved a tricky bug whereby the 1,000,000 rows example has never fully worked before because we hit the maximum px height limit for the DOM.

(Go to the example and scroll all the way to the final row. It's not 1,000,000 and the styling is all over the place!)

So don't worry -- it's coming! 😄

jpdriver avatar May 10 '17 17:05 jpdriver

@jpdriver We're using this component as part of a production system and looking forward to future releases and improvements!

Great work!

talcohen100 avatar May 10 '17 18:05 talcohen100

Formula's are crucial IMO- otherwise this really just an excel like table. In saying that0 it's still amazing work.

This one does it nicely- but there is no mobile/touch support. https://github.com/nadbm/react-datasheet

yarnball avatar May 22 '17 13:05 yarnball

What about an 'Undo' feature? If some values are changed, sort happens, columns re-ordered on the data grid then an undo mechanism would be great to roll-back the changes.

milkersarac avatar May 23 '17 13:05 milkersarac

Is there a plan to support Footable like responsiveness?

akkie avatar May 24 '17 13:05 akkie

hey @akkie -- i'm not familiar with Footable, but is the idea that you hide certain columns at certain breakpoints? Because if so then the answer is yes!

jpdriver avatar May 24 '17 14:05 jpdriver

Yes, this is the idea! They can then be opened with the plus icon at the beginning of the row.

akkie avatar May 24 '17 14:05 akkie