WIP: 490_View_refactoring #491

Draft
mpeltriaux wants to merge 32 commits from 490_View_refactoring into master
Owner

Implements #490

Implements #490
mpeltriaux added 18 commits 2025-10-20 13:41:27 +02:00
* introduces BaseIndexView class
* refactors index view for interventions
* refactors index view for compensations
* refactors index view for eco account
* refactors index view for ema
* introduces BaseNewIdentifierGeneratorView class
* refactors new identifier generator view for ema
* refactors identifier generator view for interventions
* simplifies same view for ema
* refactors identifier generator view for compensation
* refactors identifier generator view for ecoaccount
* simplifies base identifier generator view even further
* refactors majority of user views into class based views
* introduces BaseModalFormView and BaseView for even more generic usage
* renames url identifier user:index into user:detail for more clarity
* refactors deduction views on interventions and eco accounts from function to class based
* introduces basic checks on shared access and permission on BaseView on dispatching --> checks shall be overwritten on inheriting classes
* refactors function based report views into class based for EIV, OEK, EMA, KOM
* introduces BaseReportView for proper inheritance of shared logic
* refactors generating of qr codes into proper class
* refactors login required from method decorator to mixin inheritance
* introduces BaseDetailView
* refactors detail views for EIV, KOM, OEK, EMA from function based to class based
* refactors already class based HomeView to inherit from new BaseView
* introduces BaseFormView and BaseNewSpatialLocatedObjectFormView
* refactors new intervention view from function to class
* refactors edit intervention view from function to class
* refactors views for new ema and edit ema from function to class based
* moves shared access check to base edit form view to be checked for every inheriting class
* fixes bug where private variables changed on singleton objects
* updates translations
* refactors new and edit compensation views from function to class based
* adds checked property to compensation to return parent-intervention's checked info
* fixes bug where compensation could be added to recorded intervention
* updates translations
* refactors new and edit eco account views from function to class based
* removes info message if checked intervention is altered and loses the current checked state
* updates comments/documentation
* removes code duplicates
* fixes display error where modal form was hidden behind menu bar of map client
* fixes bug where compensation could not be created directly from intervention
mpeltriaux added 2 commits 2025-10-20 16:14:03 +02:00
* fixes bug where a form error would trigger a wrong error warning
* extends BaseModalFormView to hold general logic for processing GET and POST requests for BaseModalForm endpoints
* refactors uuid check to use a specific parameter instead of kwargs
* fixes css bug where modal form input elements would not be visible
* refactors check view for intervention from function to class
* refactors DeductionViews to inherit from extended BaseModalFormView
mpeltriaux added 1 commit 2025-10-20 16:32:15 +02:00
* refactors AbstractRecordModalForm
* refactors recording view for ema, intervention and eco account
mpeltriaux added 3 commits 2025-10-21 09:25:01 +02:00
* refactors AbstractCompensationActionViews (new, edit, remove) to inherit from BaseModalFormView
* refactors KOM, OEK, EMA views for compensation actions
* moves message template strings into message_templates.py
* refactors AbstractDeadlineViews (new, edit, remove) to inherit from BaseModalFormView
* refactors KOM, OEK, EMA views for deadline views
* refactors tests for deadline views to check whether they work properly
mpeltriaux added 3 commits 2025-10-21 14:56:31 +02:00
* refactors new, edit, get and delete views for eiv, kom, oek and ema
* introduces
* refactors parcel view to inherit from BaseView
* refactors log views to inherit from BaseView
mpeltriaux added 1 commit 2025-10-21 17:03:17 +02:00
* refactors resubmission view for eiv, kom, oek, ema
* removes unused attributes on BaseModalFormView
mpeltriaux added 4 commits 2025-10-21 21:05:50 +02:00
* refactors share views for eiv, oek, ema (kom does not have any)
* fixes bug for sharing via token where permission was too tight
* refactors remove view for kom, eiv, oek and ema
* introduces BaseRemoveModalFormView
* moves html blocking logic from BaseModalForm into BaseModalFormView
* refactors compensation state views for kom, ema, oek
* updates tests
* refactors before-after state toggling into initialization of NewCompensationStateModalForm
This pull request has changes conflicting with the target branch.
  • konova/static/css/konova.css

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 490_View_refactoring:490_View_refactoring
git checkout 490_View_refactoring
Sign in to join this conversation.
No description provided.