Migrate from Workspaces 21.11 to Workspaces 22.04
caution
Temenos Journey Manager (TJM) 21.11 introduced changes to the Workspaces REST API that are incompatible with earlier releases. Consequently, the Workspaces 19.11 application cannot be used with a TJM 21.11 or later instance, and you must upgrade your Workspaces application to an Open UX form.
The configuration of Workspaces 22.04 is largely the same as 21.11, with some changes outlined below.
Theme
The config to update the primary theme colour has now moved from the global
Space Configuration to the transact-config.json
file in the Application Configuration.
You will also need to add the theme
object to the src/index.jsx
file in the template, as shown here.
export default async function init() {
const { configPath, theme } = transactConfig.appDef;
// dynamically get config
const { default: configs } = await import(`./configs/${configPath}`);
// get fixtures only on development
if (process.env.NODE_ENV === 'development') {
const { default: fixtures } = await import(`./fixtures/${configPath}`);
const { default: makeServer } = await import(
'@journey-ui/workspaces/build/ws/Server'
);
// start server
makeServer({
fixtures
});
}
// start only the client if production
App(root, configs, messages, transactConfig.appDef, theme);
}
Please refer to Theme for more information.
Configuration
hideEmpty
The hideEmptyFields
property has been changed to hideEmpty
. Please refer to custom cards for more information.