Conversation
…ld note and resubmitting
ojmakinde
left a comment
There was a problem hiding this comment.
Looks great, but a few changes were suggested. Also, two things:
- On smaller screens, the Edit and Delete button have no spacing (image below). We can use custom Bootstrap to help with that.
- Secondly, on a large screen, if you add a note that is long enough, the formatting of the Edit and Delete buttons become messed up (image for before and after).
- Lastly, if a note is long enough, the content gets cut half way. In the image example below, I have a write up. When I save the note, not all the content in the write up is saved.
After saving:
app/static/js/userProfile.js
Outdated
| $("#addNoteTextArea").val('') // clear the text | ||
| $("#notesSaveButton").data('mode', 'add') // set mode to add | ||
| $("#notesSaveButton").data('noteid', null) // clear any stored noteid |
There was a problem hiding this comment.
also, i don't think the comments here are necessary. can we remove them?
ojmakinde
left a comment
There was a problem hiding this comment.
Looks great, but a few changes were suggested. Also, two things:
- On smaller screens, the Edit and Delete button have no spacing (image below). We can use custom Bootstrap to help with that.
- Secondly, on a large screen, if you add a note that is long enough, the formatting of the Edit and Delete buttons become messed up (image for before and after).
- Lastly, if a note is long enough, the content gets cut half way. In the image example below, I have a write up. When I save the note, not all the content in the write up is saved.
After saving:
ojmakinde
left a comment
There was a problem hiding this comment.
Two last things:
-
Currently, if you hit the delete button for a note, there is no modal confirmation for deleting. If a user clicks the Delete button on accident, they may accidentally delete a note. I believe we have delete modals in other places you can import and use.
-
Small nit, but the modal stores the content after a note is created. Ideally, the textbox should only keep the text (arguably) if a note is not created. Example below:
Hitting the edit button and reopening the modal:

This should be a brief fix, but if it takes more than an hour or two, I'm fine with either identifying and fixing it, or merging it straight altogether. Great work.
Meatchema
left a comment
There was a problem hiding this comment.
Hello, something that I noticed is that the Edit button is about half the size as the delete button which should probably be adjusted. I also tested out how much text can be accepted now that you changed the code from CharField to TextField() as well as changing noteContent to Text. This should allow for extended text but for some reason it doesn't.
I am wondering if you would need to change the code of the box itself so that it expands as the text gets larger.
Next, I tested the button stacking issue and it is no longer there. Nice!
Other than the size of the edit button and the long text issue, all basic functions work.
…Team/celts into Add-and-Delete-Buttons
| $("#noteDropdown").val(visibility) | ||
|
|
||
|
|
||
| if (isBonner === 'yes') { |
There was a problem hiding this comment.
According to the issue description: As of now, when we create a Bonner note on the User Profile page in the Bonner Program accordion, there is no ability to edit or delete the note. Add such abilities.
My Feedback: You did well with Notes section for User profile, congratulations on that. You have implemented the edit/delete button but in the Bonner Section's note there isn't still the edit/delete button option which the issue description wants you to do so I would want you to implement that too so that it fits well with the issue description.
| bonnerNoteOff() | ||
| } | ||
|
|
||
| $("#notesSaveButton").data('noteid', $(this).data('noteid')) |
…a previous edit session.
2a82a86 to
42c9a7e
Compare






Issue Description
Fixes #1630
This update allows users to edit an existing note using the same modal that is used to add a new note.
When a user clicks Edit, the modal now opens with the note’s:
Text already filled in
Changes
Added logic so clicking Edit opens the modal with the note’s current information.

Fixed the edit button’s data-* attributes so they match the correct model fields.
If editing, the old note is deleted.
The updated version is saved as a new note.
Note Editing
Go to My Profile under Event List.
Create a note and save
Click Edit on the existing note.
Confirm the updated text appears correctly.
Click save.
Confirm the updated note appears correctly.