quartz-frontend icon indicating copy to clipboard operation
quartz-frontend copied to clipboard

feat: configurable history window (fixed|rolling) + offset hours (#655)

Open Sagarpillai opened this issue 2 months ago • 2 comments

Implements #655.

Adds a configurable history window for start_datetime_utc in generation + forecast queries.

Two env vars control this: • NEXT_PUBLIC_HISTORY_START_TYPE = “rolling” or “fixed” • NEXT_PUBLIC_HISTORY_START_OFFSET_HOURS = numeric hour offset (default 48)

“rolling” = now - offset hours (existing behaviour) “fixed” = midnight UTC N days ago

getHistoryStartISO() now reads these envs, and both queries use it.

This allows Vercel preview / production to tune the history window without code changes.

Local build + typecheck pass. Defaults keep current behaviour.

Sagarpillai avatar Nov 04 '25 13:11 Sagarpillai

@Sagarpillai is attempting to deploy a commit to the Open Climate Fix Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Nov 04 '25 13:11 vercel[bot]

Hey, @braddf Would love a review of this whenever you get a chance. Thank you in advance!

Sagarpillai avatar Nov 08 '25 07:11 Sagarpillai