UPDATE TIME: Just published v 1.9.39 of Floppy, which adds a brand new element plugin, Floppy Date Range Processor.
Floppy Date Range Processor can make lists of date ranges unique and/or sort date ranges (either ascending or descending). Neither of these processes are possible in vanilla Bubble. This plugin was created to solve a problem mentioned in another thread (where literally the poster needed to remove duplicates from a list of date ranges – which doesn’t work, which is somewhat surprising given that lists of date ranges can be :merged with the proper deduplication behavior. This plugin fixes that oversight on Bubble’s part).
You can set it up as a “passive” element plugin – where you send it a list of date ranges in the main inspector interface, and, whenever that input list of date ranges changes, it publishes the deduplicated and/or sorted list of date ranges to the “Processed Date Ranges” output. As with nearly all element plugins, whenever any of its inputs change, it reupdates and reprocesses the date range list. When this happens, the output is updated, an “Initialized/Updated” event is triggered, and a “Date Ranges Processed” event is triggered. (All fields in the main interface are optional, so you don’t have to set anything at all… because…
It can also be used “actively”: It has an Action (“Process Date Ranges”) that takes an input list of date ranges and optionally deduplicates/sorts them and publishes that list to the “Processed Date Ranges” output. After doing so, the “Date Ranges Processed” event is triggered.
Simple, simple, but very powerful if you need this functionality. Part of my ongoing commitment to providing Floppy purchasers an ever-growing list of cool functionality. If you’re familiar with my element plugins you’ll immediately grok how to use this. Fully documented in the plugin interface, as usual.
Demo page here with editor link to inspect:
Interesting Historical Note: Floppy Date Range Processor is likely the first Bubble plugin developed in partnership with a large language model. The basic bones of the code for this plugin were generated after training GPT-4 with my “create Bubble elements plugin” script and simply describing the functionality in natural language. Since GPT-4 can’t know everything about Bubble plugin creation, a significant amount of work went into debugging, testing and adding other features to the base code. But I would like to thank GPT-4 for its clever and efficient implementation of date range sorting, and basic code skeleton, which likely saved me about an hour of drudgery. (I’m sure over time, this tool will help me save more time and be even more efficient in producing new plugins.)
ONE OTHER NOTE: You may have noticed a new “Z” plugin, “Floppy Bulky” in Floppy recently. Do not mess with Floppy Bulky. It is not complete yet and still in development, it is not safe to use in production, and is not actually for use as a normal plugin. I’ll finish it and explain it soon enough…
More later,
Keith