diff --git a/examples/official-site/sqlpage/migrations/01_documentation.sql b/examples/official-site/sqlpage/migrations/01_documentation.sql index 34d783997..d82b0214e 100644 --- a/examples/official-site/sqlpage/migrations/01_documentation.sql +++ b/examples/official-site/sqlpage/migrations/01_documentation.sql @@ -82,7 +82,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S INSERT INTO example(component, description, properties) VALUES ('list', 'A basic compact list', json('[{"component":"list", "compact": true, "title": "SQLPage lists are..."},{"title":"Beautiful"},{"title":"Useful"},{"title":"Versatile"}]')), - ('list', 'An empty list with a link to add an item', json('[{"component":"list", "empty_title": "No items yet", "empty_description": "This list is empty. Click here to create a new item !", "empty_link": "documentation.sql"}]')), + ('list', 'The empty state appears when the query after `select ''list'' as component` returns no rows. `empty_link` makes that state clickable.', json('[{"component":"list", "empty_title": "No items yet", "empty_description": "This list is empty. Click here to create a new item !", "empty_link": "documentation.sql"}]')), ('list', ' ### A list with rich text descriptions @@ -686,7 +686,7 @@ INSERT INTO component(name, icon, description) VALUES INSERT INTO parameter(component, name, description, type, top_level, optional) SELECT 'chart', * FROM (VALUES -- top level ('title', 'The name of the chart.', 'TEXT', TRUE, TRUE), - ('type', 'The type of chart. One of: "line", "area", "bar", "column", "pie", "scatter", "bubble", "heatmap", "rangeBar". "column" is a synonym of "bar".', 'TEXT', TRUE, FALSE), + ('type', 'The type of chart. One of: "line", "area", "bar", "column", "pie", "scatter", "bubble", "heatmap", "rangeBar", or "treemap". "column" is a synonym of "bar".', 'TEXT', TRUE, FALSE), ('time', 'Whether the x-axis represents time. If set to true, the x values will be parsed and formatted as dates for the user.', 'BOOLEAN', TRUE, TRUE), ('xmin', 'The minimal value for the x-axis. When time is true, this can be a date or timestamp.', 'TEXT', TRUE, TRUE), ('xmax', 'The maximum value for the x-axis. When time is true, this can be a date or timestamp.', 'TEXT', TRUE, TRUE), @@ -800,7 +800,7 @@ Also demonstrates the use of the `toolbar` attribute to allow the user to downlo ('chart', ' ## Heatmaps -You can build heatmaps using the `heatmap` top-level property. +Set `type` to `heatmap` on the chart row. The data format follows the [apexcharts heatmap format](https://apexcharts.com/angular-chart-demos/heatmap-charts/basic/), where each series is represented as a line in the chart: @@ -811,7 +811,7 @@ where each series is represented as a line in the chart: The `color` property sets the color of each series separately, in order. ',json('[ {"component":"chart", "title": "Survey Results", "type": "heatmap", - "ytitle": "Database managemet system", "xtitle": "Year", "color": ["purple","purple","purple"]}, + "ytitle": "Database management system", "xtitle": "Year", "color": ["purple","purple","purple"]}, { "series": "PostgreSQL", "x": "2000", "y": 48},{ "series": "SQLite", "x": "2000", "y": 44},{ "series": "MySQL", "x": "2000", "y": 78}, { "series": "PostgreSQL", "x": "2010", "y": 65},{ "series": "SQLite", "x": "2010", "y": 62},{ "series": "MySQL", "x": "2010", "y": 83}, { "series": "PostgreSQL", "x": "2020", "y": 73},{ "series": "SQLite", "x": "2020", "y": 38},{ "series": "MySQL", "x": "2020", "y": 87} @@ -1028,7 +1028,7 @@ INSERT INTO example(component, description, properties) VALUES '{"icon": "table", "name": "[Table](?component=table)", "description": "Displays SQL results as a searchable table.", "_sqlpage_color": "red"}, {"icon": "timeline", "name": "[Chart](?component=chart)", "description": "Show graphs based on numeric data."} ]')), - ('table', 'A table that embeds a chart from another SQLPage file in each row.', + ('table', '`embed: Chart` names the column to render. Each row supplies its own chart URL in `Chart`; an empty value leaves that cell empty. The browser requests each populated cell separately.', json('[ {"component": "table", "embed": "Chart"}, {"Starting number": 7, "Chart": "/examples/chart.sql?n=7&color=blue"}, @@ -1080,7 +1080,7 @@ Numbers can be displayed ), ( 'table', - 'A large table with many rows and columns, with frozen columns on the left and headers on top. This allows users to browse large datasets without loosing track of their position.', + '`freeze_columns` keeps the first column visible when scrolling sideways. `freeze_headers` keeps the column names visible when scrolling down. The footer in this example scrolls normally; set `freeze_footers` to pin it too.', json('[ {"component": "table", "freeze_columns": true, "freeze_headers": true}, { diff --git a/examples/official-site/sqlpage/migrations/03_alert_component.sql b/examples/official-site/sqlpage/migrations/03_alert_component.sql index afa50dbf4..f1c663a82 100644 --- a/examples/official-site/sqlpage/migrations/03_alert_component.sql +++ b/examples/official-site/sqlpage/migrations/03_alert_component.sql @@ -164,7 +164,7 @@ VALUES ( ), ( 'alert', - 'An important danger alert message with an icon and color', + 'A dismissible alert. `close_label` names the close button for screen readers.', JSON( '[ { @@ -174,6 +174,7 @@ VALUES ( "color":"red", "important": true, "dismissible": true, + "close_label": "Dismiss this alert", "description":"SQLPage is entirely free and open source.", "link":"https://github.com/sqlpage/SQLPage", "link_text":"See source code" diff --git a/examples/official-site/sqlpage/migrations/35_code_title.sql b/examples/official-site/sqlpage/migrations/35_code_title.sql index cf2960332..bfa8b12cc 100644 --- a/examples/official-site/sqlpage/migrations/35_code_title.sql +++ b/examples/official-site/sqlpage/migrations/35_code_title.sql @@ -1,7 +1,7 @@ -- Documentation for the title component INSERT INTO component (name, description, icon, introduced_in_version) VALUES ( 'title', - 'Defines HTML headings. The level 1 is used for the maximal size and the level 6 is used for the minimal size.', + '`level` sets the HTML heading (`h1` through `h6`). Use level 1 for the page title, level 2 for sections, and level 3 for subsections so readers can navigate by heading.', 'letter-case-upper', '0.19.0' ); diff --git a/examples/official-site/sqlpage/migrations/51_column.sql b/examples/official-site/sqlpage/migrations/51_column.sql index 06674e936..8785b3955 100644 --- a/examples/official-site/sqlpage/migrations/51_column.sql +++ b/examples/official-site/sqlpage/migrations/51_column.sql @@ -2,7 +2,7 @@ -- Component Definition INSERT INTO component(name, icon, description, introduced_in_version) VALUES - ('columns', 'columns', 'A component to display various items in a card layout, allowing users to choose options. Useful for showcasing different features or services, or KPIs. See also the big_number component.', '0.29.0'); + ('columns', 'columns', 'Use one row per plan, feature, or metric to compare them side by side. For a dashboard of values with trends and progress bars, see [`big_number`](?component=big_number).', '0.29.0'); -- Inserting parameter information for the column component INSERT INTO parameter(component, name, description, type, top_level, optional) SELECT 'columns', * FROM (VALUES @@ -19,7 +19,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S ('small_text', 'Optional small text to display after the value.', 'TEXT', FALSE, TRUE), ('icon', 'Optional icon to display in a ribbon.', 'ICON', FALSE, TRUE), ('icon_color', 'Color for the icon in the ribbon.', 'TEXT', FALSE, TRUE), - ('size', 'Size of the column, affecting layout.', 'INTEGER', FALSE, TRUE) + ('size', 'Width on a 12-column grid on larger screens. For three equal columns, return three rows with `size` set to 4.', 'INTEGER', FALSE, TRUE) ) x; INSERT INTO example(component, description, properties) VALUES