Skip to content

Improve table grid controls and form validation (Follow‑up Improvements to PR #489)#503

Merged
qcserestipy merged 4 commits into
goharbor:mainfrom
qcserestipy:project-robot-refine
Jun 26, 2025
Merged

Improve table grid controls and form validation (Follow‑up Improvements to PR #489)#503
qcserestipy merged 4 commits into
goharbor:mainfrom
qcserestipy:project-robot-refine

Conversation

@qcserestipy

Copy link
Copy Markdown
Collaborator

This pull request implements the requested changes from the review of PR #489 and adds several usability enhancements.


Implemented Changes

Table Grid Controls
  • Improved control clarity – toggles replaced with explicit on/off actions

    • Ctrl + J — Turn ON all cells in the current row
    • Ctrl + K — Turn OFF all cells in the current row
    • Ctrl + H — Turn ON all cells in the current column
    • Ctrl + L — Turn OFF all cells in the current column
  • Table‑wide controls

    • Ctrl + A — Turn ON every cell in the table
    • Ctrl + D — Turn OFF every cell in the table
  • Updated documentation – footer text now clearly shows the purpose of each shortcut

Robot Creation Form
  • Better validation

    • Rejects non‑integer inputs
    • Disallows 0 or negative values (except ‑1)
    • Provides clearer, more specific error messages
  • Default value – sets duration to ‑1 (no expiration) when the user enters 0

Command Handling
  • Error propagation – converted Run to RunE for proper error handling in the robot list command
  • Debug logging – added logs for output‑format selection

Related Issues

Addresses feedback from PR #489.

- refactor(tablegrid): change toggle controls to explicit on/off actions
- feat(tablegrid): add table-wide toggle shortcuts (ctrl+a, ctrl+d)
- fix(robot): improve validation for robot creation expiration time
- fix(cmd): convert Run to RunE for proper error handling in robot list
- docs(ui): update keyboard shortcut documentation in footer text

Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
@qcserestipy qcserestipy requested a review from bupd June 25, 2025 16:21
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
@codecov

codecov Bot commented Jun 25, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 79 lines in your changes missing coverage. Please review.

Project coverage is 9.11%. Comparing base (60ad0bd) to head (75411a5).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
pkg/views/base/tablegrid/model.go 0.00% 64 Missing ⚠️
pkg/views/robot/create/view.go 0.00% 11 Missing ⚠️
cmd/harbor/root/project/robot/list.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             main    #503      +/-   ##
=========================================
- Coverage   10.99%   9.11%   -1.88%     
=========================================
  Files         173     190      +17     
  Lines        8671   10510    +1839     
=========================================
+ Hits          953     958       +5     
- Misses       7612    9446    +1834     
  Partials      106     106              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

qcserestipy and others added 2 commits June 25, 2025 18:41
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>

@bupd bupd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@qcserestipy qcserestipy merged commit 8fe88a3 into goharbor:main Jun 26, 2025
6 of 7 checks passed
@qcserestipy qcserestipy mentioned this pull request Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants