Skip to content

Conversation

@qcserestipy
Copy link
Owner

No description provided.

bupd and others added 26 commits June 9, 2025 13:13
Signed-off-by: bupd <bupdprasanth@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
This commit adds delete and get project robot accounts cmds

Signed-off-by: bupd <bupdprasanth@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
…obot create; missing import in view.go; merge conflict in prompt.go

Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: bupd <bupdprasanth@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: bupd <bupdprasanth@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: bupd <bupdprasanth@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: bupd <bupdprasanth@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
…ke table fashion.

Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
- display robot name, status, permissions count, creation time, expiration, and description in a table
- render a second table showing each resource and its allowed actions as ✓/✗
- reuse existing table layout code for the non-interactive view
- maintain interactive table model in  path for toggling permissions

TODO: extract the table Model into its own package and share between create and view
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
- display robot name, status, permissions count, creation time, expiration, and description in a table
- render a second table showing each resource and its allowed actions as ✓/✗
- reuse existing table layout code for the non-interactive view
- maintain interactive table model in create path for toggling permissions

TODO: extract the table Model into its own package and share between create and view
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
This commit adds several improvements to robot account creation:

Implements a general table grid view component for permission selection with interactive cell toggling and proper navigation

Adds functionality to load robot account configurations from YAML files with support for wildcard actions and grouped resources

Refactors the robot account creation flow to prioritize config files and only show the form when necessary

Adds validation for project existence and robot name uniqueness when loading from config files

Includes an example configuration file at robot-config.yaml demonstrating the YAML format with various permission patterns

This enhancement improves automation capabilities by allowing robot accounts to be defined as code while maintaining the interactive UI when needed.

Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
… list unavailable commands

Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
…m permissions that are available in the harbor api

Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
…le directly

Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
This change allows robot configuration to be loaded from both YAML and JSON files.
The system now automatically detects file type based on extension and processes
accordingly, while maintaining the same validation and permission handling logic.

Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Enhance the Long help text for all robot-related commands with detailed
descriptions, consistent formatting, and comprehensive examples. This
improves user experience by providing clearer instructions on how to
use robot account management commands.

Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
- Add support for system-level robots with abilities to span multiple projects
- Implement interactive project selection loop with huh form prompts
- Extend robot select view for system and project level grids

This enhancement allows users to create system robots with permissions
across multiple projects in one operation, eliminating the need for
separate robot accounts per project.

Signed-off-by: Patrick Eschenbach <patrickeschenbach96@gmail.com>
@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

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.

4 participants