Skip to content
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

Have a choice between "Save", "Save and Duplicate", "Save and add new" for users who will need to create a lot of devices #616

Closed
Tracked by #398
Sben65 opened this issue Apr 21, 2022 · 4 comments · Fixed by #997
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Sben65
Copy link
Contributor

Sben65 commented Apr 21, 2022

No description provided.

@Sben65 Sben65 mentioned this issue Apr 21, 2022
23 tasks
@Sben65 Sben65 changed the title Have a choice between "Save", "Save and Duplicate", "Save and add new" for users who will need to create a lot of devices (P2) Have a choice between "Save", "Save and Duplicate", "Save and add new" for users who will need to create a lot of devices Apr 21, 2022
@adcoly
Copy link

adcoly commented Apr 21, 2022

tmp

@hocinehacherouf
Copy link
Contributor

Clone behaviour must be defined with @adcoly

@hocinehacherouf hocinehacherouf added enhancement New feature or request and removed refinement labels Apr 28, 2022
@kbeaugrand
Copy link
Member

kbeaugrand commented May 19, 2022

User behavior

For duplicate an existing device two options should ;

  • Duplicate a device from the device details (duplicate button)
  • On the creation screen select the duplicated device

Fields and Tag duplication

  • Some fields should be empty :

    • Device Id
    • Lorawan App Key
  • Device name should be copied with - copy suffix

  • Other fields should be copied

Views implementation

  • On Device creation page
    • The Save button should be modified with MudBlazor Split button with 3 behaviors
      • Save
      • Save and add new
      • Save and duplicate
    • Under the Model selection, the user can click to a text Or select a device to copy... that will change the drop down to the device selection
    • The device autocomplete should search the device at server side
  • On Device detail, a button is added to duplicate it

@kbeaugrand
Copy link
Member

kbeaugrand commented May 19, 2022

Button should be implemented by Mud Blazor Split button :

image

See https://www.mudblazor.com/components/buttongroup#split-button

@kbeaugrand kbeaugrand added this to the S33 milestone Jul 25, 2022
@kbeaugrand kbeaugrand moved this to :pencil: Todo in IoT Hub Portal Jul 25, 2022
@hocinehacherouf hocinehacherouf moved this from :pencil: Todo to :construction: In Progress in IoT Hub Portal Jul 26, 2022
hocinehacherouf added a commit that referenced this issue Jul 29, 2022
Add save and duplicate device #616


Add save and duplicate device #616


Add save and duplicate device #616
@hocinehacherouf hocinehacherouf moved this from :construction: In Progress to :speech_balloon: Ready for Review in IoT Hub Portal Jul 29, 2022
kbeaugrand pushed a commit that referenced this issue Jul 29, 2022
* Add save and duplicate device #616


Add save and duplicate device #616


Add save and duplicate device #616


Add save and duplicate device #616

* Fix unit tests on create/detail device

* Add unit tests on DeviceLayoutService

* Add unit test on DeviceToDuplicateSelector

* Add unit test TypingOnMudAutocompleteShouldTriggerSearch

* Fix DuplicateSharedDevice when device is lorawan

* Add unit test TypingOnMudAutocompleteShouldProcessProblemDetailsExceptionWhenTriggerSearch

* Rename method SearchDevicesToClone to SearchDevicesToDuplicate
@kbeaugrand kbeaugrand moved this from :speech_balloon: Ready for Review to :rocket: Ready in IoT Hub Portal Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🚀 Ready
Development

Successfully merging a pull request may close this issue.

4 participants