Skip to content

Commit

Permalink
Feat/static questions values (#97)
Browse files Browse the repository at this point in the history
* chore: adding .idea in gitignore

* feat: static questions can have a default value, by default its value is true

* updated CHANGELOG.md

* 1.1.24
  • Loading branch information
sergioCB95 authored Oct 18, 2021
1 parent 6c04ea5 commit 947f529
Show file tree
Hide file tree
Showing 5 changed files with 150 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ yarn-error.log*
.vscode

#licenses
license-report.md
license-report.md

.idea
142 changes: 142 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,145 @@
#### 1.1.24 (2021-10-18)

##### Chores

* adding .idea in gitignore (2a3d3cc8)
* remove logs (85e6b7bd)
* remove test folder (1b5b93d4)
* eslint fix (c5d373c6)
* ireland updated (870cb4c1)
* delete date logs (c6f0c45b)
* adapt es6 to es5 to prevent errors with loader (5889d28c)
* delete ? into phone component (696fccb2)
* **master:**
* update CI/CD pipeline (3ce29c13)
* update CI/CD pipeline (c8e3626a)
* update CI/CD pipeline (954408e3)
* update CI/CD pipeline (75b8495f)
* update CI/CD pipeline (84b8ce4b)
* update CI/CD pipeline (72c18216)
* update CI/CD pipeline (91d2c37e)
* update CI/CD pipeline (21eda029)
* travis only running at main (dbc4a93f)
* CI/CD node version to 10 (37450548)
* CI/CD Test stage (efaf7116)
* CI/CD Publish stage (8f00cb1b)
* CI/CD docs (aefa3faf)
* public web added (fccde234)
* travis script with conditional deployment at stage (c75b2769)
* travis script with conditional deployment (d729e0ea)
* travis config with version tags (ee200327)
* changelog lib added (42a099eb)
* release script (3f2b0d68)
* adding travis config file (cb4ef886)
* initial commit (aa59600e)
* **main:**
* travis env var (49a7a645)
* travis env var (86bb2b64)
* linting (05c11286)

##### New Features

* static questions can have a default value, by default its value is true (07e09cc6)
* textarea question implemented (46e0f1e1)
* add commitLint and Husky (82534965)
* builder parent div updated (ba4fbdd3)
* radio test edit (521f6dce)
* edit labels by question (0c3aaa4a)
* making new and removing old tooltip component (73a1450f)
* button customise by id (0342e6b5)
* multipleCheckbox editable styles (2dbbda2b)
* aligning labels with radios (db555cd4)
* changing how styles are managed (3ffc3da4)
* svg component displayed with inputs and tooltip (9a711a66)
* svg now can be loaded with the library (fcf92aa2)
* placeholder option in select & country Questions (ce9969a8)
* adding license-checker postinstall (9748f18f)
* countryQuestions storybook (6565c1b3)
* now countryQuestion accepts custom list of countries (8c320e17)
* new modal possibility, now we can open different links and show different text in the same modal (200b4469)
* custom component with a modal, now we can open links in a modal or in another tab. (99faab93)
* custom component for check ==> custom checkbox storybook (0b885954)
* storybook related with the checkbox component (b3a383d3)
* add openToDate in date field (e1df7d97)
* add openToDate in date field (dbba3b64)
* export error message to implement into custom component (ddf001d0)
* add custom component compatibility (7d0907d7)
* add minAge to date component (4848362b)
* change value of the country from countryName to countryShortCode (96caaf7f)
* add target option into Checkbox ReactMarckdown links (37e9bb5f)
* add select status (isSelected,isDisabled, isFocused) styles (e067bd10)

##### Bug Fixes

* adding countries left asked by ... (dfc8a2cf)
* error no text to display (f826a36f)
* tests (ef6bb026)
* style access (2c01fa5c)
* new logic needs changes in the tests (17207059)
* not displaying tooltip if there is no text (6376863c)
* Date problem with hour depends on GMT and fixing texts (ed85ec7b)
* removing web error default (348dc411)
* name of svg need a format name to avoid errors in tags (888406c9)
* displaying error just if it is neccesary (4b734d51)
* adapt test were needed due to new logic (e664cca3)
* phone input not alway required and name now can be choosen (019226c3)
* phone input is not always required anymore (105740d9)
* old test now everything is ordered... (bab900db)
* add countryAndRegionsData to FB (d694fa81)
* problem rendering select when theme value was null (f2fd2590)
* Quick fix test that was forgotten (d01d6fe3)
* the bugs related with the 1.0.58 version and old bugs from other versions (ae609e37)
* travis build fixing (3a2a7123)
* travis error ? && removing consoles.log (a95ee0f2)
* reducing redundancy repeating question all the time just making the necessary modifications (6b51f4db)
* fix return multipleCheckboxes and multipleImageCheckboxes values, validations (a7ab4a8b)
* fix empty phone error (81b87e1e)
* fix date component in firefox and safari (7eada8da)
* validation birthday date (979a6463)
* **main:** travis yaml format (20ecbffe)

##### Other Changes

* guidesmiths/react-form-builder (31dcca7f)
* //github.com/guidesmiths/react-form-builder into feat/testing (d4968f87)
* guidesmiths/react-form-builder into main (3c688403)
* //github.com/guidesmiths/react-form-builder (d01cbe71)
* //github.com/guidesmiths/react-form-builder (b5ba58af)
* D (7ddc92c6)
* D (8b43c578)
* logic behind radiobuttons (5c90b1f0)
* undefined value on delete (e8e790bc)
* countries are displayed in the language asked & added countries json (2cd475f3)
* redirection in the href, export modal and included onLinkClick for the customizeCheckbox in formbuilder (12452de6)
* add custom order and custom countryNames into country-component (60091bb0)
* add-date-and-form-types-into-form-builder#19 add date and phone types into form builder (84b8fed3)
* add-calendar-component add Date component, add isBirthDay property and create story (4f1e5626)
* **master:**
* travis only running at main"" (86f7f661)
* travis only running at main" (f81d1a64)

##### Refactors

* externalize components (5aee3928)
* markdown onLinkOpen (fa1ff72c)
* logo reducing loading charge (361fcd0a)
* logistic more precise (f243dd92)
* moving icons to new folder and default icon (75f5af63)
* Logo and tooltip externalisation in components (6f88a7a3)
* optimisation of priorityOrder and new language feature displaying countries (c845d30b)
* removing C&R now it will be in /country/data with the other json (98fbed31)
* removing "isMobile" from documentation and adding language (88f56f3b)

##### Code Style Changes

* custom tooltip (8c34cab7)

##### Tests

* QuestionInput Test (23d2de28)
* initial test for QuestionInput (21411c7b)
* countryQuestion testing (73237ecd)

#### 1.1.23 (2021-10-15)

##### Chores
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@guidesmiths/react-form-builder",
"version": "1.1.23",
"version": "1.1.24",
"description": "React from builder using json schema",
"author": "Guidesmiths",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions src/Questions/Static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/** @jsxRuntime classic */
import { jsx } from 'theme-ui'

import Checkbox from '../../Fields/Checkbox'
import Input from '../../Fields/Input'
import Label from '../../Fields/Label'

const QuestionStatic = ({ question, useForm }) => {
Expand All @@ -11,10 +11,10 @@ const QuestionStatic = ({ question, useForm }) => {
return (
<div key={question.name} sx={{ display: 'none' }}>
<Label htmlFor={question.name}>
<Checkbox
<Input
id={question.name}
name={question.name}
defaultChecked
defaultValue={question.defaultValue || true}
ref={register({
...question.registerConfig
})}
Expand Down

0 comments on commit 947f529

Please sign in to comment.