Skip to content

feat: form config #306

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

Open
wants to merge 100 commits into
base: feat/clevercloud
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
183f70f
feat: rename Form to FormTemplate
ClementNumericite Mar 17, 2025
ae166f8
fix: migration form to formtemplate
ClementNumericite Mar 17, 2025
a7b02e7
fix: prisma schema format
ClementNumericite Mar 17, 2025
0f165de
feat: add form instance
ClementNumericite Mar 17, 2025
d64a499
feat: form config & refactoring form template
ClementNumericite Mar 17, 2025
84f4963
fix: update formtemplate fields
ClementNumericite Mar 18, 2025
5c550e0
fix: form prisma optionnal user & slug unique on form template
ClementNumericite Mar 18, 2025
aaa5a1b
feat: migration to create root template & form for all products
ClementNumericite Mar 18, 2025
1482686
feat: add form and root template to project seeds
ClementNumericite Mar 18, 2025
1a9f5c2
fix: clean form builder code
ClementNumericite Mar 18, 2025
d587ae8
fix: seed carrier_admin for all usres
ClementNumericite Mar 19, 2025
40ef142
feat: form page integration
ClementNumericite Mar 19, 2025
e02889c
fix: wording
ClementNumericite Mar 19, 2025
76e9eb7
feat: button migration from product to form
ClementNumericite Mar 19, 2025
aa2bfa6
fix: legacy button.product_id
ClementNumericite Mar 19, 2025
5733784
feat: form migration with button linked to forms iso product
ClementNumericite Mar 19, 2025
006ee0a
fix: remove old custom form file
ClementNumericite Mar 19, 2025
3e0695e
fix: remove old custom form layout
ClementNumericite Mar 19, 2025
9aa54dc
fix: correct zod type output on product route
ClementNumericite Mar 19, 2025
f15ced9
fix: old import to custom review route
ClementNumericite Mar 19, 2025
7c7d6b9
fix: remove form custom utils functions
ClementNumericite Mar 19, 2025
d20a8b7
fix: form app product type
ClementNumericite Mar 19, 2025
06a6e46
fix: seed users as carrier_user
ClementNumericite Mar 19, 2025
949b62b
feat: begin form config page
ClementNumericite Mar 19, 2025
1051b79
fix: form template root name
ClementNumericite Mar 20, 2025
e9b4b53
feat: forms page integration
ClementNumericite Mar 20, 2025
5fbe920
feat: header of form page
ClementNumericite Mar 20, 2025
0bcadf4
fix: correct build issue
ClementNumericite Mar 20, 2025
3246af8
feat: add seed for satisfcation form template
ClementNumericite Mar 20, 2025
8d44cd7
feat: form config component and subcomponents
ClementNumericite Mar 20, 2025
6f0e3b3
fix: useless import
ClementNumericite Mar 20, 2025
bb77524
feat: add mark form block display
ClementNumericite Mar 20, 2025
18bee39
feat: add previous & next buttons
ClementNumericite Mar 20, 2025
ab36d5a
fix: FormConfigurator minH
ClementNumericite Mar 21, 2025
f6713d5
feat: add downLabel & upLabel to handle mark_input specificities
ClementNumericite Mar 21, 2025
e173aed
feat: implement checkbox and first version of formConfig save
ClementNumericite Mar 21, 2025
621aba6
feat: textarea block implementation
ClementNumericite Mar 24, 2025
2288270
feat: add update text with wysiwyg integration
ClementNumericite Mar 24, 2025
c0ab021
feat: refactoring typing in config load & publish
ClementNumericite Mar 25, 2025
3447266
feat: handle hasConfigChanged & send tmp config helper to front form …
ClementNumericite Mar 25, 2025
8e556fb
fix: form block wysiwyg style
ClementNumericite Mar 27, 2025
1c24a68
feat: handle formconfig in form view & implement intro label custom
ClementNumericite Mar 27, 2025
e42544b
feat: webform handle formconfig
ClementNumericite Mar 27, 2025
4f34d76
feat: add block options position
ClementNumericite Mar 27, 2025
248e797
feat: hide step in form config
ClementNumericite Mar 27, 2025
f09d503
fix: ownRight on form & seed users rights
ClementNumericite Mar 27, 2025
a795f32
feat: preview of current formConfig
ClementNumericite Mar 27, 2025
94b4dd4
fix: legacy poc form builder code
ClementNumericite Mar 28, 2025
8180f2d
feat: add hideable options on step, block & blockOption
ClementNumericite Mar 31, 2025
321031b
fix: refactoring wysiwyg
ClementNumericite Mar 31, 2025
8420fd1
fix: add step description & tooltip
ClementNumericite Mar 31, 2025
4ef52d5
fix: protect formConfig preview to be put when not iframe
ClementNumericite Mar 31, 2025
86c7ccd
feat: add preview notice on webform
ClementNumericite Mar 31, 2025
6a3d391
feat: publish modal & confirm alert
ClementNumericite Mar 31, 2025
0a4bdc4
feat: protect leave unsaved changes with native confirms
ClementNumericite Mar 31, 2025
7c4ac02
feat: implement radios component
ClementNumericite Mar 31, 2025
427ad6c
feat: add custom component for help step of root template
ClementNumericite Mar 31, 2025
0717134
fix: radio table position of radios
ClementNumericite Mar 31, 2025
c25c666
fix: hide step style on questions
ClementNumericite Mar 31, 2025
d386ddb
fix: update form template seed
ClementNumericite Mar 31, 2025
de37b15
feat: handle hidden parent in custom help root form conditions
ClementNumericite Mar 31, 2025
8e88e2e
fix: display custom tag on parent hidden
ClementNumericite Mar 31, 2025
e9fdd38
fix: publish on stepper
ClementNumericite Apr 1, 2025
d892894
fix: typo in form template root seed
ClementNumericite Apr 1, 2025
8adca20
fix: typo in step display
ClementNumericite Apr 1, 2025
5ac99a4
fix: typo
ClementNumericite Apr 1, 2025
13ae829
fix: encode formConfig object in url for preview
ClementNumericite Apr 1, 2025
70fec5e
feat: custom modal for page leave by app router
ClementNumericite Apr 1, 2025
e8c1823
feat: handle modified and hidden states for steps and blocks
YoannNumericite Apr 15, 2025
9daa785
feat: handle form previsualisation message
YoannNumericite Apr 15, 2025
4e28f3b
fix: fix text modal
YoannNumericite Apr 15, 2025
11c6efc
fix: label hidden option
YoannNumericite Apr 15, 2025
c0ce9c9
feat: update comment step form builder
YoannNumericite Apr 16, 2025
e52a2ec
fix: better handling modified step
YoannNumericite Apr 17, 2025
c9a4051
fix: better handling modified step
YoannNumericite Apr 17, 2025
4fbbf1b
feat: explain stem non hidable
YoannNumericite Apr 17, 2025
2ae42ef
fix: move checker to hooks
YoannNumericite Apr 17, 2025
5626ff3
feat: add versions display components on reviews page
ClementNumericite Apr 25, 2025
a618962
feat: handle versions in table main columns
ClementNumericite Apr 25, 2025
c7b3ad0
feat: prepare for form config hide questions on reviews
ClementNumericite Apr 25, 2025
7ebf28e
fix: build error
ClementNumericite Apr 25, 2025
730e752
feat: handle form config in review display fields
ClementNumericite Apr 28, 2025
d01e719
feat: add stats display version component
ClementNumericite Apr 28, 2025
052d726
feat: new design old questions section
ClementNumericite Apr 28, 2025
2e9aba7
fix: more maintanable way to handle hidden steps
ClementNumericite Apr 28, 2025
111c61e
fix: variables names
ClementNumericite Apr 28, 2025
b3910ca
feat: add question modified hidden option details
ClementNumericite Apr 28, 2025
30599c5
fix: wording
ClementNumericite Apr 28, 2025
9000771
fix: small fixes
ClementNumericite Apr 28, 2025
9b9b064
fix: build issue
ClementNumericite Apr 28, 2025
5ccb9d7
fix: ts compile using optionnal object property
dan1M Apr 28, 2025
f25cc3f
fix: error typescript
ClementNumericite Apr 28, 2025
be62f74
change wording, add log event create config
YoannNumericite Apr 29, 2025
6f0a692
fix: add right number version on log event
YoannNumericite Apr 29, 2025
aa1ddf2
fix: form config smiley block design adapt
dan1M Apr 29, 2025
e68d72c
fix: form config mark block design adapt
dan1M Apr 29, 2025
caece5a
fix: form config root yes no/ radios block design adapt
dan1M Apr 30, 2025
afecd0c
fix: form config root tables block cloned into new root scales block …
dan1M Apr 30, 2025
9bb4e2b
fix: fix step tooltip placement
YoannNumericite May 5, 2025
6a28af3
fix: product menu names
YoannNumericite May 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion webapp-backoffice/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ NEXT_PUBLIC_MATOMO_SITE_ID=XXX
#PROCONNECT
PROCONNECT_DOMAIN="fca.integ01.dev-agentconnect.fr"
PROCONNECT_CLIENT_ID=""
PROCONNECT_CLIENT_SECRET=""
PROCONNECT_CLIENT_SECRET=""

