avo icon indicating copy to clipboard operation
avo copied to clipboard

Refresh one table row

Open adrianthedev opened this issue 1 year ago • 1 comments

Related:

  • https://github.com/avo-hq/avo/issues/3342
  • https://github.com/avo-hq/avo/commit/231d96996053cefa72c97f3113232c101fbde03a

Possible approach

We make use of code in this area to essentially run Avo::Index::TableRowComponent.new(resource: ...) and use that in a new controller method that returns a turbo stream response to replace it.

# in the controller action
render turbo_stream: turbo_stream.update_all 'tr[data-id="THE_ID"]', Avo::Index::TableRowComponent.new(resource: ...)

This way we pinpoint exactly what we want to update in the most efficient way possible.

adrianthedev avatar Oct 16 '24 15:10 adrianthedev

Can we timebox this to 30 mins to see how much time it would take to build it?

adrianthedev avatar Oct 16 '24 15:10 adrianthedev

This issue has been marked as stale because there was no activity for the past 15 days.

github-actions[bot] avatar Nov 01 '24 02:11 github-actions[bot]