512 Commits

Author SHA1 Message Date
Prayag Bhakar 5354d6a460 fix(chart) :: change tootltip title colour to be visible (#1401)
Co-authored-by: Ophir LOJKINE <contact@ophir.dev>
2026-08-25 00:46:34 +02:00
Prayag Bhakar f454791323 feat(chart) :: draw vertical reference lines (#1376) 2026-08-24 16:31:23 +02:00
Ophir LOJKINE 217286f8a8 fix(datagrid): distinguish missing and empty descriptions (#1398) 2026-08-23 16:53:05 +02:00
Prayag Bhakar 2c2819f29e feat(chart) :: draw horizontal reference lines (#1375)
* feat(chart) :: draw horizontal reference lines

* rev 2 (please squash + merge)
2026-08-23 09:34:02 +02:00
Prayag Bhakar 071d4df034 fix(docs) :: address documentation gaps (#1390) 2026-08-20 11:06:02 +02:00
Ophir LOJKINE 6859b560ee fix(form): close searchable single-select dropdown (#1381)
* fix(form) :: close searchable single-select dropdown

* fix and test properly
2026-08-17 14:41:57 +02:00
Prayag Bhakar 71609f2251 feat(typescript) :: typecheck browser JavaScript in CI (#1373) 2026-08-14 22:48:38 +02:00
Prayag Bhakar e15b16d211 fix(chart) :: line series up on a category axis for every chart type (#1371) 2026-08-13 09:27:51 +02:00
81reap 8b7eb16bd7 fix(chart) :: align stacked series on their X values 2026-08-11 20:02:59 -04:00
Prayag Bhakar b8f10adc7f feat(chart) :: render column charts as bar charts + filter malformed stack points (#1369) 2026-08-11 17:59:15 +02:00
Prayag Bhakar 98fc68a781 fix(map) :: ignore map coordinates that are not a pair of numbers (#1368) 2026-08-10 21:48:42 +02:00
Prayag Bhakar e44f993a20 fix(modal) :: give modal component an accessible name (#1367)
* fix(biome.js) :: fix remaining lint issues

* fix(modal) :: give modal component an accessible name
2026-08-10 17:14:47 +02:00
Prayag Bhakar fb519dc347 fix(biome.js) :: fix remaining lint issues (#1366) 2026-08-10 14:59:42 +02:00
Ophir LOJKINE 7457370b8d Add toast notification component with JS init, template, examples, migration, and tests (#1360)
* Support hash-triggered toasts

* Address toast review feedback

* Render toast positioning in template

* Avoid reopening initialized toasts

* Fix white toast foreground color

* Configure toasts declaratively

* Simplify toast template styling

* Address toast accessibility reviews
2026-08-03 15:50:18 +02:00
Ophir LOJKINE a065bb8d0f Fix form options source query parameters (#1356) 2026-07-29 11:37:36 +02:00
Ophir LOJKINE d92a7399e2 fix: enforce unprivileged path guard on fresh cache hits (#1307)
Reserved/private SQL files (sqlpage/ prefix, dotfiles, .. traversal,
absolute paths) became directly routable over HTTP while their parsed
form was fresh in sql_file_cache. A trusted page loading such a file via
sqlpage.run_sql(...) loads it with privilege and caches it; a later
direct unprivileged request hit the fresh cache entry before the path
guard ran, returning 200 and executing the private SQL instead of 403.

The unprivileged path validation is extracted into
filesystem::validate_unprivileged_path and now enforced before
consulting the cache in both HTTP routing (AppFileStore::contains) and
the unprivileged FileCache::get_with_privilege path.
2026-06-10 16:37:20 +02:00
Ophir LOJKINE 2c89bd04f7 Update remaining dependency pins 2026-05-29 22:24:53 +02:00
Ophir LOJKINE 5dfed603b0 Update v0.44.0 changelog 2026-05-17 01:52:28 +02:00
setop 966b955f36 card: add top image attributes for lazy loading (#1283)
* card: add top image attributes for lazy loading

This will be useful for long image gallery.

Developped according to [HTML specs of img tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/img#lazy)

* docs: move card image parameters into existing migration

---------

Co-authored-by: Ophir LOJKINE <ophir.lojkine@datadoghq.com>
2026-05-12 22:27:41 +02:00
Ophir LOJKINE b68a93e64f fix format 2026-04-07 17:51:59 +02:00
Ophir LOJKINE 409962047c Merge branch 'main' of github.com:sqlpage/SQLPage 2026-04-07 17:44:29 +02:00
Ophir LOJKINE bf9d5fe212 fixed chart menu readability on dark theme 2026-04-07 17:44:14 +02:00
Ophir LOJKINE 72fb37810a update apex charts 2026-04-07 17:27:12 +02:00
Ophir LOJKINE d11390ac10 Chart: add show_legend toggle, document it, and add e2e test (#1270)
* Add show_legend option to chart component

* Fix show_legend for SQLite boolean values

* remove ai cruft
2026-04-07 17:18:13 +02:00
Ophir LOJKINE 81da9b3aa6 Add item-level id support for datagrid rows (#1246) 2026-03-15 14:17:44 +01:00
wissyfaty 74ff8c843d Add margin bottom (#1229)
Co-authored-by: Wissal <wissal.faty@univ-lille.fr>
2026-03-06 18:20:51 +01:00
Ophir LOJKINE cc8848f614 Adjust form spacing without submit buttons (#1215) 2026-02-28 22:03:56 +01:00
setop 2840e1ab7c add form buttons icons, closes #821 (#1210) 2026-02-04 09:23:29 +01:00
lovasoa 3b2a99232f re-enable text drop shadow in chart data labels 2025-12-28 01:00:08 +01:00
lovasoa dc8e861893 update default chart color palette 2025-12-28 00:21:17 +01:00
lovasoa 5d74fa98e1 re-add the lime color to charts
fixes https://github.com/sqlpage/SQLPage/issues/1162
2025-12-28 00:01:09 +01:00
lovasoa baf3454086 update apexcharts 2025-12-27 23:52:40 +01:00
DofSekai 24d6057649 add delay property (#1126) 2025-11-24 12:56:06 +01:00
olivierauverlot 8289bc69ba Pagination (#1093)
* Pagination component

* New pagination component

* Some changes

* Adding a warning about the use of LIMIT and OFFSET in the blog post

* Use icon_img for icons

* Correction of the icons size

* enhance pagination docs examples

* update pagination docs

---------

Co-authored-by: Olivier Auverlot <olivier.auverlot@icloud.com>
Co-authored-by: lovasoa <contact@ophir.dev>
2025-11-23 00:40:37 +01:00
olivierauverlot 17d892584f Adding an alias named contents to the html property of the shell-empty component (#1122)
* Adding an alias named contents to the html property of the shell-empty component

* Changes for the shell-empty documentation

* improve shell comoonent description

* shell-empty docs clarification

---------

Co-authored-by: Olivier Auverlot <olivier.auverlot@icloud.com>
Co-authored-by: lovasoa <contact@ophir.dev>
2025-11-22 23:46:52 +01:00
Zoé Cappe c7a5c76e0c fix text-center for the edit_url action in table component (#1113) 2025-11-19 16:06:43 +01:00
lovasoa cec270e1ee In the table component, allow simple objects in custom_actions instead of requiring arrays of objects.
fix https://github.com/sqlpage/SQLPage/issues/1079
2025-11-04 10:32:50 +01:00
lovasoa abe136d095 fix labels semantics in login component 2025-10-28 00:06:04 +01:00
lovasoa 5ee781cf40 use the login component in the user auth example 2025-10-27 23:36:29 +01:00
lovasoa 5a6192fcfa Merge olivierauverlot/login: combine local defaults with error_message and improved docs 2025-10-27 23:19:21 +01:00
lovasoa cc95ae25de Improve login component documentation and usability
Add complete example with database schema, credential processing, and page protection. Update authentication migration to reference new login component. Enhance login template with default icons and autocomplete attributes. Make validate parameter optional with sensible default.
2025-10-27 23:13:38 +01:00
Olivier Auverlot 36ab34f827 Fixing a regression with the class attribute. 2025-10-27 23:13:38 +01:00
Olivier Auverlot eb1f43c6e1 username_icon and password_icon attributes 2025-10-27 23:13:38 +01:00
Olivier Auverlot cfea904e5d The login component is an authentication form for users of an application. 2025-10-27 23:13:38 +01:00
lovasoa 722dc740fa add an error_message property to the login component
- Updated SQL queries in `create_session_token.sql` and `login.sql` to use consistent parameter naming conventions.
- Enhanced the login form in `login.sql` to include an error message for failed login attempts.
- Added a new parameter `error_message` in the migration file for better user feedback.
- Modified the Handlebars template to display the error message when applicable, improving user experience during authentication.
2025-10-27 23:07:57 +01:00
lovasoa c28cf2a46d Merge branch 'main' into login 2025-10-27 22:50:56 +01:00
Olivier Auverlot cb8fa2dc16 Fixing a regression with the class attribute. 2025-10-24 08:09:32 +02:00
Olivier Auverlot b356cc8904 username_icon and password_icon attributes 2025-10-24 08:04:39 +02:00
lovasoa d9d2832402 Merge branch 'main' into feature/table-action-buttons 2025-10-21 11:35:51 +02:00
Spencer Hansen 32d6863982 Added checks for active status to dropdown items in shell.handlebars. 2025-10-20 15:48:07 -07:00