From 8dc0c0127297c112eb9ac2a2b4efe9fc40408f8d Mon Sep 17 00:00:00 2001 From: Aleksey Svetlitskiy Date: Fri, 26 Apr 2024 12:37:46 -0300 Subject: [PATCH] feat(QR scanner) fix UI bugs --- CHANGELOG.md | 27 +++++++++++++++++++++++++++ README.md | 4 ++++ package-lock.json | 4 ++-- package.json | 4 ++-- rxb/check-event-query.json | 28 ++++++++++++++++++++++++++++ 5 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 CHANGELOG.md create mode 100644 rxb/check-event-query.json diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..8666928 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,27 @@ +## Release Notes: + +### vNext + +- + +### v1.0.0 + +- Product ready version +- Update [UI](https://www.figma.com/file/RPVqtcGiw2QJanXeKVBszP/QR-Scanner?node-id=0%3A1&mode=dev) +- Deploy configuration +- Integration with RXB +- Integration with [cere-sdk](https://github.com/cere-io/sdk-js) +- Remove unnecessary modules +- Add [Typescript 4.72](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-7.html) +- Add documentation and architecture diagram +- Add [MUIv5](https://mui.com) library +- Add [MobX](https://mobx.js.org) library +- Add [Tailwind v3](https://tailwindcss.com) library + +### v0.2.0 + +- Fix bugs + +### v0.1.0 + +- POC implementation diff --git a/README.md b/README.md index 5482809..cb3fde6 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ Application for checking tickets at the entrance. Works as part of the Davinci system and is intended exclusively for event staff. Configuration is carried out in RXB and Davici CRM. +## Changelog + +[changelog](./CHANGELOG.md) + ## Architecture The QR code scanner application is a classic react application using the mobx library as a store. The application only works in conjunction with Davinci (the QR codes themselves are generated in Davinci) and uses RXB as a backend. the scripts that are used in RXB can be found in the [rxb/integration-scripts](/rxb/integration-scripts) folder. diff --git a/package-lock.json b/package-lock.json index 99c8714..2565b0a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "qr-scanner-rxb", - "version": "0.2.0", + "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "qr-scanner-rxb", - "version": "0.2.0", + "version": "1.0.0", "dependencies": { "@cere/sdk-js": "^5.11.1", "@emotion/react": "^11.11.4", diff --git a/package.json b/package.json index 8028768..dfa8d45 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "homepage": ".", "name": "qr-scanner-rxb", - "version": "0.2.0", + "version": "1.0.0", "private": true, + "repository": "git://github.com/cere-io/nft-marketplace-client", "dependencies": { "@cere/sdk-js": "^5.11.1", "@emotion/react": "^11.11.4", diff --git a/rxb/check-event-query.json b/rxb/check-event-query.json new file mode 100644 index 0000000..779a493 --- /dev/null +++ b/rxb/check-event-query.json @@ -0,0 +1,28 @@ +{ + "query": { + "bool": { + "must": [ + { + "match": { + "payload.trigger": "DAVINCI_QR_CODE_VALIDATOR_USE_TICKET" + } + }, + { + "match": { + "payload.nftId": "{{event.payload.nftId}}" + } + }, + { + "match": { + "payload.wallet": "{{event.payload.wallet}}" + } + }, + { + "match": { + "payload.collectionId": "{{event.payload.collectionId}}" + } + } + ] + } + } +}