-
Notifications
You must be signed in to change notification settings - Fork 98
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(pci-block-storage): add availability zone step for 3AZ region #14406
base: develop
Are you sure you want to change the base?
Conversation
6817ef1
to
c7dbadd
Compare
c7dbadd
to
52cdc63
Compare
507aa7c
to
f6fc982
Compare
90906a5
to
379fbf1
Compare
cf97ac5
to
209036b
Compare
ref: TAPC-2111 Signed-off-by: Simon Chaumet <[email protected]>
209036b
to
f9b1b8e
Compare
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.
Great work, I wrote down some minor remarks, it's up to you 😌
.reduce<number | null>( | ||
(leastPrice, modelLeastPrice) => | ||
leastPrice === null | ||
? modelLeastPrice | ||
: Math.min(modelLeastPrice, leastPrice), | ||
null, | ||
); |
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.
Looks like a duplicate of getLeastPrice
, maybe we could refactor a bit
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.
Not sure if this is really adapted to create a reduceMinPrice method
packages/manager/apps/pci-block-storage/src/pages/new/components/AvailabilityZoneStep.tsx
Outdated
Show resolved
Hide resolved
}: Readonly<AvailabilityZoneStepProps>) { | ||
const { t } = useTranslation('stepper'); | ||
|
||
const [selectedZone, setSelectedZone] = useState<string | undefined>( |
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.
If TilesInputComponent
component accepts null
as value
, prefer instantiate it with null
over undefined
const [selectedLocalisation, setSelectedLocalisation] = useState< | ||
TLocalisation | ||
>(undefined); |
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.
const [selectedLocalisation, setSelectedLocalisation] = useState< | |
TLocalisation | |
>(undefined); | |
const [selectedLocalisation, setSelectedLocalisation] = useState< | |
TLocalisation | null | |
>(null); |
import { TVolumeAddon, TVolumePricing } from '@/api/data/catalog'; | ||
import { TRegion } from '@/api/data/regions'; |
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.
As a global improvement (in a future refactoring), we should not make the form depending on DTO but rather than front-end entities to prevent the µapp to be coupled to API
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 will be removed when we remove the stepper and use the new region selector
f9b1b8e
to
08f6569
Compare
08f6569
to
348b94f
Compare
ref: TAPC-2112 Signed-off-by: Simon Chaumet <[email protected]>
348b94f
to
f262e05
Compare
Quality Gate passedIssues Measures |
develop
Description
Related