# Public
NEXT_PUBLIC_FORM_APP_URL="http://localhost:3001"
2 changes: 1 addition & 1 deletion webapp-backoffice/cypress.env.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"DB_USER": "user",
"DB_PASSWORD": "password",
"DB_NAME": "jdma"
}
}
32 changes: 17 additions & 15 deletions webapp-backoffice/cypress/e2e/jdma/form/review.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,34 +54,36 @@ function fillFormStep3() {
.eq(0)
.find('input[type="radio"]')
.eq(0)
.check({ force: true });
.check({ force: true });
cy.get('fieldset')
.eq(1)
.find('input[type="radio"]')
.eq(0)
.check({ force: true });
.check({ force: true });
cy.get('fieldset')
.eq(2)
.find('input[type="radio"]')
.eq(1)
.check({ force: true });
.check({ force: true });
});
}

function fillFormStep4() {
cy.get("[class*='mainTable']").should('be.visible').within(() => {
cy.contains('label', 'Au guichet')
.parents('tr')
.within(() => {
cy.get('input[type="radio"]').eq(4).check({ force: true });
});
cy.get("[class*='mainTable']")
.should('be.visible')
.within(() => {
cy.contains('label', 'Au guichet')
.parents('tr')
.within(() => {
cy.get('input[type="radio"]').eq(4).check({ force: true });
});

cy.contains('label', 'Par téléphone')
.parents('tr')
.within(() => {
cy.get('input[type="radio"]').eq(3).check({ force: true });
});
});
cy.contains('label', 'Par téléphone')
.parents('tr')
.within(() => {
cy.get('input[type="radio"]').eq(3).check({ force: true });
});
});

cy.get('button').contains('Continuer').click();
cy.get('h1').contains('Informations complémentaires').should('exist');
Expand Down
6 changes: 3 additions & 3 deletions webapp-backoffice/cypress/fixtures/example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Using fixtures to represent data",
"email": "[email protected]",
"body": "Fixtures are a great way to mock data for responses to routes"
"name": "Using fixtures to represent data",
"email": "[email protected]",
"body": "Fixtures are a great way to mock data for responses to routes"
}
Loading