Commit graph

3732 commits

Author SHA1 Message Date
Robin Scholtes
9ea785fc63 replace the checkbox bootstrap styles with bootstap material v4. Not entirely sure what the issue was, but something in that checkbox decorator code caused reordering / cloning of c-recipe-li to fail 2023-08-15 20:27:35 +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
21eb177527 fix 'undefined' list item clone bug, hitboxes for recipe icons more comfortable, fix problem where the operation-dropdown would display on click / tap of elements in expanded recipe view ( mobile ) 2023-08-14 21:52:26 +12:00
Robin Scholtes
6caaf1dc99 some manual test observations 2023-08-14 19:41:57 +12:00
Robin Scholtes
421ea9e174 remove bootstrap x on search input as its not needed and just adding complexity at this moment 2023-08-14 18:48:59 +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
daac91d970 completing all documentation and other such maintenance 2023-08-14 13:33:20 +12:00
Robin Scholtes
f176a1106a search result highlighted strings, do not add op to recipe on escape 2023-08-07 16:42:06 +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
21ed26e104 update params 2023-07-25 14:58:00 +12:00
Robin Scholtes
1fc5ca641d add option to c-operation-list to set op-list to isCloneable to recipe 2023-07-25 14:54:43 +12:00
Robin Scholtes
8ebce91834 remove oplistcreate references, reorder arguments for COpList 2023-07-25 14:51:34 +12:00
Robin Scholtes
4dcf6d1efc reduce selector complexity a little 2023-07-25 13:25:55 +12:00
Robin Scholtes
6ee0ef8ed7 remove pointer events line to enable the popup of 'already added fav' 2023-07-24 21:08:31 +12:00
Robin Scholtes
ebc7ba0761 fix includes 2023-07-24 21:06:47 +12:00
Robin Scholtes
90c66bbc47 add some args so favCat is expanded after resetting or saving new favs through the modal 2023-07-24 15:03:43 +12:00
Robin Scholtes
f80fe0f4e5 remove listener 2023-07-24 15:02:36 +12:00
Robin Scholtes
7340ebd85e remove unused / moved code 2023-07-24 15:01:38 +12:00
Robin Scholtes
1092382fbc disable all li.operation popovers on mobile and enable and disable on window resize events appropriately 2023-07-24 14:57:21 +12:00
Robin Scholtes
95c9c88799 add popover functionality to c-op-li, handle enabling and disabling on window resizing etc.' 2023-07-24 14:56:18 +12:00
Robin Scholtes
d9ea487c1a add option to c-op-list to create a sortable list 2023-07-24 14:54:34 +12:00
Robin Scholtes
b3ad5bb303 function name change 2023-07-24 14:53:50 +12:00
Robin Scholtes
4ecd2bd32c remove some lines and annotations moved to other files 2023-07-24 12:16:08 +12:00
Robin Scholtes
0830ece0fb fix selector, remove some unused code 2023-07-24 12:14:59 +12:00
Robin Scholtes
a3fa46eb09 remove listeners from Manager 2023-07-24 12:12:12 +12:00
Robin Scholtes
7967bd4f08 remove unused function 2023-07-24 12:10:13 +12:00
Robin Scholtes
e40df1fec0 use mutation observer to observe fav class and update its icon accordingly any time mutation is observed 2023-07-24 12:09:35 +12:00
Robin Scholtes
1562c86211 updateFavourites to handle selected and favourite classes across the ops-lists 2023-07-24 12:08:37 +12:00
Robin Scholtes
840b6155f1 Handle selected, favourite classes and rerendering of the favcat accordingly 2023-07-21 11:48:43 +12:00
Robin Scholtes
5f32df891b A few annotations and event listener removals on disconnectedCallback 2023-07-21 11:47:00 +12:00
Robin Scholtes
6b0b368564 A few border touch ups for a cleaner and consistent look 2023-07-21 11:44:54 +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
1e5190cd7d [#181] a few classname and selector updates 2023-05-23 20:19:20 +12:00
Robin Scholtes
8d14dfa554 [#181] add some functions that allow for an individual Category to be re-rendered ( such as Favourites, but can be used for any Category in the future if needed ), additional refactoring to make previously mentioned functionality work 2023-05-23 20:17:36 +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
51aa931dee [#181] move isFavourite check up in toStubHtml to be able to add 'favourite' class on init as well 2023-05-23 20:11:40 +12:00