Closed guspower closed 1 month ago
Hi @guspower ! Can you please provide reproduction steps ? Everything seems to work fine for me.
Here is a replit with the exact shell you are mentioning, which works: https://replit.com/@pimaj62145/SQLPage-dynamic-shell-exemple#index.sql
Apologies for raising a bug on Monday morning, I should've figured it was user error. Sigh.
It turns out there was a trailing comma in the shell.json
, e.g. if you have something like:
{
"component": "shell",
"title": "Custom Title",
"link": "/",
"language": "en-GB",
"description": "Custom description",
"font": "Poppins",
"icon": "book",
"footer": "Custom Footer 2024", <- BOOM
}
it doesn't render any error message, it just ignores it.
Sorry for the noise, situation normal.
I guess not seeing an error message is a problem in itself. Wasn't there anything in the logs either ?
@guspower : there was a bug where errors in the dynamic component were silently dropped. It's fixed now. So thank you for the report anyway !
Excellent, great outcome @lovasoa !
Introduction
I have been successfully setting the shell title from a json file as per the docs. As of the latest release (v0.20.5) neither the custom title or footer are being displayed.
To Reproduce
Follow a pattern similar to the docs:
index.sql
shell.json
Actual behavior
Instead
SQLPage
renders the default title and footer.Expected behavior
The custom shell should be output into the browser.
Version information
6.6.13-gentoo
PostgreSQL 16.2 on x86_64-pc-linux-gnu
v0.20.5