Skip to main content

Version: 22.04

Migrate from Workspaces 21.11 to Workspaces 22.04

The Journey Workspaces 22.04 configuration 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.