• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase / 42034797724
87%

Build:
DEFAULT BRANCH: master
Ran 05 Nov 2026 01:25PM UTC
Jobs 1
Files 189
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Nov 2026 01:19PM UTC coverage: 87.039% (+0.04%) from 87.003%
42034797724

push

github

web-flow
feat(studio): duplicate row and keep values with Create more in Table Editor (#52952)

## What

Two additions to the Table Editor's Insert Row flow:

- **Duplicate row**: new item in the row context menu. Opens the Insert
Row panel as a new record, pre-filled from the selected row.
- **Keep values**: a gear button next to \"Create more\" (visible only
while \"Create more\" is on) opens a \"Row creation options\" popover
with a \"Keep values for the next row\" checkbox. When checked, the form
keeps its values after each insert instead of clearing. Off by default,
so existing behavior is unchanged.

## How

- Both use a shared helper, `generateReusedRowFields`, that clears
primary key, identity, function-defaulted (e.g. `gen_random_uuid()`,
`nextval(...)`, `now()`, `CURRENT_TIMESTAMP`), and truncated values.
Cleared columns fall back to their blank state so the database fills
them in. A boolean with a function default is left unset so the database
evaluates it.
- Duplicate adds a `duplicateFrom` field to the `row` side panel state
rather than reusing `row`, so the panel stays in insert mode and can't
turn into an update.
- The popover lives in a new co-located `RowCreationOptions` component.
Its notch is a rotated square drawn inside the popover content,
positioned over the trigger by Radix.

<img width="165" height="220" alt="Screenshot 2026-11-04 at 15 22 20"
src="https://github.com/user-attachments/assets/145e3aeb-9f6f-4826-a789-a0e462d3d1d5"
/>

<img width="678" height="202" alt="Screenshot 2026-11-05 at 11 41 35"
src="https://github.com/user-attachments/assets/07cc5251-e2fc-417c-90bd-6b6268a2c0c7"
/>


## Notes

- Columns with unique constraints other than the primary key are still
copied, so saving a duplicate can fail with the normal error toast.
- Large values (over 10 KB) are truncated by the grid query, so
duplicate clears them rather than copying a corrupted value. Copying
them is tracked in FE-4927.

## Testing

- Unit tests for the helper (... (continued)

2043 of 2411 branches covered (84.74%)

Branch coverage included in aggregate %.

2839 of 3198 relevant lines covered (88.77%)

201.12 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 studio-tests 42034797724.1 05 Nov 2026 01:25PM UTC 756
38.16
GitHub Action Run
Source Files on build 42034797724
  • Tree
  • List 189
  • Changed 156
  • Source Changed 0
  • Coverage Changed 156
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #42034797724
  • 097e7a11 on github
  • Prev Build on master (#42031284640)
  • Next Build on master (#42038574098)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc