nextcloud / nextcloud/text

Adding new table rows is not possible if only the column header exists

Open
#6,851 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug design feature: tables needs discussion
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

Describe the bug
After I delete all existing rows on the table and only the column header exist, is non possibility to add a new row. You can only delete the table on the table navbar or create new columns.

To Reproduce
Steps to reproduce the behavior:

  1. create a table
  2. delete all rows (without the column header)
  3. add new row --> no way exist

Expected behavior
When non row exist, a possibility to add a new row

Screenshots
Table navbar

Image

Table column menu bar

Image

Server details:

  • Nextcloud version: [30.0.4]
  • PHP Version: [8.3]
  • Database: [postgres 14]
  • text version: [4.1.0]

Client details:

  • OS: [Ubuntu]
  • Browser: [Firefox]
  • Browser version: [133]
  • Device: [ desktop]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the table UI: create a table, delete every row while keeping the column header, and inspect the available table and column menus. The fix is complete when a new row can be added in this empty-table state and the existing table actions still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.