Skip to content

Commit e409abe

Browse files
fix(APP-559): Adjust UI for Advanced Gov Designer gating (#1071)
* feat: Gate governance designer advanced option with availability check and empty states * test: Add hook integration tests for advanced governance availability * chore: UI cleanup, gate logic, debug toggle * chore: include changeset * chore: update UI to design review spec * chore: include empty changeset * chore: adjust UI to notes * chore: include empty changeset * chore: restore radio cards
1 parent bb2198b commit e409abe

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

.changeset/little-needles-sniff.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

src/assets/locales/en.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,11 +918,9 @@
918918
},
919919
"type": {
920920
"ADVANCED": {
921-
"description": "Proposals advance across multiple stages.",
922921
"label": "Advanced"
923922
},
924923
"BASIC": {
925-
"description": "Proposals are decided on by a single body.",
926924
"label": "Basic"
927925
},
928926
"helpText": "This determines the amount of control and flexibility you need to design your governance process.",

src/modules/createDao/components/createProcessForm/createProcessFormGovernance/createProcessFormGovernance.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const CreateProcessFormGovernance: React.FC<
7070
};
7171

7272
return (
73-
<div className="flex w-full flex-col gap-10">
73+
<div className="flex w-full flex-col gap-4 md:gap-6">
7474
<RadioGroup
7575
className="w-full gap-4 md:flex-row [&>*]:min-w-0 [&>*]:flex-1"
7676
helpText={t(
@@ -81,18 +81,12 @@ export const CreateProcessFormGovernance: React.FC<
8181
{...governanceTypeField}
8282
>
8383
<RadioCard
84-
description={t(
85-
'app.createDao.createProcessForm.governance.type.BASIC.description',
86-
)}
8784
label={t(
8885
'app.createDao.createProcessForm.governance.type.BASIC.label',
8986
)}
9087
value={GovernanceType.BASIC}
9188
/>
9289
<RadioCard
93-
description={t(
94-
'app.createDao.createProcessForm.governance.type.ADVANCED.description',
95-
)}
9690
label={t(
9791
'app.createDao.createProcessForm.governance.type.ADVANCED.label',
9892
)}

src/modules/createDao/components/createProcessForm/createProcessFormGovernance/fields/governanceStagesField/governanceStagesField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ export const GovernanceStagesField: React.FC<IGovernanceStagesFieldProps> = (
6969
)}
7070
</p>
7171
</div>
72-
<div className="flex size-20 shrink-0 items-center justify-center rounded-full bg-neutral-50 md:size-28">
72+
<div className="flex size-24 shrink-0 items-center justify-center rounded-full bg-neutral-50">
7373
<IllustrationObject
74-
className="size-14 md:size-24"
74+
className="size-[5.25rem]"
7575
object="SECURITY"
7676
/>
7777
</div>

0 commit comments

Comments
 (0)