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

Missing Disabling Tooltip for Save Button in Create / Edit Notification #984

Closed
mkanal opened this issue May 15, 2024 · 9 comments · Fixed by #1131, #1141 or #1166
Closed

Missing Disabling Tooltip for Save Button in Create / Edit Notification #984

mkanal opened this issue May 15, 2024 · 9 comments · Fixed by #1131, #1141 or #1166
Assignees
Labels
bug Something isn't working frontend Frontend related Issues

Comments

@mkanal
Copy link
Contributor

mkanal commented May 15, 2024

Description

Current behavior

  • Save button is disabled to tooltip provides guidance for user why this is disabled

Expected behavior

  • Disabling tooltip should show reason why button is disabled

Steps to reproduce the Bug

  1. Login to Trace-X with role Admin
  2. Create notification quality alert
  3. Try to save quality alert

image

@mkanal mkanal added this to Trace-X May 15, 2024
@github-project-automation github-project-automation bot moved this to inbox in Trace-X May 15, 2024
@mkanal mkanal moved this from inbox to backlog in Trace-X May 15, 2024
@mkanal mkanal added the bug Something isn't working label Jun 21, 2024
@ds-mwesener ds-mwesener added the frontend Frontend related Issues label Jun 26, 2024
@mkanal mkanal moved this from backlog to next in Trace-X Jun 26, 2024
@ds-mmaul ds-mmaul moved this from next to wip in Trace-X Jun 28, 2024
@ds-mmaul ds-mmaul self-assigned this Jun 28, 2024
ds-mwesener added a commit that referenced this issue Jun 28, 2024
…ion-to-notification-hover

chore(uux): 984 validation on notification save hover
@ds-mmaul ds-mmaul moved this from wip to test in Trace-X Jun 28, 2024
@ds-mmaul
Copy link
Contributor

resolved issue similiar to policy edit/create. on hover over the save button, the form gets validated. By this, the user gets an indicator on where exactly to change/add input

@ds-crehm ds-crehm moved this from test to wip in Trace-X Jul 2, 2024
@ds-crehm ds-crehm removed their assignment Jul 2, 2024
ds-mwesener added a commit that referenced this issue Jul 3, 2024
…ion-to-notification-hover

chore(uux): 984 validation on notification save hover
@ds-mmaul ds-mmaul moved this from wip to test in Trace-X Jul 3, 2024
@ds-crehm
Copy link
Contributor

ds-crehm commented Jul 3, 2024

Tested on E2E: LGTM
Necessary input fields are highlighted after hovering over save button. And the shown tooltip is descriptive.

Ready for review.

@ds-crehm ds-crehm reopened this Jul 3, 2024
@ds-crehm ds-crehm moved this from test to review in Trace-X Jul 3, 2024
@ds-crehm ds-crehm assigned mkanal and unassigned ds-mmaul and ds-crehm Jul 3, 2024
@mkanal
Copy link
Contributor Author

mkanal commented Jul 4, 2024

@ds-crehm @ds-mmaul

Disabling Tooltip is not working as extended.

  • Create Quality notification from scratch
  • Fill in all fields to have a valid from
  • Remove Deadline
    Current behavior
  • Save Button is enabled and stays enabled - no info why save is not possible. No validation of form-.
    Expected behaviro
  • Save Button should be disabled with disabling tooltip

image

  • Disbling Tooltip on Edit Notification might not be correct.
    image

  • incorrect tooltip on View details - View details is working on row level
    image

@mkanal mkanal assigned ds-mmaul and ds-crehm and unassigned mkanal Jul 4, 2024
@mkanal mkanal moved this from review to wip in Trace-X Jul 4, 2024
@ds-mmaul
Copy link
Contributor

ds-mmaul commented Jul 4, 2024

@ds-crehm @ds-mmaul

Disabling Tooltip is not working as extended.

  • Create Quality notification from scratch
  • Fill in all fields to have a valid from
  • Remove Deadline
    Current behavior
  • Save Button is enabled and stays enabled - no info why save is not possible. No validation of form-.
    Expected behaviro
  • Save Button should be disabled with disabling tooltip

image

  • Disbling Tooltip on Edit Notification might not be correct.
    image
  • incorrect tooltip on View details - View details is working on row level
    image

Hi @mkanal ,
From the text i understand the following regarding the the first point:

current behaviour:
-> Without target date save button is enabled
expected behaviour:
-> Without target date save button should be disabled with form validation on date

Generally, target date is not a required field, thats why the form is valid without date (even without initially entering and then removing). So it possible to create a notification without target date. If a required target date is necessary, we need to adjust BE and FE on that.

To the two last points, this menu is for actions on multiple notifications. I made it clear with toasts and tooltips, that this functionality is not implemeneted yet, since this will be handled in this issue #922 . Currently actions on notifications are possible by the menu icon in the corresponding row of the notification

@mkanal
Copy link
Contributor Author

mkanal commented Jul 4, 2024

Hi @ds-mmaul
why is save not possible in the case when target date is not set. Please analyse the error and kindly ask for a solution. Deadline seams to block save action.

@ds-mmaul
Copy link
Contributor

ds-mmaul commented Jul 4, 2024

The save button is enabled no matter if target date is set or not.

@ds-crehm @ds-mmaul

Disabling Tooltip is not working as extended.

  • Create Quality notification from scratch
  • Fill in all fields to have a valid from
  • Remove Deadline
    Current behavior
  • Save Button is enabled and stays enabled - no info why save is not possible. No validation of form-.
    Expected behaviro
  • Save Button should be disabled with disabling tooltip

You mentioned that the expected behaviour is to make it disabled when deadline is empty. This requires adjustments in FE and BE because currently its possible to create notifications without target date. I will create an Issue for that if you confirm that we should make this change

ds-mwesener added a commit that referenced this issue Jul 4, 2024
…ion-to-notification-hover

chore(contracts): deactivated notification multi actions and fixed bug in notification creation
@ds-mmaul
Copy link
Contributor

ds-mmaul commented Jul 4, 2024

Issues resolved as discussed:

  • disabled mulit notification action menu with tooltip
  • fixed bug when creating/editing notifications, deleting the target date results in no action when clicking on save icon (even though its enabled). This is now fixed and the save button will actually save the notification

@ds-mmaul ds-mmaul moved this from wip to test in Trace-X Jul 4, 2024
@mkanal
Copy link
Contributor Author

mkanal commented Jul 4, 2024

LGFM works as intended. PO acceptance in behalf of @jzbmw

@mkanal mkanal closed this as completed Jul 4, 2024
@mkanal mkanal moved this from test to done in Trace-X Jul 4, 2024
@ds-crehm
Copy link
Contributor

ds-crehm commented Jul 4, 2024

When creating a notification and then only adding a part and not changing any other data, following tooltip is shown:
grafik
Doesn't seem correct to me, as this tooltip was intended for the situation when I'm editing a notification and not having done any changes yet.

ds-mwesener added a commit that referenced this issue Jul 4, 2024
…ion-to-notification-hover

chore(uux): 984 validation on notification save hover
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment