[Koha-bugs] [Bug 30160] Rewrite cities admin view in React

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 23 10:25:00 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30160

--- Comment #1 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 131031
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=131031&action=edit
Bug 30160: Cities view rewrite using React

This patch, for discussion, is trying to provide the easier
implementation of the cities CRUD operation using React.

The react-bootstrap library is used to take profit of the different
bootstrap elements.

Note that it's for me an initiation at React and I don't have much skills.
I've tried to provide the more concise and readable approach, with as
less bugs as possible. Feedback welcome, especially if you know React
better than me!
The bad thing with this approach is that we are loosing the history,
clicking browser's back button won't work as before. I don't think we
can use the react-router approach as we are not having a full React app.

TODO:
* There are some UI glitches on the add/edit and delete form (TODO)
* Translation strings?

Test plan:
% yarn install
Hit Home > Administration > Cities
Add, edit and delete cities

Note that if you want to modify the JS code here you will need to run
% gulp build_js
in order to regenerate the built version.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list