Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build, test and publish the site to GitHub Pages at
# https://abap2ui5.github.io/insights/.
# https://abap2ui5.github.io/docs-insights/.
#
# On a pull request it builds and tests only. On main it also deploys.
#
Expand Down
17 changes: 10 additions & 7 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

abap2UI5 Insights: short technical essays about one idea - what happens when
the ABAP server sends the *screen* instead of only the data - published at
https://abap2ui5.github.io/insights/ by GitHub Pages. Written for developers
https://abap2ui5.github.io/docs-insights/ by GitHub Pages. Written for developers
and architects: the "why it works like this". A standalone site of the
abap2UI5 family - its own repository, build and deployment - and nothing in it
depends on another repository at build time.

The essays lived in the manual (abap2UI5/docs, `docs/advanced/insights/`)
until 2026-10-31. Since then this repository is their source; the manual
keeps a redirect stub for every old address and one sidebar row leading here.
Until 2026-11-17 the repository was abap2UI5/insights and the site was at
`/insights/`; the base path is now `/docs-insights/` (`astro.config.mjs`),
and every local link, the font URLs and the tests use it.

## Layout

Expand All @@ -33,7 +36,7 @@ keeps a redirect stub for every old address and one sidebar row leading here.

```bash
npm ci
npm run dev # dev server, http://localhost:4321/insights/
npm run dev # dev server, http://localhost:4321/docs-insights/
npm run build # dist/
npm test # the tests, against dist/ - build first
npm run check # build + test, what CI runs
Expand All @@ -42,7 +45,7 @@ npm run report:sentences # sentences over 35 words; a report, not a test

## Rules

- **A slug is an address.** `NN-slug.md` is published at `/insights/NN-slug/`,
- **A slug is an address.** `NN-slug.md` is published at `/docs-insights/NN-slug/`,
and abap2UI5/docs redirects every old address
(`/docs/advanced/insights/NN-slug`) to exactly that. `ADDRESSES` in
`test/site.test.mjs` lists them; a build that loses one fails. Rename an essay
Expand All @@ -53,19 +56,19 @@ npm run report:sentences # sentences over 35 words; a report, not a test
carries the same number (a test holds both). The index, previous/next and
the feed follow it. A new essay therefore shifts the essays after it - which
changes their slugs, so do it as one change across the family: rename the
files, rewrite the links (`[#N](/insights/NN-slug/)`, link text and target
files, rewrite the links (`[#N](/docs-insights/NN-slug/)`, link text and target
together), add every old slug to `src/lib/moved.ts`, update `ADDRESSES`, and repoint the docs' stubs in `docs/public/advanced/insights/` and
any link in the sister repositories. Renumbering is expensive on purpose:
add essays in batches, not one at a time.
- **A part is data.** Its id is in the frontmatter, its title and lead in
`src/lib/parts.ts`. A new part is one entry there plus the id in `PART_IDS`.
- **The case for using it is not made here.** Cost, who runs it, what an
organization keeps, the decision - that is https://abap2ui5.github.io/why/. An essay links it, it does not repeat it.
- **Links.** A sister essay: `/insights/NN-slug/`. The manual and every other
organization keeps, the decision - that is https://abap2ui5.github.io/docs-manager/. An essay links it, it does not repeat it.
- **Links.** A sister essay: `/docs-insights/NN-slug/`. The manual and every other
site of the family: absolute (`https://abap2ui5.github.io/docs/...`). No
VitePress syntax - `{target="_self"}` and `:::` containers render as text
here; a test holds the first. A diagram goes to `public/` and is referenced
as `/insights/name.svg`.
as `/docs-insights/name.svg`.
- **A diagram has a dark variant.** The SVGs share one light palette, and each
carries a `<style data-dark="">` block that remaps it to the site's dark
tokens under `prefers-color-scheme: dark` - a `<style>` inside an SVG loaded
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ works under the app, what a working day with it looks like, where it belongs
in the landscape and what running it takes. Why you would use it is covered on
the page for decision makers (linked below).

**→ https://abap2ui5.github.io/insights/**
**→ https://abap2ui5.github.io/docs-insights/**

One of the abap2UI5 family of sites, next to the
[documentation](https://abap2ui5.github.io/docs/), the
[playground](https://abap2ui5.github.io/playground/) and the
[page for decision makers](https://abap2ui5.github.io/why/): its own
[playground](https://abap2ui5.github.io/browser-playground/) and the
[page for decision makers](https://abap2ui5.github.io/docs-manager/): its own
repository, build and deployment, nothing shared but the convention
(`CONVENTION.md` in abap2UI5/abap2UI5.github.io). Built with
[Astro](https://astro.build) into static pages without a script.
Expand All @@ -20,7 +20,7 @@ repository, build and deployment, nothing shared but the convention

```bash
npm ci
npm run dev # http://localhost:4321/insights/
npm run dev # http://localhost:4321/docs-insights/
npm run check # build + tests, what CI runs
```

Expand Down Expand Up @@ -51,9 +51,9 @@ blurb: "one line, lower case, no period - the line in the index"
description: "optional: the meta description, a sentence"
---

The text. Links to a sister essay are `/insights/06-ui5-over-the-wire/`,
The text. Links to a sister essay are `/docs-insights/06-ui5-over-the-wire/`,
links to the manual are absolute (`https://abap2ui5.github.io/docs/...`),
a diagram goes to `public/` and is referenced as `/insights/43-name.svg`.
a diagram goes to `public/` and is referenced as `/docs-insights/43-name.svg`.
```

The number is the essay's place in reading order: the index, the feed, the
Expand Down
4 changes: 2 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// abap2UI5 Insights - the essays as a site of their own, published by
// GitHub Pages at https://abap2ui5.github.io/insights/
// GitHub Pages at https://abap2ui5.github.io/docs-insights/
// (.github/workflows/pages.yml). One of the abap2UI5 family of sites: its own
// repository, its own build, nothing shared but the convention
// (CONVENTION.md in abap2UI5/abap2UI5.github.io).
Expand All @@ -13,7 +13,7 @@ import { defineConfig } from "astro/config";

export default defineConfig({
site: "https://abap2ui5.github.io",
base: "/insights/",
base: "/docs-insights/",
trailingSlash: "ignore",
build: {
format: "directory",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "abap2ui5-insights",
"version": "1.0.0",
"private": true,
"description": "abap2UI5 Insights - essays on one idea, https://abap2ui5.github.io/insights/",
"description": "abap2UI5 Insights - essays on one idea, https://abap2ui5.github.io/docs-insights/",
"license": "MIT",
"type": "module",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion public/fonts/NOTICE-italic.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ for.

---

The same two files and the same notice are in abap2UI5/playground under
The same two files and the same notice are in abap2UI5/browser-playground under
src/fonts/. This copy is .txt rather than .md because every .md under
docs/public is generated (see .gitignore) - the raw-markdown mirror of the
pages, not a file anybody wrote.
10 changes: 5 additions & 5 deletions src/content/essays/01-the-cost-of-a-screen.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,19 @@ as on a desktop.
The view is written with four methods, and they are all there is: `ele` opens
a UI5 control and moves into it, `tag` adds a control without moving into it,
`a` sets a property on the control just added, and `end` moves back up one
level — [#14](/insights/14-four-verbs-every-control/). `{JOB}` is a UI5 binding
level — [#14](/docs-insights/14-four-verbs-every-control/). `{JOB}` is a UI5 binding
path: the column `JOB` of the table the control is bound to.

Three things in the class carry the whole mechanism, and the rest of the
series takes them apart one at a time. `z2ui5_if_app` is the one interface
the framework asks for, with one method — [#3](/insights/03-one-class-no-programming-model/).
the framework asks for, with one method — [#3](/docs-insights/03-one-class-no-programming-model/).
`check_on_init( )` is true once, on the first call: the data is read and the
view is built. `check_on_navigated( )` is true when the user comes back from
another app, and the view is shown again —
[#7](/insights/07-one-click-one-request/). `_bind( runs )` hands the
[#7](/docs-insights/07-one-click-one-request/). `_bind( runs )` hands the
attribute to the view by reference; what the table shows is the internal
table, and what comes back from the browser lands in the same attribute —
[#13](/insights/13-where-the-selection-screen-went/).
[#13](/docs-insights/13-where-the-selection-screen-went/).

Replace `model_init( )` with the `SELECT` that reads your job log and the
class is finished. Nothing is published beside it: no service, no annotation,
Expand All @@ -134,7 +134,7 @@ like any other, and deleting it deletes the application.
That is the technical side of the cost. A small requirement often cannot pay
for a long list of artifacts, and then the screen is never built. What that
means for an organization is on
[What it costs](https://abap2ui5.github.io/why/#what-it-costs).
[What it costs](https://abap2ui5.github.io/docs-manager/#what-it-costs).

**In short:** an abap2UI5 app is one class with one interface, and nothing has
to exist beside it.
2 changes: 1 addition & 1 deletion src/content/essays/02-somewhere-on-the-way-to-ui5.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The model is assembled at runtime instead, and in ABAP that has always been
RTTS. Nearly every ABAP developer uses it without necessarily knowing the
acronym. Its reading half is RTTI, Run Time Type Information:

![Design time: the entity type is declared before any data exists. Runtime: RTTS reads the shape from the data that is there.](/insights/02-runtime-model.svg)
![Design time: the entity type is declared before any data exists. Runtime: RTTS reads the shape from the data that is there.](/docs-insights/02-runtime-model.svg)

*Design time: the entity type is declared before any data exists. Runtime: RTTS reads the shape from the data that is there.*

Expand Down
6 changes: 3 additions & 3 deletions src/content/essays/03-one-class-no-programming-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ That is it. abap2UI5 calls `main( )` on every roundtrip — one click, one
request, one call — and your class decides what to display and how to react.
The view is built when `check_on_navigated( )` is true, which includes the
first call. An event changes attributes and returns. The full form with three
branches is [#7](/insights/07-one-click-one-request/).
branches is [#7](/docs-insights/07-one-click-one-request/).
Activate the class, append `?app_start=zcl_my_app` to the URL of the abap2UI5
service, and the app is on screen. It takes about as much ceremony as pressing
F8.
Expand Down Expand Up @@ -199,9 +199,9 @@ one that waits for a modeling exercise.

Where a strict programming model fits, use it — picking one deliberately is
good engineering. abap2UI5 asks for nothing beyond the signature of `main( )`, so it fits the rest. That is the system not on the newest release, the logic that does not match the shape a model has in mind, and the screen from
[#1](/insights/01-the-cost-of-a-screen/) whose whole
[#1](/docs-insights/01-the-cost-of-a-screen/) whose whole
backend is one class. Where it sits next to RAP is
[#36](/insights/36-rap-or-abap2ui5/).
[#36](/docs-insights/36-rap-or-abap2ui5/).

**In short:** an abap2UI5 app implements one interface with one method, and
inside that method any ABAP works: EML, a `MODIFY`, a BAPI.
4 changes: 2 additions & 2 deletions src/content/essays/04-no-annotation-in-between.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ at the UI5 version the
[bootstrap](https://abap2ui5.github.io/docs/configuration/setup/ui5_bootstrapping)
names. That version is a configuration decision of the installation, not a
property of the SAP release
([#31](/insights/31-one-codebase-702-to-abap-cloud/)).
([#31](/docs-insights/31-one-codebase-702-to-abap-cloud/)).

Which is why a control nobody generates is not a special case. Take a
three-step wizard, a control that is right there in `sap.m` and almost never
Expand Down Expand Up @@ -127,7 +127,7 @@ through.

There is a price, and it is not small: nothing writes the layout for you. A
list report that a few annotations would have described is here a table built
control by control. [#36](/insights/36-rap-or-abap2ui5/) (later in the series)
control by control. [#36](/docs-insights/36-rap-or-abap2ui5/) (later in the series)
is about when the generated list report is the better choice.

**In short:** an abap2UI5 view is plain UI5 XML, so every UI5 control is
Expand Down
2 changes: 1 addition & 1 deletion src/content/essays/05-a-classrun-for-the-browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ gets changed confidently.

That holds for the small screens this series keeps coming back to. A larger app
splits into several classes like any other ABAP program does, and how is
[its own article](/insights/28-when-one-class-is-not-enough/). The
[its own article](/docs-insights/28-when-one-class-is-not-enough/). The
point is where it starts.

**In short:** the smallest abap2UI5 app is one class that implements
Expand Down
2 changes: 1 addition & 1 deletion src/content/essays/06-ui5-over-the-wire.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ and the model that fills it:
{ "MODEL": { "NAME": "test" } }
```

![The browser sends an event, the backend answers with a view and its model, the browser renders both.](/insights/06-two-strings.svg)
![The browser sends an event, the backend answers with a view and its model, the browser renders both.](/docs-insights/06-two-strings.svg)

*The browser sends an event, the backend answers with a view and its model, the browser renders both.*

Expand Down
10 changes: 5 additions & 5 deletions src/content/essays/07-one-click-one-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ released, and the next click starts the same way. One such trip, from the
click to the new screen, is a **roundtrip**. Nothing runs between two clicks:
no timer, no controller, no promise waiting for something.

![One roundtrip: the draft is read, the changes are applied, main( ) runs, the response is built and the draft is written under a new id.](/insights/07-roundtrip.svg)
![One roundtrip: the draft is read, the changes are applied, main( ) runs, the response is built and the draft is written under a new id.](/docs-insights/07-roundtrip.svg)

*One roundtrip, start to end — the five steps every other article in this series zooms into.*

The *draft* in the picture is the saved copy of the app instance, not a RAP
draft; [#11](/insights/11-a-new-instance-on-every-request/) explains it.
draft; [#11](/docs-insights/11-a-new-instance-on-every-request/) explains it.

So `main( )` is a dispatcher, and it dispatches on three questions the client
can answer:
Expand All @@ -45,7 +45,7 @@ can answer:
ENDMETHOD.
```

![Three questions, in this order, and what each branch sends to the browser.](/insights/07-dispatch.svg)
![Three questions, in this order, and what each branch sends to the browser.](/docs-insights/07-dispatch.svg)

*Three questions, in this order, and what each branch sends to the browser.*

Expand Down Expand Up @@ -76,13 +76,13 @@ view, and a response without a view is valid.
The event handler changes attributes and returns. Bound controls update from
the model, and focus and scroll position stay where they were. The app calls
its `view_display( )` again only when the structure of the screen changes.
[#10](/insights/10-only-the-changed-part/) is about exactly that.
[#10](/docs-insights/10-only-the-changed-part/) is about exactly that.

## What Survives a Roundtrip

Only the instance itself survives from one call to the next. It is serialized
after every request —
[#11](/insights/11-a-new-instance-on-every-request/). Local variables, an open
[#11](/docs-insights/11-a-new-instance-on-every-request/). Local variables, an open
cursor and a lock end with the work process, every time.

**In short:** one click is one request and one call of `main( )`, which asks
Expand Down
4 changes: 2 additions & 2 deletions src/content/essays/08-the-frontend-knows-nothing.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ know which action follows the next click. The network tab of the browser shows
each answer arriving.

Everything it needs arrives per request — the two strings of
[#6](/insights/06-ui5-over-the-wire/). Everything it decides is decided
[#6](/docs-insights/06-ui5-over-the-wire/). Everything it decides is decided
on the server.

The pattern has a name: a **Hypermedia-Driven Application** (HDA). It sits
Expand All @@ -28,7 +28,7 @@ between two better-known kinds of web app:
- An **HDA** renders what the server sends and knows nothing else. htmx,
Hotwire and LiveView work this way.

![Three ways to answer a click — multi-page, single-page, hypermedia-driven — and whether a change needs a frontend redeploy.](/insights/08-mpa-spa-hda.svg)
![Three ways to answer a click — multi-page, single-page, hypermedia-driven — and whether a change needs a frontend redeploy.](/docs-insights/08-mpa-spa-hda.svg)

*Three ways to answer a click — multi-page, single-page, hypermedia-driven — and whether a change needs a frontend redeploy.*

Expand Down
6 changes: 3 additions & 3 deletions src/content/essays/09-one-handler-for-every-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ projection — each belonging to exactly one application.
An abap2UI5 app has none of them, and no SEGW project either. Every app in the
system is served by the same generic HTTP handler. Generic means: it does not
know the app, the view or the model. It moves two strings, the view and the
model of [#6](/insights/06-ui5-over-the-wire/).
model of [#6](/docs-insights/06-ui5-over-the-wire/).

![A service per screen, against one handler that knows none of them.](/insights/09-one-service.svg)
![A service per screen, against one handler that knows none of them.](/docs-insights/09-one-service.svg)

*A service per screen, against one handler that knows none of them.*

Expand Down Expand Up @@ -44,7 +44,7 @@ because the protocol is a POST with two strings.
The system footprint is the source in the repository: no CDS artifacts, no
RAP objects, no generated code, no build step. What that means for a review
of the dependency is on
[What you keep](https://abap2ui5.github.io/why/#what-you-keep).
[What you keep](https://abap2ui5.github.io/docs-manager/#what-you-keep).

This removes artifacts, not effort: the app still decides everything. A screen
is no longer a set of objects to create, name, transport and govern. It is a
Expand Down
4 changes: 2 additions & 2 deletions src/content/essays/10-only-the-changed-part.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: "Why the view is not sent on every click - an event changes the mod
---

If the backend sends the view on every request —
[#6](/insights/06-ui5-over-the-wire/) — does the screen rebuild itself
[#6](/docs-insights/06-ui5-over-the-wire/) — does the screen rebuild itself
on every click?

It would, and the user would notice at once. A rebuilt view is a new set of
Expand Down Expand Up @@ -38,7 +38,7 @@ model alone. The browser keeps the view it already shows, and UI5 handles the
changed model as it always does: data binding updates the controls bound to
what changed, and touches nothing else.

![What a response carries decides what survives on the screen.](/insights/10-partial-update.svg)
![What a response carries decides what survives on the screen.](/docs-insights/10-partial-update.svg)

*What a response carries decides what survives on the screen.*

Expand Down
2 changes: 1 addition & 1 deletion src/content/essays/11-a-new-instance-on-every-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ holds no business data model, only the serialized app object. The browser gets
a draft id, and sends the draft id back. The state itself never leaves the
server.

![Every request is a new instance; z2ui5_t_01 is what carries the last one forward.](/insights/11-draft.svg)
![Every request is a new instance; z2ui5_t_01 is what carries the last one forward.](/docs-insights/11-draft.svg)

*Every request is a new instance; z2ui5_t_01 is what carries the last one forward.*

Expand Down
4 changes: 2 additions & 2 deletions src/content/essays/12-swapping-the-view-at-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Nothing does, and that is intended.
ENDMETHOD.
```

![Same data, same class — the control is chosen in an IF.](/insights/12-view-swap.svg)
![Same data, same class — the control is chosen in an IF.](/docs-insights/12-view-swap.svg)

*Same data, same class — the control is chosen in an IF.*

Expand All @@ -67,7 +67,7 @@ code branches, which is everywhere. Role-dependent layouts, a field that only
exists for one plant, a table that turns into a chart when the data is small
enough — none of these need a mechanism, because they are just code.

[#2](/insights/02-somewhere-on-the-way-to-ui5/) showed the same freedom for
[#2](/docs-insights/02-somewhere-on-the-way-to-ui5/) showed the same freedom for
the model: a structure described at runtime, not declared up front. Here it
applies to the view. Together they mean that both the data and the screen are
decided while the request runs, so what a screen can adapt to is no longer
Expand Down
Loading
Loading