unkeyed / unkey

Open source API management platform
https://go.unkey.com
Other
4.1k stars 485 forks source link

Input Values Not Resetting in Delete Dialogs #2521

Open Vardhaman619 opened 4 days ago

Vardhaman619 commented 4 days ago

Preliminary Checks

Reproduction / Replay Link (Optional)

No response

Issue Summary

The form field values in the delete dialogs for roles and permissions do not reset after the dialogs are closed and reopened. This can lead to user confusion, as previously entered values remain in the fields.

Steps to Reproduce

  1. Navigate to the dashboard.
  2. Go to Authorization > Roles > Role > Delete Role.
  3. Open the delete dialog and enter a value.
  4. Close the dialog.
  5. Reopen the delete dialog.
  6. Observe that the input field still contains the previously entered value.
  7. Repeat the steps for Authorization > Permissions > Permission > Delete Permission.

Expected behavior

The input fields in the delete dialogs should reset to their default state (empty) each time the dialog is closed and reopened.

Other information

This issue affects the user experience and could lead to accidental deletions if users are not aware that the input field retains previous values.

Screenshots

delete-dialog-form-field-value-not-reset-after-reopen.webm

Version info

.
linear[bot] commented 4 days ago

ENG-1523 Input Values Not Resetting in Delete Dialogs

Vardhaman619 commented 4 days ago

Hi, once the labeling is done, could you please assign this issue to me? I would like to work on it.

chronark commented 2 days ago

This probably happens in all dialogs, can you fix it everywhere? /award 150

oss-gg[bot] commented 2 days ago

Awarding Vardhaman619: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/Vardhaman619

Vardhaman619 commented 2 days ago

/assign

oss-gg[bot] commented 2 days ago

Assigned to @Vardhaman619! Please open a draft PR linking this issue within 48h ⚠️ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically 🕹️ Excited to have you ship this 🚀

nepalankit commented 1 day ago

/assign

oss-gg[bot] commented 1 day ago

This issue is already assigned to another person. Please find more issues here.