Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Refactor/Enchance Dialog Upload Component to have better UX#1674

Merged
lbroudoux merged 20 commits intomicrocks:1.13.xfrom
StartUpNationLabs:feat/ui/upload-dialog
Sep 2, 2025
Merged

Refactor/Enchance Dialog Upload Component to have better UX#1674
lbroudoux merged 20 commits intomicrocks:1.13.xfrom
StartUpNationLabs:feat/ui/upload-dialog

Conversation

@Apoorva64
Copy link
Contributor

Description

When a user wants to quickly import a specification into Microcks, he has to go though a lot of clicks and page changes.
For exemple when a user is on the homepage and wants to import a multi-part specification (ex: BeerCatalogApi), he has to:

  • click on the "importers" page
  • click on the "Upload" button
  • select the BeerCatalogAPI-swagger.json
  • click on the "upload" button
  • select the BeerCatalogAPI-collection.json
  • click on the "upload" button
Recording.2025-08-24.065514.mp4

This PR aims to ease this workflows by implementing multi-file upload as well as a drag and drop system

ezgif-6e430481f9a0ce.mp4

Related issue(s)

@Apoorva64 Apoorva64 changed the title Refactor/Enchance Dialog Component to have better UX Refactor/Enchance Dialog Upload Component to have better UX Aug 24, 2025
@Apoorva64 Apoorva64 force-pushed the feat/ui/upload-dialog branch from 2199f41 to b98e98b Compare August 24, 2025 05:06
@Apoorva64 Apoorva64 changed the base branch from master to 1.12.x August 24, 2025 07:33
@Apoorva64
Copy link
Contributor Author

linked to #1677

@Apoorva64 Apoorva64 changed the base branch from 1.12.x to 1.13.x August 25, 2025 15:22
@lbroudoux lbroudoux added this to the 1.13.0 milestone Aug 27, 2025
Copy link
Member

@lbroudoux lbroudoux left a comment

Choose a reason for hiding this comment

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

It looks really good. Thanks for this PR. I asked few questions along the review but we're close to a merge ;-)

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
- Move UploaderDialogComponent from importers page to shared components
- Enhance uploader with per-file secondary artifact controls
- Add support for multiple file uploads with individual settings
- Implement scrollable file list UI with improved layout
- Add clickable placeholder for file selection

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
- Create UploaderDialogService for consistent dialog handling
- Support pre-selected files and custom configurations
- Track modal state for drag-drop integration
- Add methods to add files to existing open dialogs

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
- Add DragDropService for global file drag-drop detection
- Create DragDropOverlayComponent for visual feedback during drag operations
- Auto-navigate to services page when files are dropped
- Integration with uploader dialog (add to existing vs open new)
- Support HTML5 drag-drop API with proper event handling

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
- Add DragDropOverlayComponent to app template for global file drop feedback
- Initialize DragDropService in AppComponent constructor
- Implement proper cleanup in ngOnDestroy to remove event listeners
- Import required components for drag-drop functionality

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
- Replace direct modal service usage with UploaderDialogService in ImportersPage
- Add uploader dialog functionality to ServicesPage
- Remove direct component imports in favor of service-based approach
- Add refresh callbacks to update data after successful uploads

Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
Signed-off-by: Apoorva Srinivas Appadoo <[email protected]>
@Apoorva64 Apoorva64 force-pushed the feat/ui/upload-dialog branch from b767e2f to 148683f Compare August 29, 2025 11:49
Copy link
Member

@lbroudoux lbroudoux left a comment

Choose a reason for hiding this comment

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

Looks all good. Let shoot this!

@lbroudoux lbroudoux merged commit 8adfa0b into microcks:1.13.x Sep 2, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants