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

Create Edit Notification View #622

Closed
6 tasks done
Assignees
Labels
backend Backend related issues frontend_refactoring Issues regarding a specific design change in trace-x frontend Frontend related Issues

Comments

@ds-mmaul
Copy link
Contributor

ds-mmaul commented Feb 2, 2024

As user ,
I want to edit existing notifications before sending,
so that i dont have to recreate a notification .

Link

Hints / Details

  • Miro UI Concept Board : LINK

Image

Acceptance Criteria

  • Edit Notification View is implemented as in concept LINK
  • The following notification info (see concept mock)
    -- description
    -- title
    -- sendTo / BPN
    -- target date
    -- severity
    -- parts
  • BE Api for editing parts of notifications is implemented as in concept concept in repo
  • Add the possibility to add a incident name to an incident max 2000 Char
  • Documentation has been updated -> will be added after Create dedicated 'Create Notification View' #623
  • Add Incident name to the different views and tables

BPN input will be in the left side formular.
Add / Delete Parts will be only within an action menu button bar on top left corner
Top table is only view
Bottom table is selectable
Buttons will be replaced to icons within the #623
Target Date will be completly handled by #623 please do not test

Out of Scope

  • ...
@ds-mmaul ds-mmaul added DISCUSSION_NEEDED This ticket needs discussion within teammembers frontend Frontend related Issues frontend_refactoring Issues regarding a specific design change in trace-x labels Feb 2, 2024
@ds-mmaul ds-mmaul added this to Trace-X Feb 2, 2024
@github-project-automation github-project-automation bot moved this to inbox in Trace-X Feb 2, 2024
@ds-mmaul ds-mmaul added the backend Backend related issues label Feb 9, 2024
@ds-mmaul ds-mmaul changed the title Create Add Parts View for notifications Create Edit Parts View for notifications Mar 4, 2024
@ds-mmaul ds-mmaul changed the title Create Edit Parts View for notifications Create Edit Notification View Mar 18, 2024
@jzbmw
Copy link
Contributor

jzbmw commented Mar 19, 2024

Decision Edit and Create View on a Notification has been rearanged so that parts is on the right and all other info on the left side

@jzbmw jzbmw removed the DISCUSSION_NEEDED This ticket needs discussion within teammembers label Mar 19, 2024
@jzbmw jzbmw moved this from inbox to backlog in Trace-X Mar 19, 2024
@jzbmw jzbmw moved this from backlog to next in Trace-X Apr 2, 2024
@ds-mwesener ds-mwesener self-assigned this Apr 2, 2024
@ds-mwesener ds-mwesener moved this from next to wip in Trace-X Apr 2, 2024
@ds-mwesener
Copy link
Contributor

ds-mwesener commented Apr 3, 2024

Open questions:

  • Modal vs. View (like Detail View).
    -> View
  • Button "Edit" outside like view details and inside
    -> Yes
  • Edit parts section, like discussed
  • What are the restriction of the parts which should be addable? E.g. asBuilt, bpn?
    -> only as built, if investigation then only supplier parts, if alert then only own parts
  • Currently target date is only supported by investigations not alerts - allow it for both?
    -> both
  • Currently BPN is only allowed within alerts not investigations - allow it for both?
    -> both
  • Decision needed label can be removed? Because all fields are editable.
    -> removed

Out of scope

  • Currently we only support one BPN as input, if necessary we should add a new story for the behaviour of accepting multiple bpns.

@jzbmw I will bring this up in a parking lot. FYI

Has been discussed in parking lot on 03.04.2024

@ds-mwesener
Copy link
Contributor

ds-mwesener commented Apr 8, 2024

Current todos:

  • Remove button needs to be clicked two times (affected parts) 👍
  • Owner Parts for Alerts 👍
  • Supplier Parts for Investigation 👍
  • Definition of selection behaviour -> After click selection will be reset 👍
  • Autocomplete does not show correct results (only type of owner should be correct - but full response of all parts) 👍
  • Pagination for affected parts 👍
  • Save button needs to be disabled on invalid form 👍
  • Toast including success / error message 👍
  • Add button disabled if nothing selected 👍
  • Remove button disabled if nothing selected 👍
  • Styles applied for buttons
  • Tooltips on all actions (disabled) 👍
  • Rename request properties of create notification 👍
    • partIds -> affectedPartIds
  • Remove request properties of create notification 👍
    • isAsBuilt
  • Rename request properties of edit notification 👍
    • bpn-> receiverBpn
    • affectedParts -> affectedPartIds
    • Detail view does not load supplier parts

