Commit graph

47 commits

Author SHA1 Message Date
Robin Scholtes
c9f40928fb eslint, rec-list dragging indices 2023-08-16 17:29:26 +12:00
Robin Scholtes
047750fda4 fix one more constructor build() dupe 2023-08-16 12:55:41 +12:00
Robin Scholtes
bf27cbb641 fuse desktop/mobile splitters into one function, update accordingly across files 2023-08-15 16:41:22 +12:00
Robin Scholtes
47c8af7284 rename some vars for readability 2023-08-15 15:50:10 +12:00
Robin Scholtes
4dc4645def remove listItemUpdate related classes into c-operation-list and simplify code, as duplicates in the operation lists are now no longer an issue in the context of this. Add a custom events to dispatch on change of favourites 2023-08-15 15:19:11 +12:00
Robin Scholtes
6a11d14794 move and remove some redundant code 2023-08-15 13:51:12 +12:00
Robin Scholtes
c110e5a59f fix 'clear all 2023-08-15 13:02:33 +12:00
Robin Scholtes
4947f809a9 move breakpoint icon functionality into c-recipe-li, upgrade code a bit for className consistency and replacing 'parentNode.parentNode' with this.queryselector 2023-08-15 12:41:33 +12:00
Robin Scholtes
5d876fb09a move disable-icon click functionality to c-recipe-li 2023-08-15 12:31:59 +12:00
Robin Scholtes
b7e0518cc7 move operation removal from recipe list to c-recipe-li and remove all associated old code 2023-08-15 11:28:06 +12:00
Robin Scholtes
36224388fb rename c-ingredient-li to c-recipe-li, update TODOs 2023-08-14 22:00:15 +12:00
Robin Scholtes
5e6327a400 [#181] fix some event issues ( dragging and dropping, mobile taps ), fix popover issues ( popovers properly disappear ), eslint cleanup fixes 2023-08-14 17:34:23 +12:00
Robin Scholtes
8afcfa0b45 minor cosmetic consistency fixes with original 'design' 2023-08-14 15:45:11 +12:00
Robin Scholtes
eb53667919 fix all ESlint errors 2023-08-14 14:30:25 +12:00
Robin Scholtes
85fff21068 search results functionality 2023-08-03 16:57:08 +12:00
Robin Scholtes
4ba31236e9 fix drag & drop settings mobile vs desktop 2023-08-02 19:01:03 +12:00
Robin Scholtes
ede69a7a1a restore recipe list ordering, properly removing c-ingredient-li and update 'selected' checkmarks in c-op-list 2023-08-02 18:54:00 +12:00
Robin Scholtes
4a07d52230 restore recipe on refresh 2023-08-02 17:38:52 +12:00
Robin Scholtes
4ecd2bd32c remove some lines and annotations moved to other files 2023-07-24 12:16:08 +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
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
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
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
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
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
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
4a761673c0 [#181] disable popovers on mobile UI on init and resizing events 2023-04-24 11:32:34 +12:00
n1474335
cab83cae35 Switched arg layout to use flexbox instead of css grid 2023-03-09 17:31:46 +00:00
n1474335
b92501ee35 Introduced use of conditional chaining operator 2022-10-28 13:24:03 +01:00
n1474335
7c8a185a3d HTML outputs can now be selected and handle control characters correctly 2022-07-18 18:39:41 +01:00
n1474335
1abc46058c Added a CodeQL workflow to check for bugs through code analysis. Fixed numerous bugs and implemented safeguards as already reported. 2021-02-10 13:13:19 +00:00
n1474335
6a1d11b9b5 Argument hints are not tooltips instead of bmd-help elements 2019-10-31 13:39:06 +00:00
n1474335
566517d20f Imports now specify the file extension to support Node v12 2019-07-09 12:23:59 +01:00
j433866
dd5038c15b Bring up to date with master 2019-07-01 11:51:17 +01:00
j433866
b77239fc15 Move waiters and workers into separate folders. 2019-06-06 09:09:48 +01:00
Renamed from src/web/RecipeWaiter.mjs (Browse further)