-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove all traces of legacy custom layouts #15033
base: master
Are you sure you want to change the base?
Conversation
QA Wolf here! As you write new code it's important that your test coverage is keeping up. |
logoUrl | ||
) | ||
|
||
const getLayoutSettings = (screen, embedded, app, navigation, logoUrl) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only real addition in this PR. Logic for how the layout component is rendered has moved from the screen store into the Router here.
…into remove-custom-layouts
Description
This PR removes all legacy code dealing with custom layouts. We removed support for custom layouts in July 2022, so I think the time has definitely come to stop supporting them altogether. Current support (before this PR) was only for migrating away from them, but it's been impossible to edit custom layouts for over 2.5 years. I highly doubt there are apps running that are over 2.5 years old but using the latest version of Budibase.
The reason this cannot curently be merged is that all our templates (aside from the 3 new ones) were created using custom layouts. That means that using one of those old templates will create an app that is missing whatever navigation settings existed in the app, as any migration logic that understood the legacy structure has been removed. So until we do something with the multitude of old app templates, this cannot be merged.
I still feel like this is an important piece of work to do - simplify things and remove tonnes of deprecated code - so is worth keeping the PR around as motivation to think about how we want to handle legacy templates.