Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Edit ran link #235

Merged
merged 3 commits into from
Nov 9, 2021
Merged

Edit ran link #235

merged 3 commits into from
Nov 9, 2021

Conversation

jduss4
Copy link
Collaborator

@jduss4 jduss4 commented Nov 8, 2021

Description of change

Adds editing functionality to the monitoring link on a complaint detail page. Ideal error functionality was not in this issue, but can be done as part of #207 if we get there.

Acceptance Criteria

  • can edit a linked review

How to test

Go to a complaint detail page, choose an existing linked review (or add one if there isn't anything already), click the pencil icon, change the number, check that it saved correctly!

Issue(s)

Checklist

To be completed by the submitter:

  • Meets issue criteria
  • Code is meaningfully tested
  • Meets accessibility standards (WCAG 2.1 Levels A, AA)

To the Reviewer

This project is using Conventional Comments to give structure
and context to PR comments. Please use these labels in your comments.

  • praise:
  • nitpick:
  • suggestion:
  • issue:
  • question:
  • thought:
  • chore:

combines javascript but nothing else, as the partials would
need a lot of locals passed in, I think
@jduss4 jduss4 requested review from kbighorse and Sgtpluck November 8, 2021 21:07
Copy link
Collaborator

@Sgtpluck Sgtpluck left a comment

Choose a reason for hiding this comment

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

This looks great! One tiny commented out line of code to remove

format.js { render inline: "location.reload(true);" }
else
format.js { render inline: "alert('there was an error changing the id of the RAN review');" }
# format.js { render "update_errors" }
Copy link
Collaborator

Choose a reason for hiding this comment

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

[nitpick] please remove this comment!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I left it in there as a reminder to put it back in if we do #207 , but I can remove it and the matching TTA one and just leave a comment in the issue, if you prefer!

Copy link
Collaborator

Choose a reason for hiding this comment

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

i'd prefer it to be a TODO to make what needs to happen really clear, if you want to leave it in the code.

@jduss4 jduss4 merged commit 53f8d72 into main Nov 9, 2021
@jduss4 jduss4 deleted the edit_ran_link branch November 9, 2021 16:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task from 201: Edit monitoring link
2 participants