few-megabyte-66980
03/05/2025, 9:57 AM<link rel="canonical" href="<https://website.xyz>" />
) to an Evidence project? I've added this to the +layout.svelte
file and am not sure if that is enough
<svelte:head>
<link rel="canonical" href="<https://pulse.filecoindataportal.xyz>" />
</svelte:head>
curved-action-90486
03/05/2025, 11:40 AMhallowed-notebook-46272
03/05/2025, 12:14 PMprehistoric-airplane-80346
03/05/2025, 11:02 PMhallowed-notebook-46272
03/06/2025, 10:21 AMnpm run sources
added the parquet file to .evidence/template/static/data/[source]/[query]/
However, when I ran npm run dev
the displayed site said it couldn't find that table. I double-checked the names.
So, seeing comments on another thread with a similar problem, I purged the .evidence directory and ran npm run sources
again. The .evidence directory builds OK, with all the parquet files as expected.
When I now try to run npm run dev
I get an error: Unable to load source manifest
. Followed by: No sources found, execute "npm run sources" to generate
In the app in the browser, I now get a console error: data/manifest.json:1 Failed to load resource: the server responded with a status of 404 (Not Found)
I have updated the Evidence app, with no effect on this issue.
Any thoughts? I'm at a bit of a loss here. Is there another way to rebuild the Evidence app?
Possible related issue: https://github.com/evidence-dev/evidence/issues/2577 reported by @nice-jewelry-64245hallowed-notebook-46272
03/06/2025, 10:53 AMnpm run sources
wasn't finishing properly due to a no-longer-working test source.
A previous symptom is continuing though. I thought it was related to the missing manifest...
This is how the page now displays. It's like there's a CSS file missing, but I'm getting no errors in the browser console. All the icons are trying to fill the screen.prehistoric-photographer-46601
03/06/2025, 3:51 PMInitialization function "motherduck_init" from file "/home/runner/.duckdb/extensions/v1.0.0/linux_amd64/motherduck.duckdb_extension" threw an exception: "
Your DuckDB version (v1.0.0) is not supported by MotherDuck. Please upgrade DuckDB to v1.2.1.Maybe this could be fixed simply by bumping the version of
duckdb-async
used by @evidence-dev/motherduck?enough-rocket-28564
03/06/2025, 4:23 PMgorgeous-engine-26141
03/06/2025, 8:00 PMtotalAgg
for a year-over-year change column in DataTable
. weightedMean
doesn't work for all the cases (see attached images).
<Column id=percentage_change contentType=delta fmt=pct title="% Diff" downIsGood=True totalAgg=weightedMean weightCol=prior_year_sum />
I can get the total from the SQL query, but if I use Custom Aggregations Values to show the total, I lose the delta formatting. Is there a way to add the delta formatting to totalFmt
?
<Column id=percentage_change contentType=delta fmt=pct title="% Diff" downIsGood=True totalAgg={yoy_mode[0].total_percentage_change} totalFmt=pct/>
able-yak-3257
03/07/2025, 10:34 AMkind-jackal-23460
03/07/2025, 11:20 AM# {params.company_type}
```sql revenue_by_company_type
select
cohort_month,
* exclude (cohort_month)
from (
pivot (
select cohort_month, cast(period_number as int) as period_number, total
from bigquery.revenue_cohorted_by_company_type
where company_type = '${params.company_type}'
order by cohort_month, period_number
) on period_number
using sum(total)
group by cohort_month
)
DataTable data={revenue_by_company_type}
Column id=cohort_month align=left /
Column id=* align=right /
/DataTable```jolly-nest-92859
03/08/2025, 5:11 AMjolly-nest-92859
03/08/2025, 6:51 AMmany-jackal-21269
03/09/2025, 3:00 PM<DateRange
name="selected_date"
defaultValue={'Last 7 Days'}
/>
```sql daily_spending
SELECT
dcf.date_day,
dcf.daily_outflow AS amount_spent,
dcf.outflow_transaction_count AS transaction_count
FROM postgres_data.daily_cash_flow dcf
WHERE
dcf.date_day >= '${inputs.selected_date.start}'::date
AND dcf.date_day <= '${inputs.selected_date.end}'::date
ORDER BY dcf.date_day DESC
sql daily_average_spending
SELECT
AVG(daily_outflow) AS average_amount
FROM postgres_data.daily_cash_flow
sql total_spending
SELECT
SUM(dcf.daily_outflow) AS total_amount_spent,
SUM(dcf.outflow_transaction_count) AS total_transactions,
COUNT(DISTINCT dcf.date_day) AS days_in_range
FROM postgres_data.daily_cash_flow dcf
WHERE
dcf.date_day >= '${inputs.selected_date.start}'::date
AND dcf.date_day <= '${inputs.selected_date.end}'::date
<BigValue
data={daily_spending}
value=amount_spent
format="$.2f"
title={inputs.selected_date.start === inputs.selected_date.end ? Spending on ${inputs.selected_date.start}
: Spending from ${inputs.selected_date.start} to ${inputs.selected_date.end}
}
comparison={daily_average_spending.average_amount}
comparisonFormat="$.2f"
comparisonTitle="vs Daily Average"
comparisonDelta={true}
invertDelta={true}
sparkline=date_day
/>```elegant-orange-32142
03/10/2025, 4:49 PMlate-teacher-7968
03/12/2025, 8:30 AM/Da
Yesterday I got it working again by uninstalling the extension and installing it again. But today that doesn’t work.
Does anyone else experienced this? 🙏bright-lunch-66426
03/12/2025, 10:49 PMkind-jackal-23460
03/13/2025, 11:59 AMjolly-apartment-92631
03/13/2025, 2:46 PMambitious-sundown-95435
03/13/2025, 4:28 PMcurrent_date
in my script it shows 2025-03-12 (one day before)
Is this expected? Am I missing something related to timezone or configuration here?damp-easter-47082
03/14/2025, 12:26 PMselect * from '<hf://datasets/fredguth/cgu__notas_fiscais/nfe_eventos.parquet>';
but this doesn’t work in evidence:
```sql eventos
select * from '<hf://datasets/fredguth/cgu__notas_fiscais/nfe_eventos.parquet>'
```
This is the error message: IO Error: No files found that match the pattern "<hf://datasets/fredguth/cgu__notas_fiscais/nfe_eventos.parquet>"
I don’t get why.square-car-9701
03/14/2025, 1:11 PMwooden-magazine-77268
03/14/2025, 10:49 PMnpm run sources
> my-evidence-project@0.0.1 sources
> evidence sources
- Loading plugins & sources
✖ Loading plugins & sources
[ ! ] Cannot destructure property 'plugins' of 'getEvidenceConfig(...)' as it is undefined.
shell returned 1
blue-yak-98519
03/15/2025, 7:28 PMmany-jackal-21269
03/16/2025, 12:45 PMbetter-crowd-20459
03/16/2025, 12:46 PMcrooked-zoo-41099
03/17/2025, 7:34 AMpresetRanges
?
For example: "Last 7 Days" → "過去7日" (Japanese translation).
I’m translating this question into English, so I apologize if there are any mistakes or if the phrasing is unclear. Thank you in advance for your support!square-car-9701
03/17/2025, 12:34 PMjolly-apartment-92631
03/17/2025, 3:20 PM``` user_created_change ✔ Finished, wrote 5589 rows.
user_domain ✖ Error: Unknown Error```Running
npm run source --debug
didn't show any additional errors.
Running the user_domain
query in snowflake with the same role works just fine.enough-activity-13508
03/17/2025, 3:29 PM