pgkiln 0.70.0 → 0.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/db/migrations/137_create_page_types.sql +904 -0
- package/db/migrations/138_app_utilities.sql +153 -0
- package/docs/apex-feature-parity.md +6 -5
- package/docs/guide/03-builder.md +107 -4
- package/docs/guide/04-pages-and-regions.md +3 -1
- package/docs/guide/05-items.md +1 -1
- package/docs/guide/06-processing.md +18 -0
- package/docs/guide/09-reference.md +15 -1
- package/docs/guide/12-development.md +22 -1
- package/docs/guide/16-files.md +1 -1
- package/examples/hr/hr_73_configuration_options.sql +17 -0
- package/examples/hr/hr_74_app_utilities.sql +22 -0
- package/package.json +1 -1
- package/public/app.css +9 -0
- package/public/builder.css +45 -0
- package/src/app.ts +10 -0
- package/src/builder/advisor.ts +2 -2
- package/src/builder/app-updates.ts +3 -0
- package/src/builder/components.ts +3 -1
- package/src/builder/create-page.ts +259 -0
- package/src/builder/dependencies.ts +311 -0
- package/src/builder/features.ts +313 -0
- package/src/builder/home.ts +2 -0
- package/src/builder/i18n/de.ts +4 -0
- package/src/builder/i18n/en.ts +4 -0
- package/src/builder/i18n/es.ts +4 -0
- package/src/builder/i18n/fr.ts +4 -0
- package/src/builder/i18n/it.ts +4 -0
- package/src/builder/i18n/ja.ts +4 -0
- package/src/builder/i18n/ko.ts +4 -0
- package/src/builder/i18n/nl.ts +4 -0
- package/src/builder/i18n/pt.ts +4 -0
- package/src/builder/i18n/zh-cn.ts +4 -0
- package/src/builder/i18n/zh-tw.ts +4 -0
- package/src/builder/login-page.ts +17 -14
- package/src/builder/newapp.ts +41 -23
- package/src/builder/routes.ts +13 -2
- package/src/builder/ui-defaults.ts +161 -0
- package/src/builder/ui.ts +2 -1
- package/src/builder/upgrade.ts +154 -0
- package/src/builder/utilities.ts +181 -0
- package/src/builder/wizards.ts +211 -26
- package/src/cli/replace.ts +9 -1
- package/src/history.ts +155 -0
- package/src/runtime/builtin-components.ts +23 -2
- package/src/runtime/items.ts +4 -2
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
-- =====================================================================
|
|
2
|
+
-- 138: an application's Utilities (sprint 138, AP-5; APEX: Application
|
|
3
|
+
-- Utilities: Change History, Attribute Dictionary / UI defaults)
|
|
4
|
+
--
|
|
5
|
+
-- meta.app_snapshot: the application's export (meta.export_app) after the
|
|
6
|
+
-- last recorded change. The builder compares it with a new export after
|
|
7
|
+
-- each change (src/history.ts, the working copies' component split) and
|
|
8
|
+
-- keeps what changed per component in meta.component_change.
|
|
9
|
+
-- meta.component_change: one row per component that a change added,
|
|
10
|
+
-- changed or deleted: its id in the one-file-per-component layout
|
|
11
|
+
-- (src/appfiles.ts, e.g. pages/0003/items/p3_sal), a label, the page,
|
|
12
|
+
-- the component's files before and after ({"path": "text"}), who (a
|
|
13
|
+
-- developer, or null for the command line / MCP server) and when.
|
|
14
|
+
-- Installation data: not exported, kept by import --replace.
|
|
15
|
+
-- meta.ui_default: UI defaults per table column (APEX: Attribute
|
|
16
|
+
-- Dictionary / Table UI Defaults): label, format mask, help, alignment
|
|
17
|
+
-- and list of values. The page wizards and the Create Application wizard
|
|
18
|
+
-- take the label from meta.wizard_column_label (redefined below: a UI
|
|
19
|
+
-- default wins); a form item made by a wizard also gets the column's
|
|
20
|
+
-- format mask, help and list of values (meta.ui_default_item, a trigger
|
|
21
|
+
-- on meta.item that only acts right after meta.wizard_column_label named
|
|
22
|
+
-- a column with a UI default in the same transaction).
|
|
23
|
+
-- Installation data, keyed by schema, table and column names (not oids:
|
|
24
|
+
-- they survive a dump and restore). Not exported with an application.
|
|
25
|
+
-- =====================================================================
|
|
26
|
+
|
|
27
|
+
create table meta.app_snapshot (
|
|
28
|
+
app_id int primary key references meta.app (id) on delete cascade,
|
|
29
|
+
doc jsonb not null,
|
|
30
|
+
taken_at timestamptz not null default now()
|
|
31
|
+
);
|
|
32
|
+
comment on table meta.app_snapshot is
|
|
33
|
+
'The application''s export after its last recorded change: what the next change is compared with (change history, 138)';
|
|
34
|
+
|
|
35
|
+
create table meta.component_change (
|
|
36
|
+
id bigint generated always as identity primary key,
|
|
37
|
+
app_id int not null references meta.app (id) on delete cascade,
|
|
38
|
+
component text not null check (length(component) <= 500),
|
|
39
|
+
label text not null,
|
|
40
|
+
page_no int,
|
|
41
|
+
op text not null check (op in ('added', 'changed', 'deleted')),
|
|
42
|
+
before jsonb,
|
|
43
|
+
after jsonb,
|
|
44
|
+
changed_by text,
|
|
45
|
+
source text not null default 'builder' check (source in ('builder', 'import', 'upgrade')),
|
|
46
|
+
changed_at timestamptz not null default now()
|
|
47
|
+
);
|
|
48
|
+
create index component_change_app_idx on meta.component_change (app_id, changed_at desc);
|
|
49
|
+
create index component_change_component_idx on meta.component_change (app_id, component, changed_at desc);
|
|
50
|
+
comment on table meta.component_change is
|
|
51
|
+
'Change history per component (138): the component''s files before and after a change, who and when';
|
|
52
|
+
|
|
53
|
+
create table meta.ui_default (
|
|
54
|
+
id int generated always as identity primary key,
|
|
55
|
+
schema_name text not null check (schema_name ~ '^[^\s]{1,63}$'),
|
|
56
|
+
table_name text not null check (table_name ~ '^[^\s]{1,63}$'),
|
|
57
|
+
column_name text not null check (length(column_name) between 1 and 63),
|
|
58
|
+
label text check (length(label) <= 200),
|
|
59
|
+
format_mask text check (format_mask ~ '^[A-Za-z0-9GDLSCFM.,:/ \-]{1,60}$'),
|
|
60
|
+
help text check (length(help) <= 4000),
|
|
61
|
+
alignment text check (alignment in ('start', 'center', 'end')),
|
|
62
|
+
lov text check (length(lov) <= 4000),
|
|
63
|
+
updated_by text,
|
|
64
|
+
updated_at timestamptz not null default now(),
|
|
65
|
+
unique (schema_name, table_name, column_name)
|
|
66
|
+
);
|
|
67
|
+
comment on table meta.ui_default is
|
|
68
|
+
'UI defaults per table column (APEX: Attribute Dictionary, 138): label, format mask, help, alignment, list of values; used by the page wizards';
|
|
69
|
+
|
|
70
|
+
-- the UI default of a table's column, or null
|
|
71
|
+
create function meta.ui_default_of(p_table regclass, p_col text) returns meta.ui_default
|
|
72
|
+
language sql stable as $$
|
|
73
|
+
select d.* from meta.ui_default d
|
|
74
|
+
join pg_class c on c.oid = p_table join pg_namespace n on n.oid = c.relnamespace
|
|
75
|
+
where d.schema_name = n.nspname and d.table_name = c.relname and d.column_name = p_col
|
|
76
|
+
$$;
|
|
77
|
+
|
|
78
|
+
-- (097) a column's label for the generators: (138) its UI default's label wins; a UI default also
|
|
79
|
+
-- tells meta.ui_default_item which column the next wizard item is for (a transaction-local setting)
|
|
80
|
+
create or replace function meta.wizard_column_label(p_table regclass, p_col text) returns text
|
|
81
|
+
language plpgsql stable as $$
|
|
82
|
+
declare
|
|
83
|
+
v_ui meta.ui_default := meta.ui_default_of(p_table, p_col);
|
|
84
|
+
v_comment text;
|
|
85
|
+
v_rel text := lower((select relname from pg_class where oid = p_table));
|
|
86
|
+
v_fk boolean;
|
|
87
|
+
v_pk boolean;
|
|
88
|
+
v_base text := p_col;
|
|
89
|
+
v_rest text;
|
|
90
|
+
l text := lower(p_col);
|
|
91
|
+
begin
|
|
92
|
+
if v_ui.id is not null then
|
|
93
|
+
perform set_config('pgkiln.ui_default_col', p_table::oid::text || '.' || p_col, true);
|
|
94
|
+
if nullif(btrim(v_ui.label), '') is not null then
|
|
95
|
+
return btrim(v_ui.label);
|
|
96
|
+
end if;
|
|
97
|
+
end if;
|
|
98
|
+
select meta.wizard_short(col_description(p_table, a.attnum), 60) into v_comment
|
|
99
|
+
from pg_attribute a where a.attrelid = p_table and a.attname = p_col and not a.attisdropped;
|
|
100
|
+
if v_comment is not null then
|
|
101
|
+
return v_comment;
|
|
102
|
+
end if;
|
|
103
|
+
select c.fk_table is not null, c.is_pk into v_fk, v_pk from meta.wizard_catalog(p_table) c where c.column_name = p_col;
|
|
104
|
+
if v_fk and not v_pk then
|
|
105
|
+
v_rest := regexp_replace(p_col, '_?(id|no|num|nr|code|key|fk)$', '', 'i');
|
|
106
|
+
if length(v_rest) >= 2 then
|
|
107
|
+
v_base := v_rest;
|
|
108
|
+
end if;
|
|
109
|
+
elsif length(l) >= 4 and left(l, 1) = left(v_rel, 1) and not (meta.wizard_abbreviations() ? l) and not meta.wizard_is_word(l)
|
|
110
|
+
and meta.wizard_is_word(substr(l, 2)) then
|
|
111
|
+
-- a column named after the table's first letter: ename, dname
|
|
112
|
+
v_base := substr(p_col, 2);
|
|
113
|
+
end if;
|
|
114
|
+
return meta.wizard_label(v_base);
|
|
115
|
+
end
|
|
116
|
+
$$;
|
|
117
|
+
|
|
118
|
+
-- a form item a wizard is inserting: the column's format mask, help text and list of values
|
|
119
|
+
create function meta.ui_default_item() returns trigger
|
|
120
|
+
language plpgsql as $$
|
|
121
|
+
declare
|
|
122
|
+
v_mark text := current_setting('pgkiln.ui_default_col', true);
|
|
123
|
+
v_table regclass;
|
|
124
|
+
v_ui meta.ui_default;
|
|
125
|
+
begin
|
|
126
|
+
if coalesce(v_mark, '') = '' or new.source_column is null or new.region_id is null then
|
|
127
|
+
return new;
|
|
128
|
+
end if;
|
|
129
|
+
select to_regclass(r.table_name) into v_table from meta.region r where r.id = new.region_id and r.type = 'form';
|
|
130
|
+
if v_table is null or v_mark <> v_table::oid::text || '.' || new.source_column then
|
|
131
|
+
return new;
|
|
132
|
+
end if;
|
|
133
|
+
perform set_config('pgkiln.ui_default_col', '', true);
|
|
134
|
+
v_ui := meta.ui_default_of(v_table, new.source_column);
|
|
135
|
+
if v_ui.id is null or new.type in ('hidden', 'file') then
|
|
136
|
+
return new;
|
|
137
|
+
end if;
|
|
138
|
+
if v_ui.format_mask is not null and new.type in ('number', 'date', 'datetime', 'display', 'text') then
|
|
139
|
+
new.config := coalesce(new.config, '{}') || jsonb_build_object('format_mask', v_ui.format_mask);
|
|
140
|
+
end if;
|
|
141
|
+
if nullif(btrim(v_ui.help), '') is not null then
|
|
142
|
+
new.help := btrim(v_ui.help);
|
|
143
|
+
end if;
|
|
144
|
+
if nullif(btrim(v_ui.lov), '') is not null and new.type in ('text', 'number', 'select') then
|
|
145
|
+
new.type := 'select';
|
|
146
|
+
new.lov := btrim(v_ui.lov);
|
|
147
|
+
end if;
|
|
148
|
+
return new;
|
|
149
|
+
end
|
|
150
|
+
$$;
|
|
151
|
+
create trigger item_ui_default before insert on meta.item for each row execute function meta.ui_default_item();
|
|
152
|
+
|
|
153
|
+
revoke all on function meta.ui_default_of(regclass, text), meta.ui_default_item() from public;
|
|
@@ -7,13 +7,13 @@ open item and open an issue or pull request; see [CONTRIBUTING.md](../CONTRIBUTI
|
|
|
7
7
|
Legend: ✅ available · 🟡 partial (see notes) · ❌ not yet · ➖ not planned (a deliberate choice,
|
|
8
8
|
or better served by the PostgreSQL ecosystem; see the notes and [extensions](guide/15-extensions.md))
|
|
9
9
|
|
|
10
|
-
Last reviewed: 2026-11-03 against **APEX 26.2** (sprint 136: vector providers (an AI service with an embedding model or a SQL function), `meta.embed`, *Add vector column* in Table Properties with an HNSW index and a queue that keeps embeddings current, search types vector and hybrid (reciprocal rank fusion with full-text) and a Retrieve (RAG) tool for AI agents, all as the app's role through RLS, on pgvector (AP-1); sprint 135: full-text search configurations, APEX's Oracle Text search type on PostgreSQL full-text search with stemming, ranking, highlights, *Did you mean* and *Add full-text search* in Table Properties (AP-2); sprint 134: the builder also in Italiano, 中文 (简体), 中文 (繁體), 日本語 and 한국어, APEX's ten builder languages plus Nederlands (SEC-5); sprints 121, 123–125: the builder in Deutsch, English, Español, Français, Nederlands and Português, step by step: the frame, sign-in, Workspace home, App Builder, Page Designer menus, the SQL Workshop's home, SQL Worksheet, Object Browser and Table Properties, Shared Components, application settings, users, identity providers, developers and workspaces (WS-7); sprint 122: *Ask in your own words* sets faceted search and smart filter facets, smart filters read a typed phrase (WS-5), and Sample Maps, Sample Approvals, Sample Data Loading and Sample Files in the App Gallery (WS-8); sprint 120: the App Gallery's single-topic sample apps (charts, cards, calendar, interactive grids, dynamic actions, reporting), the UX Pattern Catalog and a Utility Apps tab with Lookup Lists, Release Notes and Announcements (WS-8); sprint 119: data security per table, a roles × columns matrix and masked values per application role in a masking view, the same identity for pages, AI tools, REST, AutoREST and MCP (WS-13); sprint 118: Administration → Mail queue with delivery per hour and per workspace, the slowest provider calls and failures with Retry and Purge, a workspace's own mail service, and workspace network access lists that narrow the installation's allow-list (WS-9); sprint 117: Pillar Light and Pillar Dark navigation appearances with a header strip, clearer navigation tree states, subtle colour utilities, RTL; sprint 116: the comparison moved from 26.1 to 26.2, with a section for the 26.2 workspace items WS-1 … WS-13 and OCI managed identities; the App Builder list with Updated by, working copies and the lock; `pgkiln import --only`, a file-level import; stale rows on facet menus and blueprints fixed; sprint 115: popup LOVs that load on scroll, Wait Popup dynamic actions and dynamic actions on menu entries; sprint 114: Workflow 26.2 with custom task outcomes, task events and notifications, Send E-Mail and draft steps, migrating running instances and the diagram as SVG / PNG; sprint 113: Team Development with issues, labels, milestones, templates, a board and a set-up wizard; sprint 112: AI interactive reports with chips, Undo, computed columns and a phrase parser that needs no AI service; sprint 111: AI Agents with tools as a shared component, a Navigate tool with checksummed URLs, Gemini and OpenAI-compatible services; sprint 110: Data Reporter as a workspace tool with datasets, reporting applications, editors and viewers, published reports with stable URLs and pins; sprint 109: the Workspace home above the App Builder and SQL Workshop, with a summary, top applications, users and developers, and an optional release check; sprint 108: the code editor's syntax colours in the builder's light and dark themes, read-only SQL highlighted, the Data Modeler in dark mode; sprint 107: a transaction mode in the SQL Worksheet with Commit and Rollback; DA-18: JavaScript (MLE) not planned, plv8 where installed; sprint 106: the change log of DDL change sets with Flyway, Liquibase and SQL downloads; sprint 104: RESTful Services modules, templates and handlers with PL/pgSQL and media handlers, privileges, OpenAPI and Try it; sprint 103: Schema Export / Import with pg_dump and pg_restore; sprint 102: the SQL Monitor with live sessions, Top SQL and a statement's plan; sprint 101: Scheduling of pg_cron jobs with a schedule builder, run now and run history; sprint 100: RESTful Services, tables and views published as REST endpoints with paging, filters, keys and OpenAPI; sprint 99: Administration → Database Users for PostgreSQL roles; sprint 98: the Data Modeler with relational diagrams, DDL and a data dictionary; sprint 97: charts of a query in the worksheet, saved charts and their dashboard; sprint 96: the SQL Workshop's Launchpad with pins and tool groups, the builder's search with Ctrl+K; sprint 95: Table Properties: create, edit or copy a table in a form with a DDL preview and Apply in one transaction; sprint 94: an object's menu with Open in a panel, Quick DDL, Add index / trigger / policy and Drop with dependents; sprint 93: worksheets saved as SQL Scripts with tabs and a Files list, Format, Convert case, find and replace, bind and substitution variables; sprint 92: the worksheet's Query Result with sort, value dialog, copy and downloads, plans as a tree with the slowest step and misestimates, SQL History with status, search and run again; sprint 91: the SQL Worksheet like Database Actions' SQL: navigator, Run Statement at the cursor and Run Script with a log per statement, Explain Plan, Autotrace, notices, history, Run as an application role; sprint 90: Comment Out in the page designer, gallery labels in title case; sprint 89: the Object Browser's schema, one row of tabs, blank NULLs, Modify column; sprint 88: home cards with colour bands and round icons, the hero on the page background, a page footer with the version and Back to top; sprint 87: the Create Application wizard reloads the page list for a schema, RLS badges, the alias from the name; sprint 86: the page designer by page number, HTML error pages in the builder; sprint 85: the Form Designer, beyond APEX; sprint 84: the date picker, facet menus; sprint 83: Component Settings and Component Groups; sprint 82: Report Queries; sprint 81: Application Computations and Shortcuts in Shared Components; sprint 80: the master grid's first row selected when the page opens and after a search; grid cells as text with their format mask until edited, with cell navigation by arrow keys, Enter, F2 and Escape; sprint 79: generated dashboards with sums, donuts and lines, leaving out charts that say nothing; applications open in their own light or dark mode until the user chooses, per application; a user menu with Appearance and Sign in when signed out; the developer toolbar's App and Page texts and debug state; the report search's column scope in the magnifier; sprint 78: generated faceted search reports with one column per foreign key, the faceted search's total row count, Show all and Yes/No values, one search field, friendly headings and number formats in generated grids and master-detail pages, friendly names in the Create Application wizard's page list; sprint 77: the Page Designer's layout and tree by display position, button positions, the tree's context menu with Duplicate and Copy to other page, Show Common / Show All, Go to group and the Template Options dialog; display positions, button positions and side-column page templates at runtime; sprint 76: the interactive report's menus and pagination, date items in the date format; sprint 75: the SQL Workshop's Object Browser and tabs; sprint 74: the builder's information architecture: Shared Components grid, Settings tabs, application home search and tasks; sprint 73: the Create Application wizard on one page with page types and features; sprint 72: the runtime chrome compared with APEX 26.2's: the developer toolbar, the Iris look, the navigation bar's Help menu and Install button; sprint 71: generated applications compared with APEX 26.2's: labels, foreign key names in reports, file columns, format masks, the Home page and the dashboard; sprint 70: treemap, sunburst and timeline charts; sprint 69: dragging tasks on a Gantt chart; sprint 68: the Data Reporter's welcome page, Find my workspace; sprint 67: REST source catalogs from OpenAPI documents, a workspace's export and import (two rows added); sprint 66: a blueprint from an existing application; sprint 65: facet charts; sprint 64: approval vacation rules and expiration policies; sprint 63: range, box plot and stock charts; sprint 62: workspace preferences (SQL Workshop and RESTful services per workspace), extension links, Manage backups across applications, SQL Workshop utilities with object reports, About Database and a database monitor; sprint 61: the builder's screens compared with APEX 26.1: the workspace sign-in page, the Administration menu with workspace message, environment banner and utilization, the SQL Workshop home, the App Gallery, application groups and cross application reports (four rows added); sprint 60: isolated workspaces with their own database logins, row-level security on pgkiln's tables and workspace database roles, workspace administrators; sprint 59: the Page Designer's help pane, Quick edit from the developer toolbar; sprint 58: page groups; sprint 57: region templates hero, title bar, buttons container, inline dialog and drawer, wizard with wizard progress, the carousel; sprint 56: Generate DDL and Schema Comparison in the SQL Workshop, `pgkiln ddl` and `pgkiln compare`; sprint 55: an editable login page with a Login region and the Minimal page template, Forgot password through the application's mail service; sprint 54: interactive grid views, the single row view, group by and chart; sprint 53: application settings, user preferences and items kept per user, dynamic translations, `meta.data_export` and data export downloads, display image and geocoded address items; sprint 52: every dynamic action event and action, Ajax callbacks, an error handling function, the session timeout warning; sprint 51: checked imports, application backups, availability and Run only, feedback, type-specific attribute help; sprint 50: lost update detection, warn on unsaved changes, the URL and search regions with search configurations, the developer toolbar with a session state viewer, and e-mail through SMTP with OAuth2, Microsoft Graph, Amazon SES and HTTP APIs; import checks, application availability, property help and e-mail compared again; 2026-10-06: pgkiln 0.31.0, in progress: static application files and the Execute JavaScript dynamic action; region, item, dynamic action and process plug-ins; conditional and dynamic theme styles; XML and Excel in `meta.parse_data`, zips in SQL, `meta.v_boolean`; file items in S3-compatible object storage; map layers by the visible area and as vector tiles; a graphical query builder; tenants for workflows and tasks; application files as YAML and region static IDs; Lucide icons and icon modifiers; PWA push notifications; 0.30.0: 136 icons and an icon picker; an axe-core accessibility audit; cropping pictures; session sharing between applications; twenty-two built-in languages; 0.29.0: workspaces; the Iris base style; drawers; built-in template components including the metric card; Theme Roller dark-mode colours, live preview and template options on items and report columns; report selection across pages; instance settings; fourteen built-in languages; 0.28.0: AI with Claude and OpenAI; 0.27.0: Data Reporter; sample data generator; create application from several sheets, pasted data or existing tables; 0.26.0: working copies with a three-way merge; theme, library and boilerplate applications with subscriptions; 0.25.0: Gantt, pyramid and polar charts; map layers, clustering and server-side spatial filters; REST data sources that write back from forms and grids and synchronise into tables, OAuth2 password and refresh-token grants; debug messages per request and an install/upgrade log; `meta.web_request()` and `meta.parse_data()`; Theme Roller style variants and template options; 0.24.0: automations with several actions, error handling per row and runs from SQL; invoke-API workflow steps; Unload Data in the Data Workshop; create page wizards for cards, calendar, chart, map, faceted search, form and master-detail; create an application from a file; 0.23.0: interactive grid aggregates, frozen/moved/resized columns, layouts and saved grid reports, master-detail, row actions and copy/paste; download processes, execution chains in the background, workflow processes, branches to a function's URL or another app, the Dialog Closed event; number format masks, automatic time zone, runtime messages in German, French and Spanish; SQL scripts, Quick SQL, a query builder, XML loading and data load definitions; custom authentication, lists, page and application locks with developer comments, supporting objects; 0.22.0: keyset paging, report PDFs and REST collections streamed from a cursor, database-account authentication; 0.21.0: HTTP-header authentication behind a reverse proxy; 0.20.0: a popup list of values with server-side search; 0.19.0: row-range pagination, maximum row counts and row limits, lazy loading and caching of regions, streamed CSV/Excel downloads; 0.18.0: calendar week/day/list views with drag and drop, bubble/gauge/funnel/radar charts and drill-down, smart filters, a region display selector and more facet types, computations, conditional branches, build options, menu buttons, REST data sources and web credentials, rich text/Markdown, rating, combobox, date range and QR code items; 0.17.0: an App Builder home, workspace dashboard and utilities like APEX's; 0.16.0: a Page Designer with drag-and-drop layout, a code editor with autocomplete, template components and plug-ins, parallel branches and versions of workflows, the `pgkiln` command line with one file per component; 0.15.0: drop and paste files, heat maps, filtering a report by the map area; 0.14.0: stacked, combo, scatter and pie charts, several files per upload item; 0.13.0: map and tree regions; 0.12.0: REST modules in the builder; 0.11.0: workflows and Progressive Web Apps; 0.10.0: LDAP, SAML, "Keep me signed in", document templates, JSON loading, approvals and the task list; pgkiln installs no application, HR is an example).
|
|
10
|
+
Last reviewed: 2026-11-03 against **APEX 26.2** (sprint 138: an application's Utilities tab with a dashboard, database object dependencies, change history per component, Upgrade application, UI defaults (APEX's Attribute Dictionary), application and page checksums and an icon browser (AP-5); sprint 137: Create page as a grid of page types with previews, the page types interactive report, smart filters, search page, data loading, tree, timeline, media list, content row, comments, dashboard, wizard, unified task list and workflow console, a Feature tab with nine features that install once, and Create page as copy with shared components mapped or copied (AP-3); sprint 136: vector providers (an AI service with an embedding model or a SQL function), `meta.embed`, *Add vector column* in Table Properties with an HNSW index and a queue that keeps embeddings current, search types vector and hybrid (reciprocal rank fusion with full-text) and a Retrieve (RAG) tool for AI agents, all as the app's role through RLS, on pgvector (AP-1); sprint 135: full-text search configurations, APEX's Oracle Text search type on PostgreSQL full-text search with stemming, ranking, highlights, *Did you mean* and *Add full-text search* in Table Properties (AP-2); sprint 134: the builder also in Italiano, 中文 (简体), 中文 (繁體), 日本語 and 한국어, APEX's ten builder languages plus Nederlands (SEC-5); sprints 121, 123–125: the builder in Deutsch, English, Español, Français, Nederlands and Português, step by step: the frame, sign-in, Workspace home, App Builder, Page Designer menus, the SQL Workshop's home, SQL Worksheet, Object Browser and Table Properties, Shared Components, application settings, users, identity providers, developers and workspaces (WS-7); sprint 122: *Ask in your own words* sets faceted search and smart filter facets, smart filters read a typed phrase (WS-5), and Sample Maps, Sample Approvals, Sample Data Loading and Sample Files in the App Gallery (WS-8); sprint 120: the App Gallery's single-topic sample apps (charts, cards, calendar, interactive grids, dynamic actions, reporting), the UX Pattern Catalog and a Utility Apps tab with Lookup Lists, Release Notes and Announcements (WS-8); sprint 119: data security per table, a roles × columns matrix and masked values per application role in a masking view, the same identity for pages, AI tools, REST, AutoREST and MCP (WS-13); sprint 118: Administration → Mail queue with delivery per hour and per workspace, the slowest provider calls and failures with Retry and Purge, a workspace's own mail service, and workspace network access lists that narrow the installation's allow-list (WS-9); sprint 117: Pillar Light and Pillar Dark navigation appearances with a header strip, clearer navigation tree states, subtle colour utilities, RTL; sprint 116: the comparison moved from 26.1 to 26.2, with a section for the 26.2 workspace items WS-1 … WS-13 and OCI managed identities; the App Builder list with Updated by, working copies and the lock; `pgkiln import --only`, a file-level import; stale rows on facet menus and blueprints fixed; sprint 115: popup LOVs that load on scroll, Wait Popup dynamic actions and dynamic actions on menu entries; sprint 114: Workflow 26.2 with custom task outcomes, task events and notifications, Send E-Mail and draft steps, migrating running instances and the diagram as SVG / PNG; sprint 113: Team Development with issues, labels, milestones, templates, a board and a set-up wizard; sprint 112: AI interactive reports with chips, Undo, computed columns and a phrase parser that needs no AI service; sprint 111: AI Agents with tools as a shared component, a Navigate tool with checksummed URLs, Gemini and OpenAI-compatible services; sprint 110: Data Reporter as a workspace tool with datasets, reporting applications, editors and viewers, published reports with stable URLs and pins; sprint 109: the Workspace home above the App Builder and SQL Workshop, with a summary, top applications, users and developers, and an optional release check; sprint 108: the code editor's syntax colours in the builder's light and dark themes, read-only SQL highlighted, the Data Modeler in dark mode; sprint 107: a transaction mode in the SQL Worksheet with Commit and Rollback; DA-18: JavaScript (MLE) not planned, plv8 where installed; sprint 106: the change log of DDL change sets with Flyway, Liquibase and SQL downloads; sprint 104: RESTful Services modules, templates and handlers with PL/pgSQL and media handlers, privileges, OpenAPI and Try it; sprint 103: Schema Export / Import with pg_dump and pg_restore; sprint 102: the SQL Monitor with live sessions, Top SQL and a statement's plan; sprint 101: Scheduling of pg_cron jobs with a schedule builder, run now and run history; sprint 100: RESTful Services, tables and views published as REST endpoints with paging, filters, keys and OpenAPI; sprint 99: Administration → Database Users for PostgreSQL roles; sprint 98: the Data Modeler with relational diagrams, DDL and a data dictionary; sprint 97: charts of a query in the worksheet, saved charts and their dashboard; sprint 96: the SQL Workshop's Launchpad with pins and tool groups, the builder's search with Ctrl+K; sprint 95: Table Properties: create, edit or copy a table in a form with a DDL preview and Apply in one transaction; sprint 94: an object's menu with Open in a panel, Quick DDL, Add index / trigger / policy and Drop with dependents; sprint 93: worksheets saved as SQL Scripts with tabs and a Files list, Format, Convert case, find and replace, bind and substitution variables; sprint 92: the worksheet's Query Result with sort, value dialog, copy and downloads, plans as a tree with the slowest step and misestimates, SQL History with status, search and run again; sprint 91: the SQL Worksheet like Database Actions' SQL: navigator, Run Statement at the cursor and Run Script with a log per statement, Explain Plan, Autotrace, notices, history, Run as an application role; sprint 90: Comment Out in the page designer, gallery labels in title case; sprint 89: the Object Browser's schema, one row of tabs, blank NULLs, Modify column; sprint 88: home cards with colour bands and round icons, the hero on the page background, a page footer with the version and Back to top; sprint 87: the Create Application wizard reloads the page list for a schema, RLS badges, the alias from the name; sprint 86: the page designer by page number, HTML error pages in the builder; sprint 85: the Form Designer, beyond APEX; sprint 84: the date picker, facet menus; sprint 83: Component Settings and Component Groups; sprint 82: Report Queries; sprint 81: Application Computations and Shortcuts in Shared Components; sprint 80: the master grid's first row selected when the page opens and after a search; grid cells as text with their format mask until edited, with cell navigation by arrow keys, Enter, F2 and Escape; sprint 79: generated dashboards with sums, donuts and lines, leaving out charts that say nothing; applications open in their own light or dark mode until the user chooses, per application; a user menu with Appearance and Sign in when signed out; the developer toolbar's App and Page texts and debug state; the report search's column scope in the magnifier; sprint 78: generated faceted search reports with one column per foreign key, the faceted search's total row count, Show all and Yes/No values, one search field, friendly headings and number formats in generated grids and master-detail pages, friendly names in the Create Application wizard's page list; sprint 77: the Page Designer's layout and tree by display position, button positions, the tree's context menu with Duplicate and Copy to other page, Show Common / Show All, Go to group and the Template Options dialog; display positions, button positions and side-column page templates at runtime; sprint 76: the interactive report's menus and pagination, date items in the date format; sprint 75: the SQL Workshop's Object Browser and tabs; sprint 74: the builder's information architecture: Shared Components grid, Settings tabs, application home search and tasks; sprint 73: the Create Application wizard on one page with page types and features; sprint 72: the runtime chrome compared with APEX 26.2's: the developer toolbar, the Iris look, the navigation bar's Help menu and Install button; sprint 71: generated applications compared with APEX 26.2's: labels, foreign key names in reports, file columns, format masks, the Home page and the dashboard; sprint 70: treemap, sunburst and timeline charts; sprint 69: dragging tasks on a Gantt chart; sprint 68: the Data Reporter's welcome page, Find my workspace; sprint 67: REST source catalogs from OpenAPI documents, a workspace's export and import (two rows added); sprint 66: a blueprint from an existing application; sprint 65: facet charts; sprint 64: approval vacation rules and expiration policies; sprint 63: range, box plot and stock charts; sprint 62: workspace preferences (SQL Workshop and RESTful services per workspace), extension links, Manage backups across applications, SQL Workshop utilities with object reports, About Database and a database monitor; sprint 61: the builder's screens compared with APEX 26.1: the workspace sign-in page, the Administration menu with workspace message, environment banner and utilization, the SQL Workshop home, the App Gallery, application groups and cross application reports (four rows added); sprint 60: isolated workspaces with their own database logins, row-level security on pgkiln's tables and workspace database roles, workspace administrators; sprint 59: the Page Designer's help pane, Quick edit from the developer toolbar; sprint 58: page groups; sprint 57: region templates hero, title bar, buttons container, inline dialog and drawer, wizard with wizard progress, the carousel; sprint 56: Generate DDL and Schema Comparison in the SQL Workshop, `pgkiln ddl` and `pgkiln compare`; sprint 55: an editable login page with a Login region and the Minimal page template, Forgot password through the application's mail service; sprint 54: interactive grid views, the single row view, group by and chart; sprint 53: application settings, user preferences and items kept per user, dynamic translations, `meta.data_export` and data export downloads, display image and geocoded address items; sprint 52: every dynamic action event and action, Ajax callbacks, an error handling function, the session timeout warning; sprint 51: checked imports, application backups, availability and Run only, feedback, type-specific attribute help; sprint 50: lost update detection, warn on unsaved changes, the URL and search regions with search configurations, the developer toolbar with a session state viewer, and e-mail through SMTP with OAuth2, Microsoft Graph, Amazon SES and HTTP APIs; import checks, application availability, property help and e-mail compared again; 2026-10-06: pgkiln 0.31.0, in progress: static application files and the Execute JavaScript dynamic action; region, item, dynamic action and process plug-ins; conditional and dynamic theme styles; XML and Excel in `meta.parse_data`, zips in SQL, `meta.v_boolean`; file items in S3-compatible object storage; map layers by the visible area and as vector tiles; a graphical query builder; tenants for workflows and tasks; application files as YAML and region static IDs; Lucide icons and icon modifiers; PWA push notifications; 0.30.0: 136 icons and an icon picker; an axe-core accessibility audit; cropping pictures; session sharing between applications; twenty-two built-in languages; 0.29.0: workspaces; the Iris base style; drawers; built-in template components including the metric card; Theme Roller dark-mode colours, live preview and template options on items and report columns; report selection across pages; instance settings; fourteen built-in languages; 0.28.0: AI with Claude and OpenAI; 0.27.0: Data Reporter; sample data generator; create application from several sheets, pasted data or existing tables; 0.26.0: working copies with a three-way merge; theme, library and boilerplate applications with subscriptions; 0.25.0: Gantt, pyramid and polar charts; map layers, clustering and server-side spatial filters; REST data sources that write back from forms and grids and synchronise into tables, OAuth2 password and refresh-token grants; debug messages per request and an install/upgrade log; `meta.web_request()` and `meta.parse_data()`; Theme Roller style variants and template options; 0.24.0: automations with several actions, error handling per row and runs from SQL; invoke-API workflow steps; Unload Data in the Data Workshop; create page wizards for cards, calendar, chart, map, faceted search, form and master-detail; create an application from a file; 0.23.0: interactive grid aggregates, frozen/moved/resized columns, layouts and saved grid reports, master-detail, row actions and copy/paste; download processes, execution chains in the background, workflow processes, branches to a function's URL or another app, the Dialog Closed event; number format masks, automatic time zone, runtime messages in German, French and Spanish; SQL scripts, Quick SQL, a query builder, XML loading and data load definitions; custom authentication, lists, page and application locks with developer comments, supporting objects; 0.22.0: keyset paging, report PDFs and REST collections streamed from a cursor, database-account authentication; 0.21.0: HTTP-header authentication behind a reverse proxy; 0.20.0: a popup list of values with server-side search; 0.19.0: row-range pagination, maximum row counts and row limits, lazy loading and caching of regions, streamed CSV/Excel downloads; 0.18.0: calendar week/day/list views with drag and drop, bubble/gauge/funnel/radar charts and drill-down, smart filters, a region display selector and more facet types, computations, conditional branches, build options, menu buttons, REST data sources and web credentials, rich text/Markdown, rating, combobox, date range and QR code items; 0.17.0: an App Builder home, workspace dashboard and utilities like APEX's; 0.16.0: a Page Designer with drag-and-drop layout, a code editor with autocomplete, template components and plug-ins, parallel branches and versions of workflows, the `pgkiln` command line with one file per component; 0.15.0: drop and paste files, heat maps, filtering a report by the map area; 0.14.0: stacked, combo, scatter and pie charts, several files per upload item; 0.13.0: map and tree regions; 0.12.0: REST modules in the builder; 0.11.0: workflows and Progressive Web Apps; 0.10.0: LDAP, SAML, "Keep me signed in", document templates, JSON loading, approvals and the task list; pgkiln installs no application, HR is an example).
|
|
11
11
|
|
|
12
12
|
## At a glance
|
|
13
13
|
|
|
14
14
|
| Area | ✅ | 🟡 | ❌ | ➖ | In short |
|
|
15
15
|
|---|---:|---:|---:|---:|---|
|
|
16
|
-
| App Builder and development |
|
|
16
|
+
| App Builder and development | 22 | 0 | 0 | 0 | Page Designer with drag-and-drop and a code editor, wizards, search, where used, an Advisor, a CLI with one file per component, page locks and comments, supporting objects, working copies with a three-way merge, theme/library/boilerplate apps with subscriptions; App Builder AI (pages, SQL and table descriptions) |
|
|
17
17
|
| Regions | 23 | 0 | 0 | 0 | All everyday regions, a search region over search configurations and a URL region; twenty-two chart types with drill-down; calendars with week/day/list views and drag and drop; faceted search, smart filters and a region display selector; interactive reports with breaks, aggregates, highlights, compute, group by, pivot, chart view and saved reports; interactive grids with single row, group by and chart views; maps (with vector tiles) and trees; template components; row ranges, lazy loading and region caching for large tables |
|
|
18
18
|
| Items | 13 | 0 | 0 | 0 | All common items, file upload (several files per item), rich text and Markdown editors, star rating, combobox, date range, QR code, password reveal, display image and geocoded address |
|
|
19
19
|
| Logic and processing | 18 | 0 | 0 | 1 | User preferences and application settings; all dynamic action events and actions, Ajax callbacks and an error handling function; Core APEX model complete with computations, conditional branches, build options and menu buttons, download, chain and workflow processes; JavaScript from static application files in dynamic actions; region, item, dynamic action and process plug-ins |
|
|
@@ -24,7 +24,7 @@ Last reviewed: 2026-11-03 against **APEX 26.2** (sprint 136: vector providers (a
|
|
|
24
24
|
| Workflow, automation and AI | 6 | 0 | 0 | 0 | Scheduled automations with several actions and runs from SQL, approvals, a task list and workflows with parallel branches, versions and invoke-API steps; AI with Claude or OpenAI: *Generate text with AI*, an assistant region with tools, natural-language report filters and blueprints |
|
|
25
25
|
| Administration | 14 | 0 | 0 | 0 | An APEX-like sign-in with a workspace and a Workspace home; a mail queue dashboard, a workspace's own mail service and network access list (26.1 / 26.2); a workspace's components exported and imported as one file; workspace message, environment banner and utilization; isolated workspaces with their own database logins and roles, and workspace administrators; application availability and Run only, automatic backups, user feedback; a developer toolbar with a session state viewer and debug per session; Top SQL per app; debug messages per request; an install/upgrade log |
|
|
26
26
|
| APEX 26.2 workspace (WS-1 … WS-13) | 13 | 0 | 0 | 1 | Workspace home, Data Reporter as a workspace tool, Team Development, AI Agents, AI interactive reports, Workflow 26.2, the mail queue, workspace mail and network access, the 26.1 component details, the App Builder list's details, the Pillar navigation appearances and data security per table (rows, columns and masked values), the App Gallery's single-topic sample apps, UX Pattern Catalog and Utility Apps; the builder in eleven languages (APEX's ten and Nederlands) |
|
|
27
|
-
| **Total** | **
|
|
27
|
+
| **Total** | **162** | **0** | **0** | **4** | 166 APEX features compared: 98% available, none missing, 4 deliberately not planned |
|
|
28
28
|
|
|
29
29
|
(Counts are of the rows in the tables below. A review on 2026-10-06 added 18 rows for APEX features that were
|
|
30
30
|
not compared before, one on 2026-10-12 added two more (property help, application availability), and one on
|
|
@@ -41,7 +41,7 @@ the 26.2 comparison.)
|
|
|
41
41
|
|---|---|---|
|
|
42
42
|
| App Builder: create, edit, delete, run apps | ✅ | Builder at `/builder` |
|
|
43
43
|
| Create application wizard | ✅ | Blank app with its own database role and schema, started from a **boilerplate application** if wanted; **from a file**: CSV/TSV/XLSX/JSON/XML, where an Excel workbook with several sheets (or JSON with several arrays) becomes several tables, with a preview to include or leave out each sheet, edit table/column names, types and primary keys, and **foreign keys proposed** from matching columns; **from pasted data** (CSV/TSV text); **from existing tables** (pick the tables and views of a schema). Each gives a report and form per table, navigation and an optional dashboard (a chart per table), plus an optional faceted search for a single table, all created in one transaction. (sprint 73) **One page like APEX's**: name, icon and description, appearance (theme style, side or top menu, accent), a **page type per table** (interactive report with form, faceted search, cards, calendar, master detail, interactive grid, report, none; large tables proposed as a grid), **features** (About page, access control roles, activity reporting, feedback, theme style selection, PWA, push), settings (alias, authentication, first user, language) and a boilerplate under Advanced; a progress message, then straight to the new application. (sprint 71) The generated pages read like APEX's: human labels (abbreviations, run-together words, column and table comments), plural page and menu names with singular form titles, foreign keys shown by the parent's name in reports, `bytea` columns as one file item with their name/mime/size/updated columns, number format masks, a pencil per report row, the Dashboard after Home with *(none)* and top-N charts, and a Home page with a hero and a card per page. (sprint 66) **From a blueprint** (26.1 blueprints): a reviewed JSON spec of tables, pages and sample data, or a blueprint made from an existing application (see [Blueprints](#workflow-automation-and-ai)) |
|
|
44
|
-
| Create page wizards | ✅ | Report and form,
|
|
44
|
+
| Create page wizards, Create a Page (Component, Feature), Create Page as Copy | ✅ | (sprint 137, AP-3) **Create page** is a grid of page types with small previews like APEX's: Blank page, Calendar, Cards, Chart, Comments, Content row, Dashboard, Data loading, Faceted search, Form, Interactive grid, Interactive report, Map, Master detail, Media list, Report and form, Search page, Smart filters, Timeline, Tree, Unified task list, Wizard, Workflow console and Create pages with AI; the table step only for the types on a table, with defaults from the catalog (columns, key, dates, positions, foreign keys; a tree's parent from a self-referencing foreign key; a wizard's steps with a progress list; a data load definition and its page), an optional modal form page and a navigation entry; also from SQL (`meta.generate_page`). **Feature** (also App home → Add feature page): Access control, Activity reporting, Configuration options (configurable build options as switches for administrators), E-mail reporting (a weekly activity report by mail), Feedback, About, Login page, Theme style selection, Push notifications; each lists what it adds, installs once and greys out ([chapter 3](guide/03-builder.md#add-feature)). **Copy**: a page of this or another application of the workspace under a new number and name, `P<n>_` items renamed, the shared components it uses mapped to the target's or copied ([chapter 3](guide/03-builder.md#create-page-as-copy)). No Classic Report type (the interactive report covers it), no side-by-side or drill-down master-detail
|
|
45
45
|
| Page Designer | ✅ | IDE-style window (dark or light): component tree, a layout canvas with drag and drop (with keyboard and button alternatives) and a gallery of regions, items and buttons, a filterable property editor; undo/redo; panes become tabs on phones. Settings forms for report, grid, chart, cards, calendar, faceted search, smart filters, display selector, map, tree and template component regions. A code editor for SQL, PL/pgSQL, JSON and HTML with highlighting and autocomplete of tables, columns and `:ITEM` binds (no extra libraries). Drag and drop needs a mouse; on touch screens the Arrange buttons move components. (sprint 77) The layout draws the page template's display positions (banner, breadcrumb bar, left/right column, body, footer) as drop zones and a region's button positions; the rendering tree groups by position and has a context menu (create in or below, Duplicate, Copy to other page, expand/collapse all, (sprint 90) Comment out with a COMMENTED_OUT build option, delete; no Create Sub Region: no nested regions); the property editor has Common / All, Go to group and a Template Options dialog; a page number in the toolbar. No nested regions (APEX's sub regions) |
|
|
46
46
|
| Shared components | ✅ | (sprint 74) A grid of ten groups with counts like APEX's, a searchable, sortable list per type with Create, and Settings-backed types linking to their Settings tab ([mapping below](#shared-components-apex-links-and-pgkiln)). Navigation menu, **lists** (static entries with nesting, badges, conditions, authorization and build options, or a query; for list regions, the navigation menu and the navigation bar), authorization schemes, build options, lists of values, application items and processes, access control, globalization, template components and plug-ins, web credentials, REST data sources, data load definitions, supporting objects |
|
|
47
47
|
| Export / import | ✅ | `meta.export_app()` / `meta.import_app()`: portable JSON, also in the builder (new applications; `pgkiln import --replace` and the MCP `import_app` update one in place, live for every user at the commit). (sprint 51) **Checked imports**: `pgkiln import --check` (`--dry-run`, `--force`), the MCP import (by default) and the builder's import run the Advisor inside the import's transaction (SQL planned as the application's role: missing tables, columns, functions, types, grants; references) and refuse on errors, so nothing changes; APEX doesn't check. The version an import replaces is [backed up](guide/03-builder.md#backups) first ([chapter 18](guide/18-cli.md#checking-before-an-import)) |
|
|
@@ -54,6 +54,7 @@ the 26.2 comparison.)
|
|
|
54
54
|
| Theme, library and boilerplate application types (26.1) | ✅ | An application type in Settings ([chapter 3](guide/03-builder.md#application-types-and-subscriptions)): a **theme** app offers its theme (colours, navigation, Theme Roller styles) and template components, a **library** app its lists of values, authorization schemes, build options, template components and lists; other apps **subscribe** (the component is copied), see whether they are in sync, **refresh** one or all, and the master **publishes** to its subscribers (locked apps skipped). A **boilerplate** app is a *Start from* choice in Create application. Subscriptions are not exported; no subscriptions to pages or plug-ins other than template components |
|
|
55
55
|
| Property help in the Page Designer, component reference | ✅ | Help text under most properties in the Page Designer (175 of 266 fields; the obvious ones such as *Title* and *Sequence* have none), and a guide section per region type, item type and button with the columns its SQL must return ([chapter 4](guide/04-pages-and-regions.md#region-types), [5](guide/05-items.md), [6](guide/06-processing.md#buttons)). (sprint 51) A region's *Attributes (JSON)* help shows its own type's keys with a link to its section of the guide. (sprint 59) The **Help pane** under the properties shows the focused property's help, the name it is stored under and the guide section of the component's type |
|
|
56
56
|
| Advisor | ✅ | Per app: every SQL fragment planned (EXPLAIN, as the app's role, rolled back) for syntax, unknown objects, types and grants; PL/pgSQL blocks compiled; references to missing pages, items, lists of values, schemes and layouts; PL/pgSQL functions with `plpgsql_check` when installed. Plus the security checklist |
|
|
57
|
+
| Application Utilities: dashboard, database object dependencies, change history, Upgrade Application, Attribute Dictionary, application and page checksums, icons | ✅ | (sprint 138, AP-5) An application's **Utilities** tab gathers the Advisor, Search, Debug, Activity, Backups, Working copies and Export with an application dashboard and recently updated pages; **Database object dependencies** (every SQL the Advisor plans, parsed as the app's role, with the components that use each object; missing objects and missing grants in red); **Change history** per component with who, when and a diff, for builder changes and every import `--replace` (`CHANGE_HISTORY_DAYS`); **Upgrade application** (date pickers for date columns, popup LOVs for large tables, a navigation appearance) with a preview; **UI defaults** per column (label, format mask, help, alignment, LOV) used by the page and application wizards, seeded from column comments; a SHA-256 **application checksum** with one per page, also in Export's `X-Pgkiln-Checksum` header; an **icon browser** ([chapter 3](guide/03-builder.md#utilities)) |
|
|
57
58
|
| Builder search, "where used" | ✅ | Search over every page and component (names, SQL, settings, help); "Used in" under items, pages, lists of values, schemes and report layouts. No search and replace |
|
|
58
59
|
| AI assistant, pages from natural language, describe tables for LLMs (26.1) | ✅ | **App Builder AI** (administrators choose the builder's AI service): SQL Workshop → AI writes SQL from a question (shown in an editor, never run automatically), explains a query or an error, and describes tables and columns for LLMs (notes, optionally `COMMENT ON`, with AI drafts from names, types and keys only); **Create pages with AI** turns a description into proposed pages that the developer edits and confirms ([chapter 3](guide/03-builder.md)). The model never sees table rows |
|
|
59
60
|
| Sample data source for development (26.1) | ✅ | SQL Workshop → **Sample Data** ([chapter 16](guide/16-files.md#sql-workshop--sample-data)): generators proposed per column from the catalog and column names (names, e-mail addresses, phones, companies, addresses, words and sentences, codes, number/date/time ranges, booleans, value lists from enums and CHECKs, sequences, foreign keys picking existing or newly inserted parent rows, values relative to another column, % nulls; identity/serial/generated columns skipped; unique and simple CHECK constraints respected), rows per table, a seed for repeatable data, preview (inserted and rolled back), insert in one transaction with parents first, download as SQL INSERTs or CSV, saved generator definitions |
|
|
@@ -81,7 +82,7 @@ the 26.2 comparison.)
|
|
|
81
82
|
| Region display selector, tabs | ✅ | Tabs or a select list; regions can share a tab, *Show all*, the choice remembered in the session, `#R<id>` links. Accessible tabs with JavaScript; without it every region shows with links to each |
|
|
82
83
|
| Tree | ✅ | `tree` region from id / parent id / label rows, with icons, links and the first levels open; works without JavaScript |
|
|
83
84
|
| Map region (26.1: vector tiles, bounding box) | ✅ | `map` region: several layers per map, each with its own query (markers, lines and areas from GeoJSON or a PostGIS geometry, heat maps), a legend that switches layers on and off and a colour per layer; marker clustering; popups with links. A report can be filtered by the visible area or by the distance from the map's centre on the server: with PostGIS (`ST_Intersects`/`ST_DWithin`, detected automatically) when installed, otherwise on latitude/longitude (bounding box, haversine). Configurable tile server. (0.31) **Large data sets**: a layer loads only the places in the visible area, again as the map moves (`visible_area`), or is served as **Mapbox Vector Tiles** (`tiles`, MVT 2.1, drawn on canvases with popups; readable by MapLibre, OpenLayers or QGIS), both filtered on the server like the report filter ([chapter 4](guide/04-pages-and-regions.md#map)) |
|
|
84
|
-
| Timeline, comments, media list, avatar template components (26.1: groups, Metric Card) | ✅ | Built in for every application: avatar (groups), badge, comments, media list, metric card and timeline, as regions (one or all rows, the group) and report column templates; an application's own copy replaces a built-in one ([chapter 4](guide/04-pages-and-regions.md#built-in-template-components)) |
|
|
85
|
+
| Timeline, comments, media list, avatar template components (26.1: groups, Metric Card) | ✅ | Built in for every application: avatar (groups), badge, comments, (sprint 137) content row, media list, metric card and timeline, as regions (one or all rows, the group) and report column templates; an application's own copy replaces a built-in one ([chapter 4](guide/04-pages-and-regions.md#built-in-template-components)) |
|
|
85
86
|
| Pagination of large tables (row ranges, maximum row count) | ✅ | Reports and grids page in the database; `"pagination": "range"` shows APEX's "row ranges X to Y" without a total (it reads one row more for *Next*); `max_rows` is a maximum row count (the total is counted over at most max+1 rows: "of more than N"; downloads are capped too); page numbers and sizes are clamped on the server. Cards (500), charts (1000), dynamic content (1000) and lists of values (5000) have configurable row limits. Keyset ("seek") paging on an indexed sort (`"keyset"`), with signed positions |
|
|
86
87
|
| Lazy loading of regions | ✅ | `"lazy": true` on report, chart, cards, dynamic, tree and template component regions: a placeholder, fetched after the page shows (page, condition and authorization re-checked); without JavaScript a link shows the region ([chapter 4](guide/04-pages-and-regions.md#large-tables)) |
|
|
87
88
|
| Region caching (per user, per session, for a duration) | ✅ | `"cache": {"scope": "user" \| "session" \| "all", "seconds": N}` keeps rendered regions in server memory, keyed by app, region, roles, language, the query string and the item values the region uses; a page submit empties it. CSRF tokens and per-user links are never shared. Per server process |
|
package/docs/guide/03-builder.md
CHANGED
|
@@ -855,8 +855,8 @@ they are **not** run until you choose to.
|
|
|
855
855
|
|
|
856
856
|
(sprint 74) Above the pages: a **search** by page name or number (the rows filter while you type),
|
|
857
857
|
**Report** and **Icons** views, and **Create page** (the page wizards below). **Tasks** on the right: run the
|
|
858
|
-
application, create pages (also with AI),
|
|
859
|
-
objects, lock or delete the application.
|
|
858
|
+
application, create pages (also with AI), (sprint 137) **Add feature page** and **Create page as copy**, Shared
|
|
859
|
+
Components, page groups, export, backups, supporting objects, lock or delete the application.
|
|
860
860
|
|
|
861
861
|
The **default-password** warning shows on the App Builder home (and Developers) only; dismiss it with × until the
|
|
862
862
|
next sign-in. The avatar keeps a red dot until the password is changed.
|
|
@@ -867,9 +867,19 @@ authorization and protection. The tabs under its name lead to **Shared Component
|
|
|
867
867
|
|
|
868
868
|
### Create pages from a table (wizards)
|
|
869
869
|
|
|
870
|
-
|
|
870
|
+
(sprint 137; APEX: Create a Page) **Create page** opens a page with three tabs:
|
|
871
|
+
|
|
872
|
+
- **Component**: the page types as a grid of tiles, each with a small picture of the page (Blank page,
|
|
873
|
+
Calendar, Cards, Chart, Comments, Content row, Dashboard, Data loading, Faceted search, Form, Interactive grid,
|
|
874
|
+
Interactive report, Map, Master detail, Media list, Report and form, Search page, Smart filters, Timeline, Tree,
|
|
875
|
+
Unified task list, Wizard, Workflow console) and **Create pages with AI**. A type that works on a table asks
|
|
876
|
+
for the table first; the others go to their options at once.
|
|
877
|
+
- **Feature**: [features](#add-feature) to add to the application.
|
|
878
|
+
- **Copy**: [a page of this or another application](#create-page-as-copy) under a new number.
|
|
879
|
+
|
|
880
|
+
The wizards are plain forms (they work without JavaScript). Choose a
|
|
871
881
|
**page type** and a **table or view** (tables the app's database role can't read are marked) and
|
|
872
|
-
press **Next
|
|
882
|
+
press **Next** (the App home's *Create pages from a table* form still does the same in one step). The second step proposes everything from the database catalog: the columns, the
|
|
873
883
|
primary key, date and number columns, positions and foreign keys. Change what you like, choose the
|
|
874
884
|
page number, name and menu icon, and press **Create page**: the builder opens the new page in the
|
|
875
885
|
page designer. An error (a page number in use, a column that doesn't fit) shows on the second
|
|
@@ -886,6 +896,15 @@ step, which keeps the table and type.
|
|
|
886
896
|
| **Map** | A [map](04-pages-and-regions.md#map) region with popups and, if ticked, an interactive report of the same rows that the map filters (*Show this area in the list*) | Position: a PostGIS geometry or geography (markers, and lines and areas as shapes), a `point`, `lat`/`lng`-like number columns, or a *location* text column with `latitude,longitude` |
|
|
887
897
|
| **Faceted search** | An interactive report (9 columns wide) and a [facets](04-pages-and-regions.md#facets-faceted-search) panel (3 columns, collapsible) with a search field | Up to six facets: foreign keys (values of the parent's name, which the report shows instead of the key), booleans, text columns with few values, dates and numbers as ranges with *from*/*to* |
|
|
888
898
|
| **Master detail** | One page with a grid of the table and an editable grid of the selected row's details below it (the grids' [master-detail](04-pages-and-regions.md#grid-interactive-grid)): a hidden item for the selection, both grids with a grid DML process; new detail rows get the master's key | The detail table: a table with a foreign key to this table's primary key |
|
|
899
|
+
| **Interactive report** | (137) An [interactive report](04-pages-and-regions.md#report-interactive-report) of the table on a page of its own (parents' names next to foreign keys, labels and number formats), optionally with a modal form page | |
|
|
900
|
+
| **Smart filters** | (137) An interactive report with a [smart filters](04-pages-and-regions.md#smart_filters) search field above it | The faceted search's facets |
|
|
901
|
+
| **Tree** | (137) A [tree](04-pages-and-regions.md#tree) region: one node per row | Id: the primary key; parent: a foreign key to the table itself (`mgr` → `empno`); label: the name column |
|
|
902
|
+
| **Timeline**, **Media list**, **Content row**, **Comments** | (137) A region of the [built-in template component](04-pages-and-regions.md#built-in-template-components) `ut_timeline`, `ut_media_list`, `ut_content_row` or `ut_comments`, all rows in one list | Title: the name column; when / date: a date or timestamp column (newest first); text: a comment-, body- or description-like column; who: a user- or author-like column, else the first foreign key |
|
|
903
|
+
| **Data loading** | (137) A [data load definition](16-files.md#data-load-definitions) for the table (unless one of that name exists) and a page with a file item, **Load** and a `data_load` process | Mode *merge* for a table with a primary key, else *append* |
|
|
904
|
+
| **Wizard** | (137) One page per step (APEX: Wizard), each with a [wizard progress](04-pages-and-regions.md#list-lists) list, the step's fields, Cancel, Previous and Next; **Finish** on the last step adds the row (an `INSERT` of every step's items as the app's role). The items keep their values in the session while the user goes back and forth | Every column but the key and generated ones, shared out over two to five steps |
|
|
905
|
+
| **Search page** | (137) A [search region](04-pages-and-regions.md#search-search-region) over the application's search configurations you tick, and/or a new configuration on a table (its text columns searched, its name column as the title) | |
|
|
906
|
+
| **Dashboard** | (137) A chart per table you tick (at most six), chosen from the data like a [new application's dashboard](#what-the-generated-pages-look-like) | |
|
|
907
|
+
| **Unified task list**, **Workflow console** | (137) A [`tasks`](06-processing.md#approvals-and-the-task-list) region (my tasks, the ones I requested, or the ones I administer) or a [`workflows`](06-processing.md#workflows) region | |
|
|
889
908
|
|
|
890
909
|
Cards, Calendar, Map and Faceted search take an optional **Form page** number: it adds a modal
|
|
891
910
|
form page for a row, a link from each card, event, popup or report row, and a **Create** button
|
|
@@ -908,6 +927,41 @@ and **Create the ticked pages**. They are made with `meta.generate_page` and the
|
|
|
908
927
|
in one transaction (all or none); only page types of the list and tables the application can read
|
|
909
928
|
are accepted, whatever the form says.
|
|
910
929
|
|
|
930
|
+
### Add feature
|
|
931
|
+
|
|
932
|
+
(sprint 137; APEX: Create a Page → Feature, and App home → Tasks → Add Feature Page) **Create page → Feature**
|
|
933
|
+
(or **Add feature page** under Tasks) lists features to add to an existing application. Each one first shows
|
|
934
|
+
what it adds, and adds it only when you press its button; once installed it is greyed out and can't be added
|
|
935
|
+
twice (also when two developers press at the same moment).
|
|
936
|
+
|
|
937
|
+
| Feature | What it adds |
|
|
938
|
+
|---|---|
|
|
939
|
+
| Access control | Authorization schemes `CONTRIBUTOR` and `READER` (and `ADMIN` when missing) for the roles admin, contributor and reader |
|
|
940
|
+
| Activity reporting | Page 9010 *Activity* for administrators (authorization `ADMIN`): page views per day and the latest activity, from `meta.app_activity()`, and its navigation entry |
|
|
941
|
+
| Configuration options | Page 9020 *Configuration* for administrators: the [configurable build options](06-processing.md#build-options) as switches, and Save; you tick which build options are configurable |
|
|
942
|
+
| E-mail reporting | The application setting `EMAIL_REPORT_TO` and the automation `EMAIL_REPORTING`: every Monday at 07:00 UTC the [activity report by mail](06-processing.md#the-activity-report-by-mail) |
|
|
943
|
+
| Feedback | [Feedback](#feedback) from the header |
|
|
944
|
+
| About page | Page 9000 *About* in a Help menu of the navigation bar |
|
|
945
|
+
| Login page | An editable [login page](08-security.md#the-login-page) (page 9999, or the next free number); not offered without sign-in |
|
|
946
|
+
| Theme style selection | Users choose light or dark (Appearance in the user menu) |
|
|
947
|
+
| Push notifications | Install as an app and push notifications, with the application's key pair; needs `PGKILN_SECRET_KEY` |
|
|
948
|
+
|
|
949
|
+
A page number in use by another page blocks the feature that needs it (it says so).
|
|
950
|
+
|
|
951
|
+
### Create page as copy
|
|
952
|
+
|
|
953
|
+
(sprint 137; APEX: Create Page as Copy) **Create page → Copy** copies a page of this application or of another
|
|
954
|
+
application of the same workspace: choose the application, then the page, then the new page number and name.
|
|
955
|
+
Everything on the page comes along (regions, items, buttons, dynamic actions, validations, processes,
|
|
956
|
+
computations and branches); items named `P20_…` are renamed to the new number, also where the page's SQL, links
|
|
957
|
+
and conditions refer to them, and links to the page itself point to the copy.
|
|
958
|
+
|
|
959
|
+
The page's **shared components** (lists of values, authorization schemes, build options, lists, template
|
|
960
|
+
components, search configurations, data load definitions) are listed: for each, use one of this application's
|
|
961
|
+
(the one with the same name is chosen when there is one), or, from another application, **copy it** along. The
|
|
962
|
+
page's SQL runs as this application's database role afterwards: grant it what the other application's role
|
|
963
|
+
could read. From SQL: `meta.copy_page(from_app, page, to_app, new_page, name, map)`.
|
|
964
|
+
|
|
911
965
|
### Create a blank page
|
|
912
966
|
|
|
913
967
|
Give a page number, name, mode (normal or modal dialog) and breadcrumb parent, then add
|
|
@@ -1526,6 +1580,55 @@ Database code (views, functions, RLS policies) isn't part of the application, so
|
|
|
1526
1580
|
|
|
1527
1581
|
Findings are errors, warnings or notes, each linking to the component.
|
|
1528
1582
|
|
|
1583
|
+
## Utilities
|
|
1584
|
+
|
|
1585
|
+
**Utilities** (the last tab of an application, APEX: Application Utilities) gathers what an
|
|
1586
|
+
application's upkeep needs: tiles for the Advisor, Search, Debug messages, Activity, Backups,
|
|
1587
|
+
Working copies and Export, and the tools below. It also shows an **application dashboard** (pages,
|
|
1588
|
+
regions, items, processes, lists of values, changes in the last 7 days), the **recently updated
|
|
1589
|
+
pages** (from the change history) and the checksums.
|
|
1590
|
+
|
|
1591
|
+
- **Database object dependencies** (`/builder/apps/:id/utilities/dependencies`): every piece of SQL
|
|
1592
|
+
the Advisor plans, plus the tables of form and grid regions, is parsed as the application's
|
|
1593
|
+
database role into a temporary SQL-standard function (`CREATE FUNCTION … BEGIN ATOMIC`, rolled
|
|
1594
|
+
back, nothing runs), and PostgreSQL's own dependency records name the tables, views, sequences
|
|
1595
|
+
and functions it uses, resolved with the role's search path. Each object links to the Object
|
|
1596
|
+
Browser and lists the components (and pages) that use it. An object that doesn't exist (a dropped
|
|
1597
|
+
view, say `sales.orders_v`) is marked **Missing** in red, and so is a privilege the role lacks
|
|
1598
|
+
(**No grant**: SELECT for queries, INSERT / UPDATE / DELETE on the target of a DML statement,
|
|
1599
|
+
USAGE on sequences, EXECUTE on functions, USAGE on the schema). PL/pgSQL blocks and statements
|
|
1600
|
+
other than SELECT, INSERT, UPDATE, DELETE and MERGE are listed as not scanned.
|
|
1601
|
+
- **Change history** (`/builder/apps/:id/utilities/history`): after every change made in the
|
|
1602
|
+
builder, and inside every import `--replace` (restoring a backup, merging a working copy, the
|
|
1603
|
+
command line and the MCP server), the application's export is compared with the one after its
|
|
1604
|
+
previous change, component by component as working copies compare (a page's settings, a region
|
|
1605
|
+
with its SQL, an item, a list of values, …). Each added, changed or deleted component is kept with
|
|
1606
|
+
who (the developer; none for the command line), when and its files before and after; **Show**
|
|
1607
|
+
gives the differences as a diff. Filter by developer, date range, page and component name.
|
|
1608
|
+
History is kept `CHANGE_HISTORY_DAYS` days (365 by default; 0 keeps everything) and starts with
|
|
1609
|
+
the first change after the upgrade to the version that introduced it.
|
|
1610
|
+
- **Upgrade application** (`/builder/apps/:id/utilities/upgrade`): components made before pgkiln
|
|
1611
|
+
gained a better default, each with the reason, a **Preview** of the change and **Upgrade** (or
|
|
1612
|
+
*Upgrade all* of a kind): an application without a navigation appearance (→ Pillar Light), a text
|
|
1613
|
+
item of a form on a `date` or `timestamp` column (→ a date or date-time item with the date
|
|
1614
|
+
picker), a select list whose list of values reads a table of more than 1,000 rows (→ a popup list
|
|
1615
|
+
of values, searched and paged on the server). Upgrades are recorded in the change history.
|
|
1616
|
+
- **UI defaults** (`/builder/ui-defaults`, also under Workspace utilities; APEX: Attribute
|
|
1617
|
+
Dictionary): per table column a label, format mask, help text, alignment and list of values
|
|
1618
|
+
(`LOV:NAME`, `STATIC:…` or a query). The page wizards and the Create Application wizard use the
|
|
1619
|
+
label for report headings and form items, and a form item a wizard makes also gets the column's
|
|
1620
|
+
format mask, help and list of values. **Seed from comments** fills the columns without a UI
|
|
1621
|
+
default from their `COMMENT ON`: a short comment (60 characters at most) becomes the label, a
|
|
1622
|
+
longer one the help. UI defaults belong to the installation (not exported with an application)
|
|
1623
|
+
and apply to pages generated after the change. The tables offered are those the workspace's SQL
|
|
1624
|
+
Workshop can see.
|
|
1625
|
+
- **Application checksum**: a SHA-256 of the application's definition (its export in the text
|
|
1626
|
+
layout, without the alias), with a checksum per page: the same definition gives the same checksum
|
|
1627
|
+
on any installation, so two installations, or an application and its working copy, compare at a
|
|
1628
|
+
glance. Export sends it too, in the `X-Pgkiln-Checksum` response header.
|
|
1629
|
+
- **Icons** (`/builder/icons`): the icon picker's set, pgkiln's own icons and the Lucide icons by
|
|
1630
|
+
search, with the names to use in icon fields.
|
|
1631
|
+
|
|
1529
1632
|
## Activity monitor
|
|
1530
1633
|
|
|
1531
1634
|
Per application: page views, distinct users and average page time over the last 24 hours;
|
|
@@ -1160,7 +1160,8 @@ select empno as id, mgr as parent_id, initcap(ename) || ' · ' || initcap(job) a
|
|
|
1160
1160
|
```
|
|
1161
1161
|
|
|
1162
1162
|
Attributes: `expanded` (levels open at first, default 1), `link` (as for maps; `#id#` and any other
|
|
1163
|
-
column), `empty`.
|
|
1163
|
+
column), `empty`. (137) **Create page → Tree** makes one from a table: the key as the id, a foreign key to the
|
|
1164
|
+
table itself (`mgr` → `empno`) as the parent and the name column as the label. The tree is drawn on the server with `<details>`: it works without JavaScript,
|
|
1164
1165
|
and the browser's find-in-page opens closed branches. Clicking a label follows the link; the rest
|
|
1165
1166
|
of the row opens and closes the branch. Up to 5000 nodes.
|
|
1166
1167
|
|
|
@@ -1460,6 +1461,7 @@ with 26.1's *Metric Card* and group support). Show a region as `multiple` to get
|
|
|
1460
1461
|
| `ut_avatar` | Avatar: a picture or initials | `NAME`, `INITIALS`, `IMAGE` (a relative or https URL), `SIZE` (small, medium, large), `SHAPE` (circle, square) | An avatar group (overlapping) |
|
|
1461
1462
|
| `ut_badge` | Badge coloured by a state | `LABEL`, `STATE` (success, warning, danger, info, neutral; approved, pending, … are understood) | A row of badges |
|
|
1462
1463
|
| `ut_comments` | Comments | `USER`, `INITIALS`, `DATE`, `COMMENT`, `ACTIONS` (extra text) | One conversation |
|
|
1464
|
+
| `ut_content_row` | (137) Content row: initials or a picture, title (linked when the region has a link) and description, a secondary text and a badge on the right | `TITLE`, `DESCRIPTION`, `MISC`, `INITIALS`, `IMAGE`, `BADGE`, `STATE` | One list |
|
|
1463
1465
|
| `ut_media_list` | Media list: picture or initials, title (linked when the region has a link), description, badge | `TITLE`, `DESCRIPTION`, `INITIALS`, `IMAGE`, `BADGE`, `STATE` | One list |
|
|
1464
1466
|
| `ut_metric_card` | Metric card: a key figure with its unit, change and trend | `LABEL`, `VALUE`, `UNIT`, `CHANGE`, `TREND` (up, down, flat), `GOOD` (up or down: which direction shows green), `DESCRIPTION` | A row of cards |
|
|
1465
1467
|
| `ut_timeline` | Timeline: when, who, title, text, a coloured marker | `TITLE`, `WHEN`, `WHO`, `BODY`, `STATE` | One timeline |
|
package/docs/guide/05-items.md
CHANGED
|
@@ -21,7 +21,7 @@ page, optionally inside a region. Name them `P<page>_<NAME>` (uppercase letters,
|
|
|
21
21
|
| `radio` | radio group | the chosen return value |
|
|
22
22
|
| `checkbox` | a single checkbox | `true` / `false` |
|
|
23
23
|
| `switch` | on/off switch | `true` / `false` |
|
|
24
|
-
| `checkbox_group` | several checkboxes | **colon-separated** return values, e.g. `10:30` |
|
|
24
|
+
| `checkbox_group` | several checkboxes | **colon-separated** return values, e.g. `10:30`; (137) `{"switches": true}` shows each as a switch, one per line |
|
|
25
25
|
| `multiselect` | multi-select list | **colon-separated** return values |
|
|
26
26
|
| `display` | read-only text (shows the display value for list items) | whatever was set |
|
|
27
27
|
| `hidden` | not rendered | set by URL (with checksum), fetch or processes |
|
|
@@ -598,6 +598,15 @@ the component out (fail closed); the Advisor reports it. Build options are part
|
|
|
598
598
|
export. On HR page 22, the *Forecast* region needs `LEAVE_FORECAST` (excluded), and *Planner tips*
|
|
599
599
|
(`!LEAVE_FORECAST`) takes its place until it is included.
|
|
600
600
|
|
|
601
|
+
**Configurable build options** (sprint 137; APEX: the Configuration Options feature): tick *Configurable* on a
|
|
602
|
+
build option, and **Create page → Feature → Configuration options** adds page 9020 *Configuration* where the
|
|
603
|
+
application's administrators switch those options on and off while it runs (a checkbox group shown as switches,
|
|
604
|
+
`{"switches": true}`). From SQL, as the application's own role and for a user with the `admin` role only:
|
|
605
|
+
`meta.configurable_options()` (name, description, enabled) and `meta.set_configurable_options('EXPORT:BETA')`
|
|
606
|
+
(the named ones included, the other configurable ones excluded; an option that is not configurable is refused).
|
|
607
|
+
The change applies to every user at once, like a change in the builder. An import of a newer version of the
|
|
608
|
+
application sets the options as the export has them.
|
|
609
|
+
|
|
601
610
|
## Application processes
|
|
602
611
|
|
|
603
612
|
**Shared Components → Application processes** run for the whole application:
|
|
@@ -819,6 +828,15 @@ work for the **current application** only when the caller runs as that applicati
|
|
|
819
828
|
(pages, processes, automations, workflows and background chains do); the SQL Workshop is not an
|
|
820
829
|
application.
|
|
821
830
|
|
|
831
|
+
### The activity report by mail
|
|
832
|
+
|
|
833
|
+
`meta.send_activity_report(to, days default 7)` (sprint 137; APEX: the Email Reporting feature) queues a mail with
|
|
834
|
+
the current application's activity of the last days (page views, users, sign-ins, failed sign-ins, errors and the
|
|
835
|
+
most viewed pages) and the rows as `activity.csv`. It is for the application's automations and its signed-in
|
|
836
|
+
administrators; others get an error. **Create page → Feature → E-mail reporting** adds the application setting
|
|
837
|
+
`EMAIL_REPORT_TO` and an automation `EMAIL_REPORTING` that sends it every Monday at 07:00 UTC; without addresses
|
|
838
|
+
nothing is sent.
|
|
839
|
+
|
|
822
840
|
### E-mail templates
|
|
823
841
|
|
|
824
842
|
Shared Components → **E-mail templates** (APEX: Email Templates): a name, a subject, an HTML body
|
|
@@ -296,13 +296,16 @@ Run these as the owner (in the SQL Workshop, `psql` or migrations):
|
|
|
296
296
|
|---|---|
|
|
297
297
|
| `meta.generate_crud(app, table, report_page, form_page, label default null, icon default 'table')` | Report page + modal form page + menu entry for a table, with the column names as labels (kept as it was for existing scripts; `meta.generate_page` *report_form* makes the labelled pages of the wizards) |
|
|
298
298
|
| `meta.generate_grid(app, table, page, label default null, icon default 'grid')` | Interactive grid page + menu entry |
|
|
299
|
-
| `meta.generate_page(app, kind, table, page, options default '{}')` | The create page wizards: `kind` is `form`, `cards`, `calendar`, `chart`, `map`, `facets`, `master_detail` (or `report_form`, `grid`)
|
|
299
|
+
| `meta.generate_page(app, kind, table, page, options default '{}')` | The create page wizards: `kind` is `form`, `cards`, `calendar`, `chart`, `map`, `facets`, `master_detail` (or `report_form`, `grid`); (137) also `report`, `smart_filters`, `tree`, `timeline`, `media_list`, `content_row`, `comments`, `data_load`, `wizard`, and without a table (`null`) `search`, `tasks`, `workflows`. Options left out take the defaults of `meta.wizard_defaults`; JSON `null` means none. Returns the new page's id (below; a wizard: its first page's) |
|
|
300
300
|
| `meta.wizard_defaults(kind, table)` | The options a wizard proposes for a table, from the catalog |
|
|
301
301
|
| `meta.wizard_catalog(table)` | The columns as the wizards see them: kind (`text`, `number`, `date`, `timestamp`, `boolean`, `point`, `geometry`, `binary`, `other`), key, unique, foreign key and the parent's display column |
|
|
302
302
|
| `meta.wizard_label(name)`, `meta.wizard_table_label(table, plural default true)`, `meta.wizard_column_label(table, column)` | (097) The labels of the wizards: `hiredate` → *Hire Date*, `hr.emp` → *Employees* / *Employee*, `deptno` → *Department*; short comments win ([what the generated pages look like](03-builder.md#what-the-generated-pages-look-like)) |
|
|
303
303
|
| `meta.wizard_report(table, columns default null)` | (097) A report on a table as the wizards make it: `{"source", "hidden", "headings", "formats"}` (foreign keys joined to their parent's display column) |
|
|
304
304
|
| `meta.wizard_grid_labels(table)` | (100) An interactive grid's `{"headings", "formats"}` as the wizards make them: the labels of `meta.wizard_column_label` and the number format masks (keys get none) |
|
|
305
305
|
| `meta.app_activity(days default 30)` | (098) The current application's page views, sign-ins and errors of the last days (1 to 366, at most 10,000 rows, no IP addresses), for a signed-in user with the `admin` role of that application; others get an error. The Activity page of the Create Application wizard reads it |
|
|
306
|
+
| `meta.configurable_options()`, `meta.set_configurable_options(names)` | (137) The current application's [configurable build options](06-processing.md#build-options) (name, description, enabled), and switching them (`names` colon-separated: those are included, the other configurable ones excluded). Only as the application's own role, for a user with the `admin` role; other options are refused |
|
|
307
|
+
| `meta.send_activity_report(to, days default 7)` | (137) Queue a mail with a summary of the current application's activity of the last days and the rows as `activity.csv`. For the application's automations and its signed-in administrators; empty `to`: nothing is sent. The *E-mail reporting* feature's automation calls it |
|
|
308
|
+
| `meta.copy_page(from_app, page, to_app, new_page, name default null, map default '{}')` | (137) [Create page as copy](03-builder.md#create-page-as-copy) (owner only); `map` is `{"lov:JOBS": "JOB_TITLES"}`: a shared component to use instead of copying it. `meta.page_shared_refs(page_id, target_app)` lists what a page refers to by name |
|
|
306
309
|
| `meta.wizard_files(table)` | (097) The `bytea` columns and the columns holding their file name, mime type, size and change time |
|
|
307
310
|
| `meta.export_app(alias)` | The application as JSON (`pgkiln/2` format) |
|
|
308
311
|
| `meta.import_app(json, alias default null)` | Import an export, optionally under a new alias; returns the new app id |
|
|
@@ -327,6 +330,17 @@ Options of `meta.generate_page` (all optional; column names must be columns of t
|
|
|
327
330
|
| `facets` | `columns` (report columns, array), `facets` (array), `search` (boolean), `form_page` |
|
|
328
331
|
| `master_detail` | `detail` (a table), `detail_column` (its column referring to this table) |
|
|
329
332
|
| `report_form` | `form_page` (required) |
|
|
333
|
+
| `report` | `form_page` (137: an interactive report alone) |
|
|
334
|
+
| `smart_filters` | `facets` (array), `form_page` |
|
|
335
|
+
| `tree` | `id_column`, `parent_column` (proposed: a foreign key to the table itself), `label_column`, `expanded` (levels open), `form_page` |
|
|
336
|
+
| `timeline` | `title`, `when`, `who`, `body`, `form_page` |
|
|
337
|
+
| `media_list`, `content_row` | `title`, `description`, `badge` (also its colour), `misc` (content row), `form_page` |
|
|
338
|
+
| `comments` | `user`, `date`, `comment` |
|
|
339
|
+
| `data_load` | `definition` (a data load definition's name: made for the table unless it exists), `mode` (`append`, `merge`, `replace`), `skip_errors` |
|
|
340
|
+
| `wizard` | `columns` (array; NOT NULL columns without a default always), `steps` (1–10), `return_page` |
|
|
341
|
+
| `search` | `configs` (search configurations by name); with a table: a new configuration on it, and `form_page` |
|
|
342
|
+
| `tasks` | `context` (`my`, `initiated`, `admin`), `completed` (boolean) |
|
|
343
|
+
| `workflows` | `context` (`initiator`, `admin`) |
|
|
330
344
|
|
|
331
345
|
```sql
|
|
332
346
|
select meta.generate_page('shop', 'calendar', 'shop.meeting', 12, '{"form_page": 13, "drag": true}');
|
|
@@ -190,6 +190,11 @@ src/
|
|
|
190
190
|
debug.ts debug messages: DebugLog (levels, timed steps, NOTICEs of meta.debug from appTx), started in
|
|
191
191
|
loadContext, stored after the response (onResponse hook → meta.debug_save), hourly purge
|
|
192
192
|
icons.ts icon helper (sprite in public/icons.svg)
|
|
193
|
+
history.ts (sprint 138, AP-5) change history and checksums: meta.app_snapshot (the export after the last recorded
|
|
194
|
+
change), recordHistory() (export again, workingcopy.ts components() of both, each added/changed/deleted
|
|
195
|
+
component with its files before and after into meta.component_change; called by app-updates.ts onSend,
|
|
196
|
+
the upgrade page and cli/replace.ts replaceApp), ensureSnapshot() (before a first change), diffDocs(),
|
|
197
|
+
appChecksum() / pageChecksums() (SHA-256 of the text layout without the alias), CHANGE_HISTORY_DAYS
|
|
193
198
|
runtime/
|
|
194
199
|
routes.ts HTTP handlers: show, submit, dynamic actions, cascading lists, login
|
|
195
200
|
signin.ts the sign-in form (built-in page and the login region of an application's own login page), safeNext, passwordResetAvailable
|
|
@@ -245,7 +250,7 @@ src/
|
|
|
245
250
|
tree.ts tree region
|
|
246
251
|
lists.ts lists: static entries or a query, visibility (authorization, conditions, page access), safe URLs; list regions, navigation menu and bar
|
|
247
252
|
template-components.ts template components: template language (allow-list, directives, escaping), plug-in files, report column templates
|
|
248
|
-
builtin-components.ts built-in template components (ut_avatar, ut_badge, ut_comments, ut_media_list, ut_metric_card, ut_timeline)
|
|
253
|
+
builtin-components.ts built-in template components (ut_avatar, ut_badge, ut_comments, ut_content_row, ut_media_list, ut_metric_card, ut_timeline)
|
|
249
254
|
template-region.ts template_component region
|
|
250
255
|
tasks.ts task list region and task actions (approvals); (094) the vacation rule panel and route;
|
|
251
256
|
(sprint 114) custom outcome buttons, the Fail event and recovery of a failing completion SQL
|
|
@@ -309,6 +314,10 @@ src/
|
|
|
309
314
|
language links (?lang=, a cookie), meta.developer.language
|
|
310
315
|
routes.ts sign-in, app home, settings, activity, developers, create (POST, via newapp.ts)/import (POST)
|
|
311
316
|
wizards.ts create page wizards: step 2 forms per page type (defaults from meta.wizard_defaults), POST → meta.generate_page
|
|
317
|
+
create-page.ts (137) Create page: the grid of page types with SVG previews (tabs Component / Feature / Copy), the table step,
|
|
318
|
+
Create page as copy (step per app and page, shared components mapped or copied → meta.copy_page)
|
|
319
|
+
features.ts (137) Add feature: review (what it adds) and install, once, of Access control, Activity reporting,
|
|
320
|
+
Configuration options, E-mail reporting, Feedback, About, Login page, Theme style selection, Push
|
|
312
321
|
(the generators are PL/pgSQL in migration 047: catalog, defaults, form/cards/calendar/chart/map/facets/master-detail)
|
|
313
322
|
home.ts App Builder home at /builder/apps and /builder (tiles, applications report/cards, Recent; /builder redirects
|
|
314
323
|
to the Workspace home when meta.workspace.builder_home = 'home'), Create, Import, Dashboard, Utilities;
|
|
@@ -412,6 +421,18 @@ src/
|
|
|
412
421
|
region-settings.ts page designer: settings forms for grid, chart (gauge, drill-down), cards, calendar (views, create, drag and drop), facets, smart filters, display selector, list
|
|
413
422
|
search.ts app search, "where used" (appEntries, search, whereUsed, usedInPanel)
|
|
414
423
|
advisor.ts Advisor: EXPLAIN every SQL fragment, reference checks, plpgsql_check
|
|
424
|
+
utilities.ts (sprint 138, AP-5) an application's Utilities tab: tiles, dashboard figures, recently updated pages,
|
|
425
|
+
application and page checksums; Change history (filters, diffHtml of a change); the icon browser
|
|
426
|
+
/builder/icons; historyHooks() (preHandler: ensureSnapshot before a builder POST of an application)
|
|
427
|
+
dependencies.ts (sprint 138) Utilities → Database object dependencies: appDependencies() (the Advisor's fragments, each
|
|
428
|
+
parsed as the app role into a BEGIN ATOMIC temp function, one statement by the extended protocol;
|
|
429
|
+
pg_depend → tables, views, sequences, functions; missing objects from the parser's errors; privileges
|
|
430
|
+
needed vs the role's), the page with Object Browser links
|
|
431
|
+
upgrade.ts (sprint 138) Utilities → Upgrade application: upgradeCandidates() (nav_appearance, date_picker,
|
|
432
|
+
popup_lov), preview diff, POST upgrade by key or rule (found again first), recorded in the history
|
|
433
|
+
ui-defaults.ts (sprint 138) UI defaults /builder/ui-defaults (meta.ui_default, migration 138): per column label, mask,
|
|
434
|
+
help, alignment, list of values; seed from comments; tables of the workspace's catalog only. The wizards
|
|
435
|
+
read them through meta.wizard_column_label and the meta.item trigger meta.ui_default_item
|
|
415
436
|
ddl-tools.ts SQL Workshop → DDL and Compare (src/ddl.ts); (sprint 106) the Apply and record form
|
|
416
437
|
changelog.ts (sprint 106) SQL Workshop → Change Log (/builder/sql/changes): change sets per schema, latest app export,
|
|
417
438
|
downloads (POST, mark exported_at), rename, delete; /sql/compare/apply (one transaction, recorded)
|