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

Delete commissioning packages #53

Merged
merged 14 commits into from
Jan 2, 2025
Merged

Conversation

eoye
Copy link
Contributor

@eoye eoye commented Dec 16, 2024

Pull requests practices for the SSI team

Aim of the PR

This PR fixes AB#208957.

The goal of this PR is to add functionality for deleting commissioning packages.

Implementation

I added a new sidebar item with a delete icon. When the user clicks the button, a dialog opens. The dialog shows all commissioning packages, and the user must choose which packages they want to delete. The active package will be automatically checked, as it is likely the user wants to delete the package that is currently active. When you delete the last commissioning package, a new initial commissioning package will be created.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • This change requires a documentation update

How Has This Been Tested?

This has been tested by running the demo and seeing that it is possible to delete commissioning packages. See screenshots:
image
image
image

@eoye eoye changed the title Story/208957 delete commissioning packages Delete commissioning packages Dec 16, 2024
@NoraKri
Copy link
Contributor

NoraKri commented Dec 17, 2024

Fin og ryddig kode! Ser ut som slettingen nesten er i mål. Kan ta utgangspunkt i funksjonen cleanTripleStore i Triplestore.ts for sletting i db. Ellers er det lurt som du skriver å flytte slettingen ut i en egen komponent.

Et par designtanker rundt slettingen:

  • Kanskje aktiv pakke burde bli valgt automatisk? Ser for meg at man ofte vil slette den pakken man er i.
  • Fint om fargen på pakken er med i listen over pakker når du skal slette, så blir det lettere å se hvilken pakke som er hvilken i P&IDen.

Veldig bra jobbet! 🎄

@markus-ap
Copy link
Contributor

markus-ap commented Dec 30, 2024

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

code/snyk check is complete. No issues have been found. (View Details)

@eoye
Copy link
Contributor Author

eoye commented Dec 30, 2024

Fin og ryddig kode! Ser ut som slettingen nesten er i mål. Kan ta utgangspunkt i funksjonen cleanTripleStore i Triplestore.ts for sletting i db. Ellers er det lurt som du skriver å flytte slettingen ut i en egen komponent.

Et par designtanker rundt slettingen:

  • Kanskje aktiv pakke burde bli valgt automatisk? Ser for meg at man ofte vil slette den pakken man er i.
  • Fint om fargen på pakken er med i listen over pakker når du skal slette, så blir det lettere å se hvilken pakke som er hvilken i P&IDen.

Veldig bra jobbet! 🎄

Takk, nå har jeg fikset at pakkene slettes i triplestoren og flyttet dialogen ut i en egen komponent! Synes begge designtankene dine var gode, så har lagt til farge på pakkene i listen over pakker for sletting, og gjort sånn at den aktive pakken automatisk er sjekket av! 🙌

@eoye eoye marked this pull request as ready for review December 30, 2024 17:26
@daghovland daghovland self-requested a review January 2, 2025 07:51
Copy link
Contributor

@daghovland daghovland left a comment

Choose a reason for hiding this comment

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

Det funker fint på firefox på linux. Jeg har ikke noen gode innspill her, er ikke god nok i react til å fange opp om noe er feil tror jeg.

@eoye eoye merged commit 73e45b8 into main Jan 2, 2025
5 checks passed
@eoye eoye deleted the story/208957-delete-commissioning-packages branch January 2, 2025 09:37
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