We need a concept for handling autocomplete filter in a pure frontend data table, because it is designed for quering against backend api. Additionally we need to implement a pure frontend pagination.

@ds-mwesener
Copy link
Contributor

ds-mwesener commented Apr 10, 2024

Story derived from the current one: #843

As it was decided to not implement validation in backend because it was not refinement I have also derived a story for this topic: #844

@ds-mwesener ds-mwesener moved this from wip to test in Trace-X Apr 11, 2024
@ds-mwesener ds-mwesener assigned ds-crehm and unassigned ds-mwesener Apr 11, 2024
@ds-mwesener
Copy link
Contributor

ds-mwesener commented Apr 11, 2024

Feedback by Christian:

  1. Admin / User should not be able to edit -> disable and tooltip 👍
  2. SENT TO name should be name not bpn 👍
  3. After leaving an edited notification we need to update the selected notification object by requesting the backend - otherwise parts are not updated in detail view : 👎 -> Create dedicated 'Create Notification View' #623
  4. Hover on input leads to label instead of translation (edit view) 👍 -> Create dedicated 'Create Notification View' #623
  5. Remove / Add Button Tooltip is bad located 👍 -> Create dedicated 'Create Notification View' #623
  6. Tooltip is on container in create form which should only be on text 👍 -> Create dedicated 'Create Notification View' #623
  7. Title needs to be null if empty otherwise bad request 👍
  8. Text Area of create form can be resized bigger than container 👎 -> Create dedicated 'Create Notification View' #623
  9. Labels on Input should always have dot. 👍
  10. Title Edit notification (case) 👍
  11. Label of Quality Type (case) 👍
  12. Input hint Characters (case) 👍
  13. Performance -> Will be solved with: [Backend] Notification Create/Edit: Adapting AssetsAsBuilt API to allow filtering for partIds (affectedParts) and (available parts) #834
  14. Edit button should be disabled in detail view of a notification if it fullfills requirement of state (CREATED) 👍

@ds-mwesener
Copy link
Contributor

From technical perspective we will accept the performance limitations as it is complex to solve and will be either way solved with the mandatory story: #834

@ds-mwesener ds-mwesener assigned mkanal and unassigned ds-mwesener Apr 15, 2024
@mkanal
Copy link
Contributor

mkanal commented Apr 15, 2024

Testing

  • User: Admin has no permission to execute action "Edit notification" in all views
  • User: Supervisor has permission to execute action "Edit notification" in all views
  • User: User has permission to execute action "Edit notification" in all views
  • User: Supervisor : Paginate to second page > Edit notification > Back : Page 2 is displayed with edit part

@mkanal
Copy link
Contributor

mkanal commented Apr 15, 2024

Same tooltip on both actions addressing the same table. Expected table name is specified.

image

Tooltip should guide the user why the action is not executable.

image

Validation of form is no sufficient

  1. Edit notification
  2. Remove title (Quality notification could not be saved )
  3. Add title (Quality notification could still not be saved )

image

Part is not removed from available parts

image

Input validation hung

  • Entering a text in notification form blocks the application for a period for more than 5 seconds

@mkanal mkanal reopened this Apr 15, 2024
@ds-mmaul
Copy link
Contributor Author

Testing

  • User: Admin has no permission to execute action "Edit notification" in all views
  • User: Supervisor has permission to execute action "Edit notification" in all views
  • User: User has permission to execute action "Edit notification" in all views
  • User: Supervisor : Paginate to second page > Edit notification > Back : Page 2 is displayed with edit part

--> Not seen as Feedback to implement

@mkanal implemented your feedback in (catenax-ng#1167). the last two points (performance & removal of selected parts) will be considered in the issue #834

@ds-mmaul ds-mmaul moved this from test to review in Trace-X Apr 15, 2024
@ds-mmaul ds-mmaul moved this from review to done in Trace-X Apr 15, 2024
@mkanal mkanal closed this as completed Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend related issues frontend_refactoring Issues regarding a specific design change in trace-x frontend Frontend related Issues
Projects
Status: done
5 participants