pregenerate location names and fix location forwarding

This commit is contained in:
terraputix
2026-02-20 23:08:04 +01:00
parent bed6e3aa53
commit 65fe6d1601
5 changed files with 33 additions and 14 deletions
@@ -98,7 +98,7 @@
>
Model
</th>
{#each filteredIndices as idx, i}
{#each filteredIndices as idx, i (idx)}
{@const ts = timestamps[idx]}
{@const isNewDay = checkNewDay(i, ts)}
<th
@@ -115,14 +115,14 @@
</tr>
</thead>
<tbody>
{#each displayModels as model}
{#each displayModels as model (model)}
<tr class="group hover:bg-muted/10">
<td
class="sticky left-0 z-10 border-b border-r border-border bg-card p-2 text-[11px] font-semibold group-hover:bg-muted/20"
>
{model.replace(/_/g, ' ')}
</td>
{#each filteredIndices as idx, i}
{#each filteredIndices as idx, i (idx)}
{@const ts = timestamps[idx]}
{@const codes = hourlyFlat[`weather_code_${model}`]}
{@const code = codes ? codes[idx] : 0}