Skip to content
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

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

aptkingston
Copy link
Member

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.

Copy link

qa-wolf bot commented Nov 19, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@aptkingston aptkingston added the do not merge PR is not ready to be merged - generally the PR description should say why label Nov 19, 2024
logoUrl
)

const getLayoutSettings = (screen, embedded, app, navigation, logoUrl) => {
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge PR is not ready to be merged - generally the PR description should say why size/l
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant