-
Notifications
You must be signed in to change notification settings - Fork 85
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(Templates): Support auto selecting template #6498
Changes from all commits
77c1506
7b181ff
2fa81c9
95c9d87
243c19b
3ac3211
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,6 +158,7 @@ export const reviewCreateTab = ( | |
errorMessage, | ||
isPrimaryButtonDisabled, | ||
previousTabId, | ||
isTemplateNameLocked, | ||
}: { | ||
errorMessage: string | undefined; | ||
isPrimaryButtonDisabled: boolean; | ||
|
@@ -214,6 +215,6 @@ export const reviewCreateTab = ( | |
} | ||
} | ||
}, | ||
secondaryButtonDisabled: isCreating, | ||
secondaryButtonDisabled: isCreating || (!previousTabId && isTemplateNameLocked), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we have this logic in all secondary buttons related to template locked? in reviewCreateTab previousTabId is always true right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. previousTabId shouldn't be present in case of consumption template with no connections/parameters |
||
}, | ||
}); |
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.
Why would we be loading all templates data when the ask from portal blade is to only open one single template? This is unnecessarily going to increase the panel load time.. that is why I was saying why do you want to lock the template
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.
They are looking for the least amount of code change for this purpose + the background of the template list view.....
I understand that we discussed about the concern of locking the template, but we had multiple meetings involving Divya where she agreed to the use case of this having to be the case..
@tonytang-microsoft-com would you have thoughts on this?
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.
Yes, this would be the least we could do to align with the current template experience. If we load only one template, then the UX will only have 1 template shown in the background, which looks different. I don't think this is a blocker and we could optimize the performance later if needed IMHO.