feat: allow row editing#131
Conversation
aleksasiriski
left a comment
There was a problem hiding this comment.
Great start, I haven't looked at everything yet but found a few questions :)
|
The feature is done, only polishing left. I want to somehow try and display combo boxes for foreign keys. |
|
Also you don't have to review every change I make :) Save time and review it after I make draft a proper PR. |
There was a problem hiding this comment.
Looks very good, but next to the two comments I left:
- Enter while editing any field should submit the form (save changes)
- There should be a toast on successful change
- Form validation messages should appear under (or over, popover?) the fields when they're incorrect (instead of just a toast saying
Invalid form input) - There should be a way to cancel the edit (next to save button another cancel button)
|
If you need help with any of the requests please let me know :) |
|
|
Feedback we got from the rectorate building;
From the security side, regular users shouldn't be able to do this kind of major edits, since some rogue user could just delete or edit someones whole history, but I guess that admins could be trusted to do that, so maybe it can be a feature in admin panel? |
Perhaps there should be a simple dialog that asks for secret if the identifier is being changed. If it's untouched, no secret should be required. |
|
I can easily add a delete button along with the edit button. |
|
Can you resolve conflicts with main? Also, definately any edit should require a dialog that asks for admin secret |
|
@GrbavaCigla Will you continue work on this? There's was an idea to bring "admin sessions" to the app so that we can use better UIs for admins (tables with real data since it won't be public any more). Maybe this way we can make editing easier and restrict it only to admins, while also keeping the main search table clutterless. |
Closes #97.