-
Notifications
You must be signed in to change notification settings - Fork 86
feat(bulk-import): add configurable instructions section for bulk import #1989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(bulk-import): add configurable instructions section for bulk import #1989
Conversation
|
Important This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior. Changed Packages
|
HusneShabbir
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works as expected
/lgtm
debsmita1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this locally
bulkImport:
instructionsEnabled: true
instructionsDefaultExpanded: true
instructionsSteps:
- id: 'step1'
text: 'Choose your source control platform'
icon:
type: 'builtin'
source: 'approval-tool' # icon name or URL
- id: 'step2'
text: 'Step 2'
icon:
type: 'url'
source: 'https://unpkg.com/[email protected]/24/outline/chat-bubble-left-right.svg' # icon name or URL
| * Icon configuration | ||
| * @visibility frontend | ||
| */ | ||
| icon?: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As of today, we have a way to configure icons https://github.com/redhat-developer/rhdh-plugins/blob/main/workspaces/global-floating-action-button/plugins/global-floating-action-button/src/components/FabIcon.tsx . Could you check if you could use the same logic ? then, it will allow users to use svg and backstage icons as well
.../bulk-import/plugins/bulk-import/src/components/AddRepositories/ConfigurableInstructions.tsx
Outdated
Show resolved
Hide resolved
.../bulk-import/plugins/bulk-import/src/components/AddRepositories/ConfigurableInstructions.tsx
Outdated
Show resolved
Hide resolved
b630b73 to
055d47a
Compare
|
debsmita1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.




Hey, I just made a Pull Request!
This PR introduces a fully configurable "How does it work" instructions section for the Bulk Import plugin, allowing administrators to customize workflow steps through app-config.yaml configuration.
Key Features:
Configurable Steps: Define custom workflow steps with personalized text and icons
Icon Support: Built-in theme-aware icons + custom URL-based icons
Dynamic Layout: Responsive design with horizontal scrolling for many steps (≤6 steps fill width, >6 enable scrolling)
User Preferences: Collapsed/expanded state persisted in localStorage per user
Screenshots
------When 3 steps are configured----

------When 5 steps are configured----
------When 6 steps are configured----
------When icon is not configured----
-------When no steps are configured
-----Save user preference
Screen.Recording.2025-12-31.at.11.52.39.AM.mov
✔️ Checklist