-
Notifications
You must be signed in to change notification settings - Fork 82
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
feat: SDK7 templates #2998
feat: SDK7 templates #2998
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
fa6e879
to
f53dccc
Compare
f53dccc
to
b3c518f
Compare
Pull Request Test Coverage Report for Build 7280241224
💛 - Coveralls |
b3c518f
to
ec0c912
Compare
833316c
to
da7f52f
Compare
@@ -27,6 +27,7 @@ export default class CustomLayoutModal extends React.PureComponent<Props, State> | |||
handleBack = () => { | |||
const { step } = this.state | |||
switch (step) { | |||
// TODO: remove this after removing the SDK7_TEMPLATES feature flag |
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.
I left several of these comments through the codebase to remember that once we remove the SDK7_TEMPLATES
(because we won't want SDK6 templates anymore) then these are parts of the code that don't need to exist anymore (like the SDK version selection step)
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.
I've left two simple comments, but it looks good!
} | ||
} | ||
|
||
export const getIsCreateSceneOnlySDK7Enabled = (state: RootState) => { |
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.
Would you mind adding a simple test for these functions?
src/modules/project/selectors.ts
Outdated
@@ -22,7 +22,9 @@ export const getUserProjects = createSelector(getAddress, getData, (address, pro | |||
const project = projects[projectId] | |||
const isOwnedByUser = !!project.ethAddress && !!address && isEqual(project.ethAddress, address) | |||
if (isOwnedByUser || project.ethAddress === null) { | |||
record[projectId] = project | |||
if (!project.isTemplate) { |
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.
What do you think about joining the conditions?
(isOwnedByUser || project.ethAddress === null) && !project.isTemplate
This PR does the following:
@dcl/builder-templates
package instead of loading them from the Builder Server