diff options
-rw-r--r-- | CHANGELOG.md | 16 | ||||
-rw-r--r-- | DESIGN.md | 4 | ||||
-rw-r--r-- | README.md | 19 | ||||
-rw-r--r-- | build-system/Makefile | 4 |
4 files changed, 23 insertions, 20 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index ad3529a..3ed6490 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,36 +6,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Future work] - - date format (error handling) - - red color when input is invalid (onchange) - - validate everything using onChange - - - replace Yup and type definition with a taler-library for the purpose (first wait Florian to refactor wallet core) - add more doc style comments - configure eslint - configure prettier - prune scss styles to reduce size - - fix mobile: some things are still on the left - - edit button to go to instance settings - cleanup instance and token management, because code is a mess and can be refactored - - unlock a product when is locked - - check that there is no place where the taxes are summing up - - translation missing: yup (check for some ot her dynamic message) - - contract terms + - show information about product being locked up - fulfillment url should check absolute url or relative to the merchant domain - - create taler ui - contract terms in the wallet - when backoffice get a response of the merchant that have info about the response of the exchange, the error is not readed correctly... see wire transfer - when creating the first default instance, the page keeps reloading preventing for filling the form - - create instance with auth token - - add more information about reserve when is not founded - - replace manipulation of amount with taler util libraries - check, not running the backend, load the SPA, then start running the backend. after this click the login button should enter the app but doesnt do anything + - move types from backoffice into @gnu-taler/taler-util wallet @@ -94,8 +94,10 @@ These 3 elements are used to setup the FormProvider Inputs should handle UI rendering and use `useField(name)` to get: - * error: the error message if there is one + * error: the field has been modified and the value is not correct + * required: the field need to be corrected * value: the current value of the object + * initial: original value before change * onChange: function to update the current field Also, every input must be ready to receive these properties @@ -49,6 +49,17 @@ Override the PORT variable to run the server in another port. make dev PORT=9090 ``` +The application need to connect to a merchant-backend properly configured to run. + +To run a UI development server run: + +```shell +make dev-ui +``` + +UI development server will lookup for *.stories.tsx files and render examples of +pages. This examples are useful for test correctness, accessibility, +internationalization and code coverage. ## Building for deploy To build and deploy the SPA in your local server run the install script: @@ -91,7 +102,7 @@ The result will be placed at `packages/frontend/single/index.html`. [`enzyme-adapter-preact-pure`](https://github.com/preactjs/enzyme-adapter-preact-pure) for your tests. -* `make dev-views`: Run visual components explorer. Useful for components design and development +* `make dev-ui`: Run visual components explorer. Useful for components design and development without the need of setting up the whole system. ## Runtime dependencies @@ -104,8 +115,10 @@ The result will be placed at `packages/frontend/single/index.html`. * SWR: React Hooks library for data fetching (stale-while-revalidate) -* Yup: schema builder for value parsing and validation +* Yup: schema builder for value parsing and validation (to be deprecated) * Date-fns: library for manipulating javascript date -* messageformat: ICU MessageFormat for Javascript, with support for .po and .mo files +* qrcode-generator: simplest qr implementation based on JIS X 0510:1999 + +* @gnu-taler/taler-util: types and tooling diff --git a/build-system/Makefile b/build-system/Makefile index 8f03c11..cf3c157 100644 --- a/build-system/Makefile +++ b/build-system/Makefile @@ -55,8 +55,8 @@ dev: compile serve: build pnpm run --filter merchant-backoffice serve -.PHONY: dev-view -dev-view: compile +.PHONY: dev-ui +dev-ui: compile pnpm run --filter merchant-backoffice storybook .PHONY: lint |