Commit Graph

2623 Commits

Author SHA1 Message Date
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
lovasoa 7f7fdd6f57 update deps 2025-10-27 22:49:28 +01:00
lovasoa 74a2c8b1e7 Fix docker image references in README
Update docker image names from sqlpage/SQLPage to lovasoa/sqlpage and update example port mapping to use port 80
2025-10-27 18:14:42 +01:00
Ophir LOJKINE 5f15df3bd0 Merge pull request #1069 from sqlpage/set-odbc-rpath-linux
fix: detect system odbc drivers on debian
2025-10-27 15:24:40 +01:00
lovasoa afde9e1f09 fmt 2025-10-27 15:12:39 +01:00
lovasoa 4dba824727 Enhance ODBC support for Debian-based systems by setting the library search path in build.rs. Update CI configuration to use the correct PostgreSQL driver name. Document changes in CHANGELOG.md. 2025-10-27 14:56:17 +01:00
lovasoa 6f96213269 my odbc-sys patch was merged upstream 2025-10-25 23:53:43 +02:00
lovasoa be5eb4cd06 fix odbc memory corruption
make it harder to miss such issues in the future thanks to malloc instrumentation on ci

fixes https://github.com/pacman82/odbc-api/issues/793
2025-10-25 01:21:13 +02:00
Ophir LOJKINE 8ff9f7ef99 Add image reference to CHANGELOG.md
Added an image to the changelog for visual reference.
2025-10-24 14:50:20 +02:00
Olivier Auverlot ce4ffd3394 Documentation improved 2025-10-24 08:45:57 +02:00
Olivier Auverlot 2570bda545 Documentation improved 2025-10-24 08:29:35 +02: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 3999bffc23 server timing header in changelog 2025-10-23 14:17:54 +02:00
lovasoa 44afd16e54 Merge branch 'cursor/add-server-timing-headers-in-development-ee50' 2025-10-23 14:13:32 +02:00
lovasoa 06df761eee Refactor: Update ServerTiming to use Arc and simplify header generation
This commit modifies the ServerTiming structure to utilize Arc for thread-safe reference counting, enhancing performance and memory management. The header generation logic is streamlined, and related code is updated to reflect these changes. Additionally, tests are adjusted to ensure proper functionality with the new implementation.

Co-authored-by: contact <contact@ophir.dev>
2025-10-23 12:42:09 +02:00
Cursor Agent 38e08d78d1 Refactor: Pass ServerTiming to extract_request_info
Co-authored-by: contact <contact@ophir.dev>
2025-10-22 22:08:10 +00:00
Cursor Agent 5c415984bf Refactor Server-Timing header generation and add tests
This commit refactors the Server-Timing header generation to be more efficient and adds comprehensive tests for its behavior in development and production environments. It also includes a new test SQL file for server timing verification.

Co-authored-by: contact <contact@ophir.dev>
2025-10-22 20:03:09 +00:00
Cursor Agent faf19a6660 feat: Add Server-Timing header to track request performance
Co-authored-by: contact <contact@ophir.dev>
2025-10-22 19:47:39 +00:00
lovasoa 8690e4d177 update dependencies 2025-10-22 21:21:38 +02:00
Cursor Agent 8e248b9571 feat: Add Server-Timing header support
Co-authored-by: contact <contact@ophir.dev>
2025-10-22 12:38:36 +00:00
Ophir LOJKINE 8addb1649b Merge pull request #1053 from Phoenix79-spec/feature/table-action-buttons
Feature/table action buttons
2025-10-21 14:57:19 +02:00
lovasoa b485028e37 Add end-to-end tests for table action buttons
- Implemented tests for edit, delete, and custom action buttons in the table component.
- Verified visibility and correct href attributes for action buttons.
- Added checks for disabled action buttons in the table.

