-
Notifications
You must be signed in to change notification settings - Fork 694
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 : Group chaos infra in infrastructure selection modal #4779
feat : Group chaos infra in infrastructure selection modal #4779
Conversation
Signed-off-by: JanhaviAlekar <[email protected]>
Signed-off-by: JanhaviAlekar <[email protected]>
Signed-off-by: JanhaviAlekar <[email protected]>
Signed-off-by: JanhaviAlekar <[email protected]>
Signed-off-by: JanhaviAlekar <[email protected]>
Signed-off-by: JanhaviAlekar <[email protected]>
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.
Good first attempt, but need a bit more of work
.../KubernetesChaosInfrastructureReferenceField/KubernetesChaosInfrastructureReferenceField.tsx
Outdated
Show resolved
Hide resolved
.../KubernetesChaosInfrastructureReferenceField/KubernetesChaosInfrastructureReferenceField.tsx
Show resolved
Hide resolved
.../KubernetesChaosInfrastructureReferenceField/KubernetesChaosInfrastructureReferenceField.tsx
Outdated
Show resolved
Hide resolved
.../KubernetesChaosInfrastructureReferenceField/KubernetesChaosInfrastructureReferenceField.tsx
Outdated
Show resolved
Hide resolved
.../KubernetesChaosInfrastructureReferenceField/KubernetesChaosInfrastructureReferenceField.tsx
Outdated
Show resolved
Hide resolved
...center/web/src/views/ChaosInfrastructureReferenceField/ChaosInfrastructureReferenceField.tsx
Outdated
Show resolved
Hide resolved
...center/web/src/views/ChaosInfrastructureReferenceField/ChaosInfrastructureReferenceField.tsx
Outdated
Show resolved
Hide resolved
...center/web/src/views/ChaosInfrastructureReferenceField/ChaosInfrastructureReferenceField.tsx
Outdated
Show resolved
Hide resolved
...center/web/src/views/ChaosInfrastructureReferenceField/ChaosInfrastructureReferenceField.tsx
Outdated
Show resolved
Hide resolved
...center/web/src/views/ChaosInfrastructureReferenceField/ChaosInfrastructureReferenceField.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: JanhaviAlekar <[email protected]>
Signed-off-by: JanhaviAlekar <[email protected]>
gotoPage={setPage} | ||
showPagination={true} | ||
pageSizeOptions={[5, 10, 15]} | ||
onPageSizeChange={event => setLimit(parseInt(event.toString()))} |
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.
onPageSizeChange={setLimit}
const { showError } = useToaster(); | ||
const { getString } = useStrings(); | ||
|
||
const listingEnvironment = ({ env }: { env: Environment }): JSX.Element => { | ||
const EnvListItem = ({ EnvDetail }: { EnvDetail: EnvironmentDetail }): JSX.Element => { |
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.
EnvDetail in camelCase
@@ -183,7 +209,7 @@ function ChaosInfrastructureReferenceFieldView({ | |||
withoutCurrentColor={true} | |||
rightIcon="chevron-down" | |||
iconProps={{ size: 14 }} | |||
onClick={() => setOpen(true)} | |||
onClick={() => open()} |
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.
onClick={open}
placeholder={getString('search')} | ||
onChange={e => setSearchInfrastructure(e)} | ||
/> | ||
{isOpen && ( |
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.
might not me required, please check and remove
history.push(paths.toEnvironments()); | ||
}} | ||
/> | ||
<EnvListItem EnvDetail={{ envName: 'all', envID: 'all', totalInfra: allInfrastructureLength }} /> |
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.
strings
Signed-off-by: JanhaviAlekar <[email protected]>
…os#4779) * Adding environment filter in Infrastructure selection modal Signed-off-by: JanhaviAlekar <[email protected]> * setting initialAllInfrastructureLength as 0 initially Signed-off-by: JanhaviAlekar <[email protected]> * making InitialAllInfrastructureLength consistent Signed-off-by: JanhaviAlekar <[email protected]> * Scroll env list and Pagination(infra) Signed-off-by: JanhaviAlekar <[email protected]> * added preSelectedEnvironmentID Signed-off-by: JanhaviAlekar <[email protected]> * Minor changes in code Signed-off-by: JanhaviAlekar <[email protected]> * Refactored code Signed-off-by: JanhaviAlekar <[email protected]> * Changing height of infralist section Signed-off-by: JanhaviAlekar <[email protected]> * Minor improvements Signed-off-by: JanhaviAlekar <[email protected]> --------- Signed-off-by: JanhaviAlekar <[email protected]> Co-authored-by: Sahil <[email protected]> Co-authored-by: Saranya Jena <[email protected]> Signed-off-by: andoriyaprashant <[email protected]>
…os#4779) * Adding environment filter in Infrastructure selection modal Signed-off-by: JanhaviAlekar <[email protected]> * setting initialAllInfrastructureLength as 0 initially Signed-off-by: JanhaviAlekar <[email protected]> * making InitialAllInfrastructureLength consistent Signed-off-by: JanhaviAlekar <[email protected]> * Scroll env list and Pagination(infra) Signed-off-by: JanhaviAlekar <[email protected]> * added preSelectedEnvironmentID Signed-off-by: JanhaviAlekar <[email protected]> * Minor changes in code Signed-off-by: JanhaviAlekar <[email protected]> * Refactored code Signed-off-by: JanhaviAlekar <[email protected]> * Changing height of infralist section Signed-off-by: JanhaviAlekar <[email protected]> * Minor improvements Signed-off-by: JanhaviAlekar <[email protected]> --------- Signed-off-by: JanhaviAlekar <[email protected]> Co-authored-by: Sahil <[email protected]> Co-authored-by: Saranya Jena <[email protected]> Signed-off-by: andoriyaprashant <[email protected]>
…os#4779) * Adding environment filter in Infrastructure selection modal Signed-off-by: JanhaviAlekar <[email protected]> * setting initialAllInfrastructureLength as 0 initially Signed-off-by: JanhaviAlekar <[email protected]> * making InitialAllInfrastructureLength consistent Signed-off-by: JanhaviAlekar <[email protected]> * Scroll env list and Pagination(infra) Signed-off-by: JanhaviAlekar <[email protected]> * added preSelectedEnvironmentID Signed-off-by: JanhaviAlekar <[email protected]> * Minor changes in code Signed-off-by: JanhaviAlekar <[email protected]> * Refactored code Signed-off-by: JanhaviAlekar <[email protected]> * Changing height of infralist section Signed-off-by: JanhaviAlekar <[email protected]> * Minor improvements Signed-off-by: JanhaviAlekar <[email protected]> --------- Signed-off-by: JanhaviAlekar <[email protected]> Co-authored-by: Sahil <[email protected]> Co-authored-by: Saranya Jena <[email protected]> Signed-off-by: sagnik3788 <[email protected]>
Proposed changes
Screencast.from.05-08-24.06.22.12.PM.IST.webm
Types of changes
What types of changes does your code introduce to Litmus? Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Dependency
Special notes for your reviewer: