-
Notifications
You must be signed in to change notification settings - Fork 789
feat : Group chaos infra in infrastructure selection modal #4779
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
Conversation
Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com>
Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com>
Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com>
Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com>
Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com>
Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com>
SahilKr24
left a comment
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
Show resolved
Hide resolved
.../KubernetesChaosInfrastructureReferenceField/KubernetesChaosInfrastructureReferenceField.tsx
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 <janhavialekar@gmail.com>
Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com>
| 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 { 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
| 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 <janhavialekar@gmail.com>
…os#4779) * Adding environment filter in Infrastructure selection modal Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * setting initialAllInfrastructureLength as 0 initially Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * making InitialAllInfrastructureLength consistent Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * Scroll env list and Pagination(infra) Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * added preSelectedEnvironmentID Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * Minor changes in code Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * Refactored code Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * Changing height of infralist section Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * Minor improvements Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> --------- Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> Co-authored-by: Sahil <sahil.kumar@harness.io> Co-authored-by: Saranya Jena <saranya.jena@harness.io> Signed-off-by: andoriyaprashant <prashantandoriya@gmail.com>
…os#4779) * Adding environment filter in Infrastructure selection modal Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * setting initialAllInfrastructureLength as 0 initially Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * making InitialAllInfrastructureLength consistent Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * Scroll env list and Pagination(infra) Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * added preSelectedEnvironmentID Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * Minor changes in code Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * Refactored code Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * Changing height of infralist section Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * Minor improvements Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> --------- Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> Co-authored-by: Sahil <sahil.kumar@harness.io> Co-authored-by: Saranya Jena <saranya.jena@harness.io> Signed-off-by: andoriyaprashant <prashantandoriya@gmail.com>
…os#4779) * Adding environment filter in Infrastructure selection modal Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * setting initialAllInfrastructureLength as 0 initially Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * making InitialAllInfrastructureLength consistent Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * Scroll env list and Pagination(infra) Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * added preSelectedEnvironmentID Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * Minor changes in code Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * Refactored code Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * Changing height of infralist section Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> * Minor improvements Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> --------- Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> Co-authored-by: Sahil <sahil.kumar@harness.io> Co-authored-by: Saranya Jena <saranya.jena@harness.io> Signed-off-by: sagnik3788 <116512372+sagnik3788@users.noreply.github.com>
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
xin the boxes that applyChecklist
Put an
xin 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: