| 11:20 | lordeddi[m] | configurable tables in frontend: www.tabulator.info/ |
| 11:21 | lordeddi[m] | but it might even be cleaner and simpler if written it from scratch |
| 13:08 | mstenta[m] | lordeddi: neat! |
| 13:09 | mstenta[m] | So... either way I think our main constraint from a coding perspective will be figuring out how to apply it to the existing HTML output. |
| 13:09 | mstenta[m] | Since we don't have control over what the markup looks like. |
| 13:09 | lordeddi[m] | also, i don |
| 13:09 | lordeddi[m] | * i don't yet have an idea how pages are constructed |
| 13:10 | lordeddi[m] | it would be easy to have data in json form in the frontend. but i can imagine a page is build by drupal in the backend including those tables |
| 13:10 | mstenta[m] | Ideally this would be something that can be applied ONLY as a javascript function that runs on the page. |
| 13:10 | lordeddi[m] | and like you mentioned, keep the config in localStorage |
| 13:10 | mstenta[m] | Right. Drupal builds the HTML. |
| 13:10 | lordeddi[m] | to me that would suffice |
| 13:11 | lordeddi[m] | but an api call can be done after page load? that might make things a bit weird and split up though 🤔 |
| 13:11 | mstenta[m] | > but it might even be cleaner and simpler if written it from scratch |
| 13:11 | mstenta[m] | might *have* to do this, just because it might be hard/impossible to force something like tabulator to work with existing markup |
| 13:12 | lordeddi[m] | yeah, my 2c too, best to experiment. Its nice to see it has been done and def. we can learn from that project :D |
| 13:13 | mstenta[m] | honestly it might be easier to make these tables configurable server-side instead of client-side |
| 13:14 | mstenta[m] | (eg: with a configuration form that saves to the database, and then that is used when the HTML itself is built) |
| 13:14 | lordeddi[m] | maybe you are right, if that table gets "filled" in the backend page construction, then passing a JS function along to change order e.g. would not be too difficult |
| 13:14 | mstenta[m] | less snazzy than client-side JS w/ drag+drop, but probably much simpler code, we can write automated tests for it etc |
| 13:14 | lordeddi[m] | a matter of changing CSS even using JS |
| 13:14 | mstenta[m] | if you think doing it all client side is possible, it's worth a shot! |
| 13:15 | mstenta[m] | i have limited JS powers myself, so it seems difficult to me 😅 |
| 13:15 | lordeddi[m] | I would love to give it a try, hope to find some time :D |
| 13:16 | lordeddi[m] | OTOH i also see a use for, like you mentioned, doing it all in the backend. thus storing the users settings there as well |
| 13:16 | lordeddi[m] | they all have pros and cons i guess |
| 13:17 | mstenta[m] | yea... |
| 13:17 | mstenta[m] | doing it server-side might just be a site-wide setting... not user-by-user |
| 13:17 | mstenta[m] | (at least that would be easier... user-by-user is also possible, but more complicated) |
| 13:18 | mstenta[m] | the other benefit of server-side is it persists forever... not just in the browser |
| 13:18 | lordeddi[m] | yup, so switching from laptop to phone does not require configuring it again |
| 13:21 | mstenta[m] | (unless we also had a mechanism for saving the setting from client-side to the database... which is possible... but at that point it just feels easier to do it all server-side). |
| 13:22 | lordeddi[m] | that's why i mentioned that grab-n-order thingy in the locations page, you might already have some logic for it |
| 13:22 | lordeddi[m] | maybe i'm wrong though 😅 |
| 13:23 | * | farmBOT has joined |
| 13:23 | lordeddi[m] | i see that table has some HTML id's on most columns, which makes using JS quite easy. |
| 13:23 | lordeddi[m] | `document.getElementById` and grab the columns then re-create/overwrite the existing table... hahah i'm sure nothing can go wrong with that approach 😆 |
| 13:27 | mstenta[m] | > that's why i mentioned that grab-n-order thingy in the locations page, you might already have some logic for it |
| 13:27 | mstenta[m] | ah yea that one is unique, and is designed more from the client-side perspective to use this library: inspire-tree.com/ |
| 14:47 | symbioquine[m] | <mstenta[m]> "You should actually regular-blog..." <- Any objection to it being a pretty light-weight post similar to farmos.org/blog/2022/farmos-in-5-minutes (With maybe a tiny bit more of a preface/disclaimer about Asset Link being both a contrib module and pre-alpha.) |
| 14:50 | symbioquine[m] | * to farmos.org/blog/2022/farmos-in-5-minutes? (With |
| 14:51 | mstenta[m] | that's what i was thinking too :-) |
| 14:51 | symbioquine[m] | Cool |
| 14:51 | mstenta[m] | should we use the "(video)" convention of indicating that a post is mostly a video? |
| 14:51 | symbioquine[m] | yes |
| 16:00 | * | dazinism[m] has quit (Quit: You have been kicked for being idle) |
| 17:11 | symbioquine[m] | I guess we don't have Netlify preview generation for the farmOS-community-blog repository pull requests? |
| 17:13 | symbioquine[m] | Hmmm, seems like we should: github.com/farmOS/farmOS-community-blog/ |
| 17:14 | symbioquine[m] | Is there an easy way to see if Netlify "workflows" (is that the right word) are getting queued/triggered? |
| 17:15 | symbioquine[m] | Maybe you know ^ paul121? |
| 17:25 | paul121[m] | > Is there an easy way to |
| 17:25 | paul121[m] | No, I don't think so |
| 17:25 | paul121[m] | I think if we merge into the farmOS-community-blog/netlify-preview branch then Netlify will create a preview |
| 17:26 | paul121[m] | But then: |
| 17:26 | paul121[m] | - I'm not sure how to access the preview |
| 17:26 | paul121[m] | - And not sure the best way to do this from a PR workflow |
| 17:26 | symbioquine[m] | I was hoping it would work like this: github.com/farmOS/farmOS.org/pull/67#iss |
| 17:26 | * | uploaded an image: (62KiB) < libera.ems.host/_matrix/media/v3/downloa > |
| 17:27 | paul121[m] | Right |
| 17:27 | paul121[m] | There is this! github.com/farmOS/farmOS-community-blog/ |
| 17:27 | symbioquine[m] | I know there's an extra layer of indirection in the farmOS-community-blog case |
| 17:29 | paul121[m] | And it seems like Netlify can accept env variables via that API. So we could perhaps paramterize the farmOS/farmOS-community-blog branch to use. But this would require a change in farmOS/farmOS.org. I described this here: github.com/farmOS/farmOS-community-blog/ |
| 17:29 | paul121[m] | but that is only a theory :-) |
| 17:38 | symbioquine[m] | Okay, well for now I guess I'll try to test my pull request a little more thoroughly locally and post a screenshot to the PR... |
| 17:43 | mstenta[m] | I'm sure it's fine symbioquine |
| 17:43 | mstenta[m] | Just needs an approval from paul121 or jgaehring to merge |
| 17:45 | symbioquine[m] | mstenta[m]: Well, I'm paranoid: github.com/farmOS/farmOS-community-blog/ |
| 17:56 | symbioquine[m] | > www.youtube.com/watch?v=VnZac6lA1_k |
| 17:56 | symbioquine[m] | Seems like some of the stuff shown here could lead to some very interesting low-cost farmOS-integrated devices... |
| 18:01 | FarmerEd[m] | actually trying to integrate some ESP32's right now 😁 |
| 18:01 | FarmerEd[m] | Probably not as interesting as it's just EID readers |
| 18:15 | FarmerEd[m] | Maybe there's enough categories but a hardware section could be interesting 🤔 |
| 18:25 | symbioquine[m] | forum.goatech.org/c/farmhack/21 |
| 18:29 | mstenta[m] | symbioquine: you just sent me down memory lane :-) |
| 18:29 | mstenta[m] | farmhack.org/forums/discuss-possible-pla |
| 18:31 | FarmerEd[m] | Is it still active though? I tried signing up to the site a few times but never managed to get a login. |
| 18:31 | mstenta[m] | goat? or farmhack? |
| 18:36 | FarmerEd[m] | Farmhack |
| 18:37 | mstenta[m] | oh yea dunno the status of that |
| 18:37 | mstenta[m] | but forum.goatech.org/c/farmhack/21 would be a good place to continue |