-
Notifications
You must be signed in to change notification settings - Fork 6
Initial Frontend Refactoring Guidelines and Ideas
Krešimir Knežević edited this page Jan 7, 2018
·
11 revisions
20180107
- replace material css fonts with font awesome
- update used contrib
/healthsites-table-reports
- remove modal form row click
- add redirect to Feature Details Page event on row click
/feature-by-uuid/[uuid - 3b61ff63-76a4-4f76-a6ad-2c70e26c8a6a]
-
accessed from Table Reports Feature Page, on table row click
-
shows feature details
-
add base markup / layout [x]
-
add line chart [x]
-
make line chart responsive[]
-
add map [x]
-
make map responsive [x]
-
add feature marker to map [x]
-
marker is draggable [x]
-
add form []
-
add css
-
New index page /
-
Add navigation bar
-
Add basic Layout with panels
-
Add Donut Chart
-
Bind Donut Chart to Data
-
Add groups count panel
-
Add items count panel
- Remove unused client side libraries, includes and code [x]
- Move all client side code to
heathsites/
[x] - Begin namespacing globals ->
WB
[x] - Fix errors from moving files [x]
- Add base Url, view and template for the Report Table [x]
- IE 11 must be supported
- no build process in this initial phaze
- focus on functional javascript part (logic not visual)
- use jQuery for visual stuff, use vanilla for everything else
- discuss replacing jQuery with vanilla (2nd - 3rd iteration)
- move hardcoded lists, objects to config objects(e.g. assessment types) [x]
- remove unused functions, modules and libraries [x]
- move away from global scope
- use namespaces [x]
- create main js module (namespace) named hcid [x]
- for styling use scss / CSS, avoid using inline CSS
- replace majority of backend partial templates with dynamic js
- *.html template files in template folders
- replace only partial templates (small / one liner)
- leave form templates intact (for now)
- main template view should return prepared template
+------+------+----+-----+----+---------+---------+
| Logo | Home | Wb | Rep | | Profile | Log out |
+------+------+----+-----+----+---------+---------+
- home [link]
- waterboard [link]
- reports [link]
- profile [dropdown]
- update profile [link]
- change password [link]
- admin page [link]
- logout [link]
+---------------------------------------+
| < Dashboard [rst all] |
+---------------------------------------+
| | header [btn] |
| +-------------------+
| info | |
| | line chart |
| | |
+-------------------+-------------------+
| cntry [btn] | captor [btn] |
+-------------------+-------------------+
| | |
| pie chart | pie chart |
| | |
+-------------------+-------------------+
| [drop] [search by neame] [btn] |
+-------------------+-------------------+
| |
| line chart |
| |
+-------------------+-------------------+
Chart Holder With Header and Action Button
Leaflet Map
- zoom in button
- zoom out button
- Circle Drawing Tool
- Polygon Drawing Tool
- Line Drawing Tool
- Icons
- layer selector
Accordion Form and Form Fields