Skip to main content

Version: 22.04

Migrate from Workspaces 21.11 to Workspaces 22.04

The Journey Brokers 22.04 configuration is largely the same as 21.11, with some changes outlined below.

Custom Cards

The custom cards now appear as tabs, and each custom card tab can have one or more custom card within it. The configuration for this has changed slightly. Please refer to Custom Cards for more information.

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.