< 232023-02-24⋎25 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
11:20lordeddi[m]configurable tables in frontend: www.tabulator.info/
11:21lordeddi[m]but it might even be cleaner and simpler if written it from scratch
13:08mstenta[m]lordeddi: neat!
13:09mstenta[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:09mstenta[m]Since we don't have control over what the markup looks like.
13:09lordeddi[m]also, i don
13:09lordeddi[m]* i don't yet have an idea how pages are constructed
13:10lordeddi[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:10mstenta[m]Ideally this would be something that can be applied ONLY as a javascript function that runs on the page.
13:10lordeddi[m]and like you mentioned, keep the config in localStorage
13:10mstenta[m]Right. Drupal builds the HTML.
13:10lordeddi[m]to me that would suffice
13:11lordeddi[m]but an api call can be done after page load? that might make things a bit weird and split up though 🤔
13:11mstenta[m]> but it might even be cleaner and simpler if written it from scratch
13:11mstenta[m]might *have* to do this, just because it might be hard/impossible to force something like tabulator to work with existing markup
13:12lordeddi[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:13mstenta[m]honestly it might be easier to make these tables configurable server-side instead of client-side
13:14mstenta[m](eg: with a configuration form that saves to the database, and then that is used when the HTML itself is built)
13:14lordeddi[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:14mstenta[m]less snazzy than client-side JS w/ drag+drop, but probably much simpler code, we can write automated tests for it etc
13:14lordeddi[m]a matter of changing CSS even using JS
13:14mstenta[m]if you think doing it all client side is possible, it's worth a shot!
13:15mstenta[m]i have limited JS powers myself, so it seems difficult to me 😅
13:15lordeddi[m]I would love to give it a try, hope to find some time :D
13:16lordeddi[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:16lordeddi[m]they all have pros and cons i guess
13:17mstenta[m]yea...
13:17mstenta[m]doing it server-side might just be a site-wide setting... not user-by-user
13:17mstenta[m](at least that would be easier... user-by-user is also possible, but more complicated)
13:18mstenta[m]the other benefit of server-side is it persists forever... not just in the browser
13:18lordeddi[m]yup, so switching from laptop to phone does not require configuring it again
13:21mstenta[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:22lordeddi[m]that's why i mentioned that grab-n-order thingy in the locations page, you might already have some logic for it
13:22lordeddi[m]maybe i'm wrong though 😅
13:23*farmBOT has joined
13:23lordeddi[m]i see that table has some HTML id's on most columns, which makes using JS quite easy.
13:23lordeddi[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:27mstenta[m]> that's why i mentioned that grab-n-order thingy in the locations page, you might already have some logic for it
13:27mstenta[m]ah yea that one is unique, and is designed more from the client-side perspective to use this library: inspire-tree.com/
14:47symbioquine[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:50symbioquine[m]* to farmos.org/blog/2022/farmos-in-5-minutes? (With
14:51mstenta[m]that's what i was thinking too :-)
14:51symbioquine[m]Cool
14:51mstenta[m]should we use the "(video)" convention of indicating that a post is mostly a video?
14:51symbioquine[m]yes
16:00*dazinism[m] has quit (Quit: You have been kicked for being idle)
17:11symbioquine[m]I guess we don't have Netlify preview generation for the farmOS-community-blog repository pull requests?
17:13symbioquine[m]Hmmm, seems like we should: github.com/farmOS/farmOS-community-blog/
17:14symbioquine[m]Is there an easy way to see if Netlify "workflows" (is that the right word) are getting queued/triggered?
17:15symbioquine[m]Maybe you know ^ paul121?
17:25paul121[m]> Is there an easy way to
17:25paul121[m]No, I don't think so
17:25paul121[m]I think if we merge into the farmOS-community-blog/netlify-preview branch then Netlify will create a preview
17:26paul121[m]But then:
17:26paul121[m]- I'm not sure how to access the preview
17:26paul121[m]- And not sure the best way to do this from a PR workflow
17:26symbioquine[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:27paul121[m]Right
17:27paul121[m]There is this! github.com/farmOS/farmOS-community-blog/
17:27symbioquine[m]I know there's an extra layer of indirection in the farmOS-community-blog case
17:29paul121[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:29paul121[m]but that is only a theory :-)
17:38symbioquine[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:43mstenta[m]I'm sure it's fine symbioquine
17:43mstenta[m]Just needs an approval from paul121 or jgaehring to merge
17:45symbioquine[m]mstenta[m]: Well, I'm paranoid: github.com/farmOS/farmOS-community-blog/
17:56symbioquine[m]> www.youtube.com/watch?v=VnZac6lA1_k
17:56symbioquine[m]Seems like some of the stuff shown here could lead to some very interesting low-cost farmOS-integrated devices...
18:01FarmerEd[m]actually trying to integrate some ESP32's right now 😁
18:01FarmerEd[m]Probably not as interesting as it's just EID readers
18:15FarmerEd[m]Maybe there's enough categories but a hardware section could be interesting 🤔
18:25symbioquine[m]forum.goatech.org/c/farmhack/21
18:29mstenta[m]symbioquine: you just sent me down memory lane :-)
18:29mstenta[m]farmhack.org/forums/discuss-possible-pla
18:31FarmerEd[m]Is it still active though? I tried signing up to the site a few times but never managed to get a login.
18:31mstenta[m]goat? or farmhack?
18:36FarmerEd[m]Farmhack
18:37mstenta[m]oh yea dunno the status of that
18:37mstenta[m]but forum.goatech.org/c/farmhack/21 would be a good place to continue

< 232023-02-24⋏25 >