Skip to content

Veneer 0.4.0

Choose a tag to compare

@danlong005 danlong005 released this 12 Nov 19:13
· 3 commits to main since this release
f5bf790

Veneer 0.4.0 checks definitions and macros in CI, runs macros from other systems through a REST API, lets macros test an application, and pastes rows from a spreadsheet into a screen's entry fields.

What's new

Check definitions and macros in CI (#45)

  • veneer check (node packages/server/dist/check.js screens) finds definitions that no longer match their screen. That happens, for example, when a display file is recompiled and its screen ID changes. It also finds widget and button fields that are gone, and macro steps that no longer fit. Output is text, GitHub Actions annotations or JSON.
  • Record for checks in the designer's Page tab saves the current screen to check against. Input values are blanked.
  • The admin page has a Customizations card that shows when each definition last matched a screen.
  • See "Checking definitions in CI" in the README.

Run macros through a REST API (#41)

  • POST /api/run/<macro> with a client token and JSON values signs on as that client's IBM i service profile, runs the macro, and returns the screen it ends on: fields, lists (every page), messages and named output values.
  • Macros opt in with "api": true. Clients are listed in VENEER_API_CLIENTS, with allowed macros and a run limit. npm run api:token makes a token.
  • GET /api/run/openapi.json describes the calling client's macros.

Macros that test an application (#51)

  • A macro step can have expect checks, and a macro can name the screen it must end on and what that screen shows. A check reads a field, the text at a position, or the host's message.
  • Add checks from the Macros panel while recording or afterwards.
  • veneer test (node packages/server/dist/testMacros.js screens) runs each macro's test cases from screens/tests/<macro>.json against the host and writes a JUnit report for CI. 5250 only. See "Testing macros in CI" in the README.

Paste rows from a spreadsheet (#43)

  • Paste copied cells into a list's or form's entry fields. A preview shows what goes where and stops at a value a field won't take.
  • A screen's definition can let a paste carry on to the next pages ("paste": { "next": "Enter" }, or Pasting rows in the designer's Page tab). The last page is filled for you to check and send.
  • The demo has a new option 19, Order lines, to try it.

Docs

  • A new designer guide.
  • The README has an Install section that says which downloads are ready to run and which need building first. npm start and veneer.sh now say so when Veneer isn't built, rather than failing with "Cannot find module".

Fixes

  • In a list, an entry field that starts a column or two left of its heading no longer disappears from the modern view (#58).
  • The Dockerfile now copies every package it needs.

Downloads

File What it is
veneer-0.4.0.zip or veneer-0.4.0.tar.gz Ready to run on IBM i or Linux; needs only Node.js. The same files in either format. See deploy/README.md.
veneer-0.4.0-src.zip or veneer-0.4.0-src.tar.gz The source code, for building Veneer yourself (npm ci && npm run build).
*.sha256 Checksums for each archive.

Unpack the .zip with unzip, which keeps the links inside node_modules. The ready-made components are in examples/components/ of the release archive; copy the ones you want into your components folder.