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

Convert screen store #15408

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Convert screen store #15408

wants to merge 15 commits into from

Conversation

adrinr
Copy link
Collaborator

@adrinr adrinr commented Jan 20, 2025

Description

Converting screen store to ts as a ground work for the screen component setting validations. This required the history store and utils to be typed as well.

Copy link

linear bot commented Jan 20, 2025

Copy link

qa-wolf bot commented Jan 20, 2025

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!

@adrinr adrinr changed the title Budi 8986/convert screen store Convert screen store Jan 21, 2025
@adrinr adrinr requested a review from aptkingston January 21, 2025 08:54
@@ -138,13 +148,6 @@ export class ScreenStore extends BudiStore {
}

const definition = componentStore.getDefinition(component._component)
// Reset whitelist for direct children
legalDirectChildren = []
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot see this being referenced anywhere. I assume is safe to remove. Could you confirm, @aptkingston ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we added this for a certain component but then either removed that component or removed the restriction. It's technically a valid key to add to a component manifest, and I can't guarantee that plugin authors aren't using it, but you're right that we don't currently use it for any of our own components.
I reckon it's fine to delete it.

@adrinr adrinr requested a review from mike12345567 January 21, 2025 08:55
@adrinr adrinr marked this pull request as ready for review January 21, 2025 08:55
@aptkingston
Copy link
Member

Dean already has a PR up for the screen store, so I'll let you 2 work out what's the best way to go haha. #15313

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants