Skip to content

Comments

Fixed the issue and added a unit test#1245

Open
interfinityOfficial wants to merge 1 commit intomainfrom
1123-a-request-thats-pre-approved-can-be-edited
Open

Fixed the issue and added a unit test#1245
interfinityOfficial wants to merge 1 commit intomainfrom
1123-a-request-thats-pre-approved-can-be-edited

Conversation

@interfinityOfficial
Copy link
Collaborator

Summary of Changes

For the requestor (USER context), the Edit action in the Actions dropdown is now disabled for any status other than REQUESTED or DECLINED, so PRE_APPROVED (and other non-editable statuses) can no longer be edited. The disabled logic was updated from “only allow DECLINED” to “allow REQUESTED or DECLINED,” which both fixes PRE_APPROVED being editable and restores Edit for REQUESTED.

Checklist

  • I checked for existing implementations and confirmed there is no duplication
  • I tested this feature locally
  • I had Copilot review the PR and incorporated feedback (or explained why not)
  • I confirmed there are no conflicts
  • I confirmed my PR passed all tests
  • I added or updated unit tests (or explained why not)
  • I attached screenshots or a video demonstrating the feature
  • I requested a code review from at least one other teammate

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.

BUG: A request that's PRE-APPROVED can be Edited by the requestor

1 participant