Commit Graph

458 Commits

Author SHA1 Message Date
lovasoa 86f2722bdf fix https://github.com/sqlpage/SQLPage/issues/1048 2025-10-08 15:26:04 +02:00
lovasoa 298923efb9 Update generator meta tag to include version
The generator meta tag now includes the SQLPage version. This is fetched
from the CARGO_PKG_VERSION environment variable during the build
process.
2025-09-20 20:47:29 +02:00
lovasoa 709ffb60ab Fix submenu scroll issue by enabling autoclose
This is a workaround for https://github.com/sqlpage/SQLPage/issues/1011
until tabler releases the proper fix.
2025-09-09 22:17:15 +02:00
lovasoa 2018478d7a Remove custom scrollbar styling from CSS
fixed upstream
2025-09-09 18:05:00 +02:00
lovasoa c685bb6b46 Simplify modal class check condition 2025-09-09 14:33:16 +02:00
lovasoa c5fbb4be54 form select: loose equality testing for option values
the form component now considers numbers and their string representation as equal when comparing the `value` parameter and the values from the `options` parameter in dropdowns

see https://github.com/sqlpage/SQLPage/discussions/1002
2025-08-30 18:16:53 +02:00
lovasoa 637f198b57 error handling: improve visual presentation of error messages
- Updated error messages to be more user-friendly and visually appealing in the browser.
- Introduced a new method for retrieving static files from the cache.
- Improved error reporting for invalid UTF-8 encoding in SQL files.
2025-08-30 17:16:13 +02:00
lovasoa a76acd74d0 feat: modals have their own URL
- Allow opening modals with a simple link, enabling triggering from
other components. - Persist modal state across page refreshes using URL
hash.
2025-08-27 17:30:27 +02:00
lovasoa ae30d82917 biome fixes 2025-07-27 00:09:39 +02:00
lovasoa 16ed836782 Chart component: accept numerical values passed as strings in pie
charts.
2025-07-26 23:29:15 +02:00
lovasoa be9170d0bb update tabler icons 2025-07-25 21:54:33 +02:00
lovasoa 4af50e847f update tabler to v1.4 2025-07-25 21:49:08 +02:00
lovasoa 1820707591 Update apexcharts.js 2025-07-25 21:45:47 +02:00
lovasoa 32a875d34d Optimize category collection in chart data processing
Replace the iterative series filtering with a flatMap initialization and
remove series from processing when they have no more data points
2025-07-02 00:11:08 +02:00
lovasoa ee156d943d Sort chart categories by name instead of first appearance
fixes https://github.com/sqlpage/SQLPage/issues/951
2025-07-01 23:58:22 +02:00
lovasoa 7004ebc8f7 Fix potential null reference in chart value formatting 2025-07-01 16:58:36 +02:00
olivierauverlot 3834f18e88 New modal component (#934)
* New modal component and upgrade of the button component to allow the opening of a modal box

* Modal component

* Update examples/official-site/sqlpage/migrations/63_modal.sql

* Support for embed content in modal box
2025-06-27 14:32:37 +02:00
Andrews Innovations 453701c17c Added create-migration command line instruction (#943)
* Added create-migration command line instruction

This update adds a command line interface to create migrations directly with sqlpage, and have it manage the timestamps and uniqueness of migration names.

* Update sqlpage/migrations/README.md

Co-authored-by: Ophir LOJKINE <contact@ophir.dev>

* Update sqlpage/migrations/README.md

Co-authored-by: Ophir LOJKINE <contact@ophir.dev>

* Updated with changes for config directory, migration output

Now respects the configuration_directory environment variable.

It also outputs the path of the new migration created when it is created, and takes care to display that path relative to the current working directory.

Lastly, the execution of create-migration command was moved above the rest of the initialization, so that creating a new migration does not run existing migrations. This allows you to create multiple migrations before you run sqlpage normally again to execute them.

---------

Co-authored-by: Ophir LOJKINE <contact@ophir.dev>
2025-06-25 10:45:39 +02:00
lovasoa ca00eaa07a chart item ordering
fixes https://github.com/sqlpage/SQLPage/discussions/930Preserve original category order for bar charts

Single-series bar charts now retain their original data point order.
For multi-series bar charts, categories are aligned and ordered by
their first appearance in the data, instead of alphabetically.
2025-06-02 20:59:10 +02:00
lovasoa b3c310e293 fix chart component: no crash when o marker 2025-05-28 01:00:46 +02:00
lovasoa 5c38eb1bd7 chart component: fix zero values in stacked bar charts
fixes https://github.com/sqlpage/SQLPage/issues/924
2025-05-27 12:31:54 +02:00
lovasoa e7951ee721 dynamic port choice
also: better error messages in tests
2025-05-26 00:46:04 +02:00
lovasoa 47df4a347e fmt 2025-05-24 23:50:34 +02:00
lovasoa bba4e4153a Fix some color names not working in the datagrid component
fixes https://github.com/sqlpage/SQLPage/issues/922#issuecomment-2903360878
2025-05-24 23:09:16 +02:00
lovasoa ef3feb8fbc colors 2025-05-22 23:50:27 +02:00
lovasoa 60af67521d update colors
see https://github.com/sqlpage/SQLPage/issues/922#issuecomment-2902446251
2025-05-22 23:39:01 +02:00
lovasoa f92cbf5ba3 Update apexcharts.js 2025-05-20 01:32:17 +02:00
hanskihyv eaac4c75b6 Add link & target props to big_number.handlebars (#861)
* Add link & target props to big_number.handlebars

* Refactor: added new links in 49_big_number.sql and updated big_number.handlebars

* Refactor: added new links in 49_big_number.sql

* Apply suggestions from code review

* fix broken links in the documentation

* Update CHANGELOG.md

---------

Co-authored-by: Ophir LOJKINE <contact@ophir.dev>
2025-05-20 01:21:26 +02:00
olivierauverlot 29f64479b5 form improvements with new types of field: header and switch (#906)
* form improvements with new types of field: header and switch

* added checked toggle switch example

* add names to the switch checkboxes

* update form header margins

* trailing whitespace

* docs

---------

Co-authored-by: lovasoa <contact@ophir.dev>
2025-05-20 00:54:05 +02:00
lovasoa cc1657193c update tabler to v1.3
fixes https://github.com/sqlpage/SQLPage/issues/901
mostly fixes https://github.com/sqlpage/SQLPage/issues/892
see https://github.com/tabler/tabler/issues/2283#issuecomment-2892385617
2025-05-20 00:27:23 +02:00
lovasoa 04e1046018 fix alert component styles 2025-05-14 00:44:51 +02:00
lovasoa 84d959425b article width style 2025-05-09 00:27:50 +02:00
lovasoa a9d24672f0 fix error message layour issue 2025-05-08 22:47:03 +02:00
lovasoa 616ac2a561 fix list component text truncation for empty descriptions 2025-05-06 23:07:53 +02:00
Andrews Innovations 275b44ae51 Add active indicator to the shell nav items (#908)
* Added active indicator to the nav-item to highlight active navigation item

* Update documentation to reflect active property on a menu_item

* Updated shell component examples to separate active flag as its own example

* Update examples/official-site/sqlpage/migrations/01_documentation.sql

---------

Co-authored-by: Ophir LOJKINE <contact@ophir.dev>
2025-05-06 09:36:43 +02:00
lovasoa 8017ecd125 fix form dropdowns
workaround for #894

the source issue is https://github.com/tabler/tabler/issues/2284

closes https://github.com/sqlpage/SQLPage/issues/894
2025-04-24 17:57:38 +02:00
lovasoa 1d87e88742 update tabler.io js to 1.2.0 2025-04-24 17:10:34 +02:00
Amruta.org 74d5b24f9a Replace hardcoded strings with customizable attributes in multiple components (#893)
* Update shell.handlebars

adding two options:
search_button
search_placeholder

* Update table.handlebars

adding search_placeholder option

* Update 01_documentation.sql

documentation update for the shell component options:
search_placeholder
search_button
and for the table component option: search_placeholder

* avoid failing tests on long loading map tiles

* add an example for search_placeholder

---------

Co-authored-by: lovasoa <contact@ophir.dev>
2025-04-24 16:01:25 +02:00
olivierauverlot 32778bf0ad New component : Empty state (#890)
* empty_state component added

* empty_state component added

* Correction and new example

* rename status_code to header

* Enhance empty_state component documentation and template to support rich text formatting. Update docs with detailed descriptions and examples, and modify Handlebars template to conditionally render Markdown content.

* add and document class and id attributes

---------

Co-authored-by: lovasoa <contact@ophir.dev>
2025-04-24 14:51:40 +02:00
lovasoa fb2091921c update to tabler css v1.2 2025-04-23 16:30:59 +02:00
lovasoa b9c383fe8d add monospace font option in tables
It was present in the documentation, but never actually implemented

Fixes https://github.com/sqlpage/SQLPage/issues/889
2025-04-22 09:53:29 +02:00
lovasoa ae10f377f1 remove whitespace 2025-04-20 05:30:08 +02:00
lovasoa fbe897aa22 Update default chart colors and text shadows for better readability with all themes 2025-03-26 01:52:31 +01:00
lovasoa 3a04408bea When multiple series are defined in the sql, and then the user deselects one of the series, and then hovers over the others, the tooltip that should show the series values does not appear.
fix https://github.com/sqlpage/SQLPage/issues/868
2025-03-24 16:26:37 +01:00
francesco-cattoglio b074dd1606 Added an option to create footers in the table component (#862)
* Implemented optional table footer rendering

* Added an example of footer usage

* Fixed a minor mistake, improved the example

* Updated changelog

* implemented requested change

* Update table.handlebars

spacing

* Update table.handlebars

minor, removed a `~`

* remove unused whitespace

---------

Co-authored-by: lovasoa <contact@ophir.dev>
2025-03-19 23:33:24 +01:00
lovasoa e1cf063a9d Merge branch 'pr/lovasoa/856' 2025-03-17 15:49:04 +01:00
Gus Power 261f76c2bc Add unsafe_contents_md to text component, add related file tests, add documentation parameters 2025-03-17 11:08:36 +00:00
Saturos 7eba2efdbd Revert sqlpage.json (#857) 2025-03-17 12:05:09 +01:00
Gus Power ec31de229f Merge branch 'sqlpage:main' into optional-html-blocks-in-markdown 2025-03-16 10:19:29 +00:00
Gus Power 7d93aa6050 rename unsafe -> allow_unsafe (unsafe was a bad choice as it clashes with the rust keyword) 2025-03-15 09:08:11 +00:00