node-red-dashboard icon indicating copy to clipboard operation
node-red-dashboard copied to clipboard

Add an Insert mode to the dashboard2 ui-table node.

Open mbalmer opened this issue 4 months ago • 4 comments

Description

Currently, the ui-table node offers "Append" and "Replace" as the "Action" value.

It would be handy to have an "Insert" option to insert new data at the top of the table.

This is useful for time based or history data where you want the latest/newest entry to be on top of the table.

Which customers would this be available to

None

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

mbalmer avatar Jul 26 '25 15:07 mbalmer

I am not sure if I placed the issue at the right repository. The idea is to have this feature in the open source edition.

mbalmer avatar Jul 26 '25 15:07 mbalmer

@mbalmer I've moved this over to the dashboard repo

hardillb avatar Jul 26 '25 18:07 hardillb

Thanks Ben. @mbalmer There is a large idea here whereby the table can be assigned an "index" column. Tables would demand "index" column is unique. If not, it'll replace the existing value.

In your case though, particular for timestamp, "Append" I'm fairly sure is still appropriate? If the sorting is such that the timestamp is in reverse order, then the latest entry should show at the top?

joepavitt avatar Jul 30 '25 14:07 joepavitt

Good morning!

Thanks Ben. @mbalmer https://github.com/mbalmer There is a large idea here whereby the table can be assigned an "index" column. Tables would demand "index" column is unique. If not, it'll replace the existing value. In your case though, particular for timestamp, "Append" I'm fairly sure is still appropriate? If the sorting is such that the timestamp is in reverse order, then the latest entry should show at the top?

Yes exactly, the table should grow from top to bottom, adding the latest entry at the top and shifting the rest downwards.

mbalmer avatar Jul 31 '25 07:07 mbalmer