Fork me on GitHub
#biff
<
2022-08-06
>
Jacob O'Bryant03:08:40

I finished overhauling Platypub's data model. It's on a separate branch currently and will be merged to master soon. If anyone wants to try it out, see the upgrade instructions here: https://github.com/jacobobryant/platypub/issues/43. The new data model is much more extensible. Themes can define arbitrary data types. The default theme defines data types for "Posts" and "Pages." With this out of the way, next thing I'm planning to do with platypub is to write some more docs for contributors. I'd like to flesh out the roadmap and make some more detailed issues to get us from here to platypub's "end state" (as currently envisioned).

šŸ™Œ 1
ā™„ļø 2
Jacob O'Bryant18:08:08

I just upgraded my own production instance of platypub and have merged the changes into master: https://github.com/jacobobryant/platypub/releases/tag/2022-08-06 > To upgrade: after you've pulled in the new commit and started the app, go to repl.clj and evaluate (migrate-items!). > > NOTE: if you're using a custom theme, you will need to update it. See the files under themes/default/ at https://github.com/jacobobryant/platypub/commit/146850e30ffe59ab32b7ec5f2a53b447fcb11e86. If you don't want to update your theme immediately, you may want to hold off on upgrading Platypub until you have time to do so.

šŸ™‚ 1
macrobartfast19:08:32

Would an editable item in Biff follow the pattern at https://htmx.org/examples/click-to-edit/ or are there any tweaks/gotchas I should know about?

macrobartfast20:08:15

Iā€™m making a data table where the rows will be click-to-edit.

macrobartfast20:08:15

Actually, forgive the question: I should attempt to implement it before posting here. Disregard. šŸ™‚

Jacob O'Bryant20:08:28

No worries šŸ™‚. You can do it any way you want, Biff doesn't dictate anything in that regard. i.e. the htmx click-to-edit would be fine, or you could have the "edit" button redirect to an entirely new edit page (which is what platypub does). though for a data table that you want to edit inline, the htmx example is probably the way to go.

šŸ™‚ 1
jeffparker20:08:37

That's where the fun lives šŸ˜ ...then share what you've learned and ask the more-informed questions you'll have. I'm trying to learn this lesson.

šŸ™‚ 1
šŸ‘ 1