Add custom intervention modals

This commit is contained in:
adilallo
2026-05-01 22:05:05 -06:00
parent 58d0e33500
commit dee2dd800e
67 changed files with 3480 additions and 197 deletions
@@ -4,9 +4,10 @@
"compactTitle": "How should this community communicate with each-other?",
"compactDescriptionBefore": "You can select multiple methods for different needs or ",
"compactDescriptionLinkLabel": "add",
"compactDescriptionAfter": " your own",
"compactDescriptionAfter": " your own.",
"expandedTitle": "What method should this community use to communicate with eachother?",
"expandedDescription": "You can select multiple methods for different needs or add your own",
"expandedDescriptionBefore": "You can select multiple methods for different needs or ",
"expandedDescriptionAfter": " your own",
"seeAllLink": "See all communication approaches"
},
"confirmModal": {
@@ -17,6 +18,9 @@
"addPlatform": {
"nextButtonText": "Add Platform"
},
"removePlatform": {
"nextButtonText": "Remove"
},
"sectionHeadings": {
"corePrinciple": "Core Principle & Scope",
"logisticsAdmin": "Logistics, Admin & Norms",
@@ -6,7 +6,8 @@
"compactDescriptionLinkLabel": "add",
"compactDescriptionAfter": " new approaches to the list",
"expandedTitle": "How should conflicts be managed in your group?",
"expandedDescription": "You can also combine or add new approaches to the list",
"expandedDescriptionBefore": "You can also combine or ",
"expandedDescriptionAfter": " new approaches to the list",
"seeAllLink": "See all conflict management approaches"
},
"confirmModal": {
@@ -17,6 +18,9 @@
"addApproach": {
"nextButtonText": "Add Approach"
},
"removeApproach": {
"nextButtonText": "Remove"
},
"sectionHeadings": {
"corePrinciple": "Core Principle",
"applicableScope": "Applicable Scope",
@@ -0,0 +1,79 @@
{
"_comment": "Shared 3-step add-custom-method-card wizard (Create modal) for communication, membership, decision approaches, conflict management.",
"cardStack": {
"addCardLabel": "Add"
},
"steps": {
"1": {
"title": "What do you call your group's new policy?",
"description": "This will be the title of the policy",
"fieldPlaceholder": "Policy name"
},
"2": {
"title": "How do you want to describe your new policy?",
"description": "This description will show up with the title to offer additional context about what the policy is how it should be applied.",
"fieldPlaceholder": "Policy description"
},
"3": {
"title": "Custom policy details",
"description": "Configure a custom data structure for this policy by adding fields for text, proportions, multi-select options, or file uploads. This creates a reusable template with placeholders that allows your group to standardize how policy definitions are edited in the future."
}
},
"footer": {
"finalize": "Finalize policy"
},
"editModal": {
"placeholderBody": "This policy uses the title and description you set when you created it. Extra section fields from preset templates are hidden here so you are not shown empty boxes that do not match what you configured.",
"readout": {
"emptyValue": "—",
"noFileChosen": "No file chosen yet"
},
"clearFileLabel": "Clear file"
},
"addCustomField": {
"cta": "Add",
"fieldTypes": {
"text": "Text",
"badges": "Badges",
"upload": "Upload",
"proportion": "Proportion"
}
},
"fieldModals": {
"addField": "Add field",
"requiredHint": "Required",
"text": {
"title": "Add text block",
"description": "Text blocks let people write out policies and guidelines in detail. You can choose a title for the block and prefill it with placeholder text that members of your group can change or adjust as needed.",
"blockTitleLabel": "Text Block Title",
"blockTitlePlaceholder": "Add your text block title",
"placeholderLabel": "Text Block Placeholder",
"placeholderFieldPlaceholder": "Add optional prefilled text"
},
"badges": {
"title": "Add badge block",
"description": "Badge blocks let people choose between a list of prefilled items and add their own",
"blockTitleLabel": "Badge Block Title",
"blockTitlePlaceholder": "Describe the badge block",
"optionsLabel": "Prefilled Badge Options",
"addOptionLabel": "Add badge option"
},
"upload": {
"title": "Add upload block",
"description": "Upload blocks allow users to add images, PDFs, and other files to the policy",
"blockTitleLabel": "Upload Block Title",
"blockTitlePlaceholder": "Add your upload block title",
"uploadFileInputAriaLabel": "Choose file for this upload block",
"uploadHint": "Add images, PDFs, and other files to the policy"
},
"proportion": {
"title": "Add proportion block",
"description": "Proportion blocks help users choose a percentage value between one and one hundred",
"blockTitleLabel": "Proportion Block Title",
"blockTitlePlaceholder": "Add your proportion block title",
"defaultLabel": "Default proportion",
"decrementAriaLabel": "Decrease default proportion",
"incrementAriaLabel": "Increase default proportion"
}
}
}
@@ -29,7 +29,9 @@
},
"cardStack": {
"toggleSeeAll": "See all decision approaches",
"toggleShowLess": "Show less"
"toggleShowLess": "Show less",
"expandedStackDescriptionBefore": "You can also ",
"expandedStackDescriptionAfter": " a custom decision approach."
},
"confirmModal": {
"title": "Confirm selection",
@@ -39,6 +41,9 @@
"addApproach": {
"nextButtonText": "Add Approach"
},
"removeApproach": {
"nextButtonText": "Remove"
},
"sectionHeadings": {
"corePrinciple": "Core Principle",
"applicableScope": "Applicable Scope",
@@ -4,9 +4,10 @@
"compactTitle": "How do new members join\nand get connected?",
"compactDescriptionBefore": "You can select multiple methods for different needs or ",
"compactDescriptionLinkLabel": "add",
"compactDescriptionAfter": " your own",
"compactDescriptionAfter": " your own.",
"expandedTitle": "How should new members join and get connected?",
"expandedDescription": "You can select multiple methods for different needs or add your own",
"expandedDescriptionBefore": "You can select multiple methods for different needs or ",
"expandedDescriptionAfter": " your own",
"seeAllLink": "See all membership approaches"
},
"confirmModal": {
@@ -17,6 +18,9 @@
"addPlatform": {
"nextButtonText": "Add Platform"
},
"removePlatform": {
"nextButtonText": "Remove"
},
"sectionHeadings": {
"eligibility": "Eligibility & Philosophy",
"joiningProcess": "Joining Process",
+2
View File
@@ -40,6 +40,7 @@ import createCommunication from "./create/customRule/communication.json";
import createMembership from "./create/customRule/membership.json";
import createDecisionApproaches from "./create/customRule/decisionApproaches.json";
import createConflictManagement from "./create/customRule/conflictManagement.json";
import createCustomMethodCardWizard from "./create/customRule/customMethodCardWizard.json";
// create stage 3: reviewAndComplete
import createConfirmStakeholders from "./create/reviewAndComplete/confirmStakeholders.json";
@@ -94,6 +95,7 @@ export default {
membership: createMembership,
decisionApproaches: createDecisionApproaches,
conflictManagement: createConflictManagement,
customMethodCardWizard: createCustomMethodCardWizard,
},
reviewAndComplete: {
confirmStakeholders: createConfirmStakeholders,