specify / specify7

Specify 7
https://www.specifysoftware.org/products/specify-7/
GNU General Public License v2.0
60 stars 38 forks source link

Workbench navigation select behavior skips cells #4924

Open Areyes42 opened 1 month ago

Areyes42 commented 1 month ago

Describe the bug When trying to navigate to the first new cell using the navigation button, the selection skips the first cell and jumps to the second one. Additionally, when you’re on the last error cell and attempt to move to the next new cell, the selection on the new cell resets back to 0.

To Reproduce Steps to reproduce the behavior:

  1. Go to the workbench
  2. Select a data set with multiple new cells and multiple error cells
  3. Use the navigation button to advance forward once in the new cell
  4. See that the first new cell is skipped
  5. Use the navigation button to navigate to the last error cell
  6. Click the next button on the new cell
  7. See that the new cell selection is reset to 0

Expected behavior The new cell selection should navigate to the first cell initially. When advancing the new cell selection on the last error cell, it should advance based on the current selected cell location and not reset back to 0.

Screenshots

https://github.com/specify/specify7/assets/130881183/b49e4dae-b4c0-4c87-9178-138daf267b3d

Please, also fill out the following information manually:

Additional context For the error cell reset issue, I tested it on other datasets, and it seemed to work as intended on some, while the issue persisted on others. This issue might be specific to the dataset I initially tested with and how it was set up. https://kufish51623-edge.test.specifysystems.org/specify/workbench/15/