Updated package dependencies for Playwright and Node types in package.json and package-lock.json.
2025-10-21 14:07:41 +02:00
lovasoa f466bcc21d remove broken links 2025-10-21 11:54:31 +02:00
lovasoa a44341482a changelog + 0.39 2025-10-21 11:39:26 +02:00
lovasoa d9d2832402 Merge branch 'main' into feature/table-action-buttons 2025-10-21 11:35:51 +02:00
lovasoa 842f67cf83 update documentation 2025-10-21 11:35:08 +02:00
lovasoa f8a47cdea3 changelog 2025-10-21 09:48:33 +02:00
Ophir LOJKINE 68d20c4eb1 Merge pull request #1064 from Phoenix79-spec/fix/shell-active-dropdown-item-handling
Submenu items not being marked as active when it is set to true. bug Something isn't working fixes #1063
2025-10-21 09:46:55 +02:00
Spencer Hansen 32d6863982 Added checks for active status to dropdown items in shell.handlebars. 2025-10-20 15:48:07 -07:00
Spencer Hansen c371b23af2 Undo changes to http.rs 2025-10-20 10:20:02 -07:00
Spencer Hansen d484bfc6a4 Merge branch 'feature/table-action-buttons' of https://github.com/Phoenix79-spec/SQLPage into feature/table-action-buttons 2025-10-20 09:53:48 -07:00
Spencer Hansen 5d9df45231 Undo changes to http.rs since it is not part of the feature. 2025-10-20 09:53:10 -07:00
Spencer Hansen 6729e10a01 Added sqlpage version number information to the new components. 2025-10-20 09:31:36 -07:00
lovasoa f1375615f4 always display line info in errors
https://github.com/sqlpage/SQLPage/issues/1057
2025-10-20 18:27:25 +02:00
Olivier Auverlot 5d5d1f94d7 The login component is an authentication form for users of an application. 2025-10-18 12:19:15 +02:00
lovasoa b577695eee Enhance llms.txt.sql to include detailed parameter documentation
- Updated the SQL file to improve the output format for components, adding sections for top-level and row-level parameters.
- Each parameter now includes its type, requirement status, and description for better clarity in the generated documentation.
2025-10-17 23:51:28 +02:00
lovasoa c5c4a4fcd5 add llms.txt
closes https://github.com/sqlpage/SQLPage/issues/980
2025-10-17 23:43:20 +02:00
lovasoa 0184bb9b9a Enhance routing to support SQL execution for non-SQL file extensions
- Updated routing logic to execute SQL files when a request is made for paths with extensions other than .sql.
- Added tests to verify that SQL files are executed correctly for paths with non-SQL extensions.
- Updated CHANGELOG to reflect this new feature in version 0.38.1.
2025-10-17 23:42:33 +02:00
lovasoa cc3faba20f fix https://github.com/sqlpage/SQLPage/issues/1055 2025-10-17 21:45:05 +02:00
lovasoa 81d2dd43e3 update deps 2025-10-16 10:18:17 +02:00
Spencer Hansen 83be28bd60 Eliminate clippy redundant else error from src/webserver/http.rs
cargo clippy
    Checking sqlpage v0.38.0
error: redundant else block
   --> src\webserver\http.rs:493:6
    |
493 |       } else {
    |  ______^
494 | |         if let Some(domain) = &config.https_domain {
495 | |             let mut listen_on_https = listen_on;
496 | |             listen_on_https.set_port(443);
...   |
511 | |     }
    | |_____^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_else
note: the lint level is defined here
   --> src\lib.rs:1:9
    |
  1 | #![deny(clippy::pedantic)]
    |         ^^^^^^^^^^^^^^^^
    = note: `#[deny(clippy::redundant_else)]` implied by `#[deny(clippy::pedantic)]`
help: remove the `else` block and move the contents out
    |
493 ~     }
494 +     if let Some(domain) = &config.https_domain {
495 +         let mut listen_on_https = listen_on;
496 +         listen_on_https.set_port(443);
497 +         log::debug!("Will start HTTPS server on {listen_on_https}");
498 +         let config = make_auto_rustls_config(domain, config);
499 +         server = server
500 +             .bind_rustls_0_23(listen_on_https, config)
501 +             .map_err(|e| bind_error(e, listen_on_https))?;
502 +     } else if listen_on.port() == 443 {
503 +         bail!("Please specify a value for https_domain in the configuration file. This is required when using HTTPS (port 443)");
504 +     }
505 +     if listen_on.port() != 443 {
506 +         log::debug!("Will start HTTP server on {listen_on}");
507 +         server = server
508 +             .bind(listen_on)
509 +             .map_err(|e| bind_error(e, listen_on))?;
510 +     }
    |

error: could not compile `sqlpage` (lib) due to 1 previous error
2025-10-14 20:23:19 -07:00
Spencer Hansen 3654d4272b Updated class settings in table.handlebars so that action buttons are centered, and _col_{name} is included in new rows. 2025-10-14 19:43:02 -07:00
Spencer Hansen be67d3e4ae Modified new table example. 2025-10-14 19:17:56 -07:00
Spencer Hansen ac4126b2af #Added support for action buttons in the table component template.
* A default edit and delete button can be included by specifying an "edit_url" or "delete_url"
* Custom Column based action buttons can be added in the table header using json object array in the custom_actions column.
* Custom action buttons can be defined on the row level by specifying _sqlpage_actions.
2025-10-14 17:59:56 -07:00
lovasoa 9a383c9cd5 Update README.md to clarify ODBC support and driver linking details
- Added information about SQLPage's support for ODBC connections.
- Clarified that Linux and MacOS binaries include a built-in statically linked ODBC driver manager (unixODBC).
- Removed redundant text regarding ODBC support for specific databases.
2025-10-14 23:35:13 +02:00