-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Right now, every time a run is generated, we save it immediately and create a permalink for that single run. What I want is to be able to generate a permalink (let's call it a "report") for the whole set of runs that are currently shown on the page, so I can share that exact set with someone else.
There are two ways this could work:
- Generate the permalink on the fly when someone clicks a "generate permalink" button.
- Or (and I think this is better): when the user submits the form for the first run, we create a new report and insert the run into it. Then, every time a new run is submitted, we update that same report by adding the new run to it. Basically, we keep appending runs to the same report as the user goes.
Since we’re using Netlify Blobs and don't have built-in joining or append features, let’s keep it simple: whenever we update the report, just read the current report blob, append the new run info, and write it back. It’s okay if it duplicates data that also lives under the run ID blobs; that’s fine for this kind of app.
So, the main things to do:
- Support creating a "report" that groups multiple runs (the ones currently on the page)
- Each report should have its own permalink
- When the form is submitted for a new run, append it to the currently active report
- Store the report as a blob, duplicating the run data as needed (no fancy joins or appends)
- When someone visits a report permalink, show all the runs in that report
That's it! Keep it pragmatic.
Copilot
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request