-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2237 from zetkin/main
241007 Release
- Loading branch information
Showing
227 changed files
with
10,407 additions
and
785 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: ZUI design system | ||
about: Components for the ZUI design system library | ||
title: '🧱 ZUI: ' | ||
labels: '🧱 ZUI' | ||
assignees: '' | ||
--- | ||
|
||
## Description | ||
|
||
## Screenshots | ||
|
||
## Figma link | ||
|
||
You need to be logged into a Figma account to properly view the Figma content. | ||
|
||
## Requirements | ||
|
||
- [ ] Requirement 1 | ||
|
||
## Open questions | ||
|
||
## Possible implementations | ||
|
||
Develop this using Storybook. We want all the design system components to be documented through their own Storybook stories. | ||
|
||
For reference, you can look at the already existing ZUI components created on the `undocumented/new-design-system` branch (not ZUI components that exist on `main`, as they are not part of the new design system.) | ||
|
||
## Git | ||
|
||
The main git branch for the work on the new design system is `undocumented/new-design-system`. Unless otherwise instructed, do your work on a new branch branched off from this branch. | ||
|
||
Name your branch `issue-number/zui-name`, ex: `issue-928/zui-button` for a branch where work is done that is documented in the issue with number 928, where a button component is being made. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
integrationTesting/mockData/orgs/KPD/surveys/MembershipSurvey/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
import KPD from '../..'; | ||
import { | ||
ELEMENT_TYPE, | ||
RESPONSE_TYPE, | ||
ZetkinSurveyExtended, | ||
} from 'utils/types/zetkin'; | ||
|
||
const KPDMembershipSurvey: ZetkinSurveyExtended = { | ||
access: 'open', | ||
callers_only: false, | ||
campaign: null, | ||
elements: [ | ||
{ | ||
hidden: false, | ||
id: 1, | ||
question: { | ||
description: '', | ||
options: [ | ||
{ | ||
id: 1, | ||
text: 'Yes', | ||
}, | ||
{ | ||
id: 2, | ||
text: 'No', | ||
}, | ||
], | ||
question: 'Do you want to be active?', | ||
required: false, | ||
response_config: { | ||
widget_type: 'radio', | ||
}, | ||
response_type: RESPONSE_TYPE.OPTIONS, | ||
}, | ||
type: ELEMENT_TYPE.QUESTION, | ||
}, | ||
{ | ||
hidden: false, | ||
id: 2, | ||
question: { | ||
description: '', | ||
question: 'What would you like to do?', | ||
required: false, | ||
response_config: { | ||
multiline: true, | ||
}, | ||
response_type: RESPONSE_TYPE.TEXT, | ||
}, | ||
type: ELEMENT_TYPE.QUESTION, | ||
}, | ||
{ | ||
hidden: false, | ||
id: 3, | ||
question: { | ||
description: '', | ||
options: [ | ||
{ | ||
id: 1, | ||
text: 'Flyers', | ||
}, | ||
{ | ||
id: 2, | ||
text: 'Phone banking', | ||
}, | ||
], | ||
question: 'How do you want to help?', | ||
required: false, | ||
response_config: { | ||
widget_type: 'checkbox', | ||
}, | ||
response_type: RESPONSE_TYPE.OPTIONS, | ||
}, | ||
type: ELEMENT_TYPE.QUESTION, | ||
}, | ||
], | ||
expires: null, | ||
id: 1, | ||
info_text: '', | ||
org_access: 'sameorg', | ||
organization: { | ||
id: KPD.id, | ||
title: KPD.title, | ||
}, | ||
published: '1857-05-07T13:37:00.000Z', | ||
signature: 'allow_anonymous', | ||
title: 'Membership survey', | ||
}; | ||
|
||
export default KPDMembershipSurvey; |
Oops, something went wrong.