I guess, this is probably a question for @distantnative.
I didn’t dive too deep into how kirby handles content states yet, so
I was wondering, if it’s possible to use or extend kirby’s content state handler for managing changes of content, that comes from a sqlite database in a custom panel area (thinking about the orange badge on tabs, revert and save buttons), or would I have to write my own from scratch?
The ‘custom / advanced panel area’ recipes don’t cover that – probably because the content doesn’t come from a page content- but a json file.
Unfortunately, no I don’t think so. The form buttons (those orange ones) are super tied to our content Vuex store which is in turn super tied to how the models (site, page, user, file) are handling their content on the backend.
I don’t see a way hacking this for your means that would be less painful than implementing it yourself. As you wanna use it in a custom area for storage unrelated to the models (and their content files).
Depending on what content you’re using, virtual pages could be an alternative that read and write to the database but then in the Panel context are just pages with the default mechanisms.