Robin Scholtes
|
840b6155f1
|
Handle selected, favourite classes and rerendering of the favcat accordingly
|
2023-07-21 11:48:43 +12:00 |
|
Robin Scholtes
|
6f6e9cce39
|
add c-operation-list so any of these elements ( category list, category list item, operation list, operation list item ) can be created individually or simply through their parent. Also fix some annotations across the app that used event instead of Event, causing the IDE to get confused
|
2023-06-16 17:08:43 +12:00 |
|
Robin Scholtes
|
b1b0be254b
|
introducing and refactoring to using custom components for building category / cat lists / operation lists. This allows us to group relevant functionality more efficiently, easier maintenance in the future. We could, one by one, refactor and encapsulate components across CC in this manner. A very convenient and much needed effect of this implementation is that these components can hold functionality and references exclusively pertaining to themselves. Separating said functionality increases code compartmentalisation while references and event listeners requiring these references are guaranteed to be up to date with the component at all times.
|
2023-06-16 12:09:04 +12:00 |
|
Robin Scholtes
|
bff22d4b7f
|
[#181] refactor favourites updating: rather than building all of the ops-lists in Operations every time a new operation is added or removed, only rerender favCat and handle the updating of the individual operations 'favourite' classes and icons
|
2023-05-23 20:15:15 +12:00 |
|
Robin Scholtes
|
2fe5cdc605
|
[#181] update function names and make the linter happy
|
2023-05-23 20:09:14 +12:00 |
|
Robin Scholtes
|
3a10e4a4fb
|
[#181] update some function names and documentation
|
2023-05-23 20:07:24 +12:00 |
|
Robin Scholtes
|
6e6d6e0ed5
|
update some docs, todo.txt
|
2023-05-15 22:01:23 +12:00 |
|
Robin Scholtes
|
4b030c7d61
|
on user test request: when the recipe pane is maximised but the rec-list is empty, open the operations-dropdown on click of the recipe-list ( which holds no items )
|
2023-05-15 20:54:49 +12:00 |
|
Robin Scholtes
|
9ec902a369
|
add a different background color on op selected, based on user test feedback
|
2023-05-15 13:34:13 +12:00 |
|
Robin Scholtes
|
82837254ea
|
fix selected class bug messed up after refactoring
|
2023-05-15 12:52:13 +12:00 |
|
Robin Scholtes
|
9a7ec25493
|
rename recipeList var to recipeListItems ( since we are selecting list items ), and ingredient to item
|
2023-05-12 18:01:31 +12:00 |
|
Robin Scholtes
|
8649b90a04
|
optimise addSelectedClass func
|
2023-05-12 17:58:56 +12:00 |
|
Robin Scholtes
|
8ece85127a
|
remove unneccesary array length checks
|
2023-05-12 17:55:41 +12:00 |
|
Robin Scholtes
|
df781bec00
|
add function to check for window width and use that throughout the app for more convenient future use
|
2023-05-12 17:50:46 +12:00 |
|
Robin Scholtes
|
6a1514db30
|
rename functions to better adhere to conventions
|
2023-05-12 17:34:39 +12:00 |
|
Robin Scholtes
|
5b39d0fe65
|
change updateVisibility func name to setElementVisbility
|
2023-05-12 17:20:11 +12:00 |
|
Robin Scholtes
|
9fbef2c163
|
[#181] cleanup to prep draft PR for PR
|
2023-05-10 23:08:14 +12:00 |
|
Robin Scholtes
|
a7a76ec7ef
|
[#181] update README, run / fix lint
|
2023-05-10 21:53:29 +12:00 |
|
Robin Scholtes
|
0868d97cee
|
[#181] adjust #controls panel template and css so it will automatically scale based on #controls height, which makes adjustWidth() redundant. Controls is now 50px height on mobile ( 70 was just a lot of wasted space that can be better spend )
|
2023-05-10 15:27:43 +12:00 |
|
Robin Scholtes
|
5362f9fda4
|
[#181] add
|
2023-05-09 22:14:36 +12:00 |
|
Robin Scholtes
|
f1257ea356
|
bit of refactoring
|
2023-05-09 18:42:14 +12:00 |
|
Robin Scholtes
|
ee9ea051d1
|
[#181] handle the correct resetting of layouts in any maximised pane situation, i.e. window resizing while panels are maximised etc. Prevent mobile keyboard popup window resize events to trigger layout resetting when panes are maximised, use JS to calculate the innerHeight available for mobile devices as they are of variable / unreliable / inconsistent heights
|
2023-05-09 14:56:44 +12:00 |
|
Robin Scholtes
|
f80284cb36
|
[#181] adjust Sortable recipe list for a nice mobile experience ('long' press before grab kicks in so you can still scroll normally ), add some visual feedback when sortable-chosen is set on a li, tweak the animations and threshold a bit for a nicer experience
|
2023-05-03 13:32:17 +12:00 |
|
Robin Scholtes
|
8bed81c5ee
|
[#181] disable tooltips on mobile UI
|
2023-05-02 20:42:57 +12:00 |
|
Robin Scholtes
|
4c2c934cd4
|
[#181] add maximiser icons to recipe, input and output, and handle maximising of targets accordingly. Desktop view remains as normal, where only output can be maximised
|
2023-05-02 16:58:20 +12:00 |
|
Robin Scholtes
|
89c1ab12ab
|
[#181] update opListCreate to desktopOpListCreate ( to always include drag events and popovers ) and the inverse for mobile. Now it is ready for window resizing
|
2023-04-27 21:35:50 +12:00 |
|
Robin Scholtes
|
c6cc998100
|
[#181] fix search result data-name issues ( purging html only for data-name attribute, update op-list checkmarks accordingly )
|
2023-04-27 21:13:14 +12:00 |
|
Robin Scholtes
|
bc93969d4b
|
[#181] correctly handle checkmarks after favourites updates and resetting, update addSelectedClass to put selected on all operations with target data name ( as sometimes there will be 2 of the same rather than 1, in the case of a favourited operation ). Make updates to pass the op-title around based by the data-name attr instead of innerText
|
2023-04-27 14:40:08 +12:00 |
|
Robin Scholtes
|
5d82ca66f3
|
[#181] handle checkmarks on window resizing
|
2023-04-26 23:16:28 +12:00 |
|
Robin Scholtes
|
5e9aa5cd09
|
[#181] fix selected / checkmark classes on operation list, based on the current recipe list. Update TODO
|
2023-04-26 23:08:44 +12:00 |
|
Robin Scholtes
|
ccc5095763
|
[#181] remove obsolete func, some debugging > updating todos with observations
|
2023-04-24 23:48:32 +12:00 |
|
Robin Scholtes
|
ec45d95244
|
[#181] add 'selected' class on double click, which is not visible on desktop ( but we can easily opt to leave it there if we would want to )
|
2023-04-24 22:55:55 +12:00 |
|
Robin Scholtes
|
455e99dbf6
|
[#181] update window resizing according to updates
|
2023-04-24 22:44:09 +12:00 |
|
Robin Scholtes
|
2a9080fb3d
|
[#181] update opListCreate with new draggable param for mobile, update opDblClick to use data-name instead of innerText
|
2023-04-24 22:41:22 +12:00 |
|
Robin Scholtes
|
cff0dbcd11
|
[#181] add 'draggable' bool param to createSortableList so we can disable drag/sort events on mobile UI if we need to
|
2023-04-24 22:40:10 +12:00 |
|
Robin Scholtes
|
6a1501e7ae
|
[#181] fix glitchy modal popover ( popovers get reinitialised after drag events. This still happens on mobile ops-list )
|
2023-04-24 16:13:02 +12:00 |
|
Robin Scholtes
|
4a761673c0
|
[#181] disable popovers on mobile UI on init and resizing events
|
2023-04-24 11:32:34 +12:00 |
|
Robin Scholtes
|
a252c34968
|
[#181] add disabling of popovers on small screens, update todos and operation CSS
|
2023-04-23 11:20:01 +12:00 |
|
Robin Scholtes
|
1fd72363bd
|
[#181] remove calcControlsHeight as the component is always 70px in height now, and it caused issues on mobile UI. It's become obsolete
|
2023-04-20 21:05:44 +12:00 |
|
Robin Scholtes
|
a547935f0a
|
[#181] resolve favourites cat closing on initial opening mobile UI, update TODO
|
2023-04-20 20:54:14 +12:00 |
|
Robin Scholtes
|
3d03a31f38
|
[#181] refactor some of the event handler in OperationsWaiter
|
2023-04-20 19:45:37 +12:00 |
|
Robin Scholtes
|
caa57aeb74
|
[#181] rename hideOperations / resetOperations to more semantic name
|
2023-04-20 19:21:15 +12:00 |
|
Robin Scholtes
|
7ae22ff16b
|
[#181] resolve operations-dropdown behaviour: search-result are at the top if applicable, categories below. clearing search value will display categories
|
2023-04-20 14:59:22 +12:00 |
|
Robin Scholtes
|
12116e53b1
|
[#181] move setVisibility to App.mjs since it's pretty generic and could be reused. Update TODO
|
2023-04-19 23:31:06 +12:00 |
|
Robin Scholtes
|
c779d39a2b
|
[#181] resolve lingering layout issues window resizing, update todos
|
2023-04-19 22:25:23 +12:00 |
|
Robin Scholtes
|
0ab31ac897
|
minor 'typo' fix in OperationsWaiter setVisibility doc
|
2023-04-19 18:27:15 +12:00 |
|
Robin Scholtes
|
6e4a813e1f
|
[#181] set mobile and desktop UI on init and window resize without errors
|
2023-04-19 15:35:17 +12:00 |
|
Robin Scholtes
|
e74d7998fd
|
[#181] resetOperations on escape key
|
2023-04-18 22:28:19 +12:00 |
|
Robin Scholtes
|
2093dac4f9
|
[#181] remove scattered todos and aggregate in temporary todo.txt file, add new css files to split up huge IO stylesheet for better future DevX
|
2023-04-18 20:22:41 +12:00 |
|
Robin Scholtes
|
7648c6dce4
|
[#181] add some rudimentary code to open and close operations at the appropriate moments
|
2023-04-17 20:44:47 +12:00 |
|