-
Notifications
You must be signed in to change notification settings - Fork 28
feat(wallet): Add New fields to KYC forms #106
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
8b273cb
Add New fields to KYC forms
Tymmmy b4abc1d
Changes for File upload validation
Tymmmy 5c0518b
Merge branch 'main' into 105-change-kyc-forms-to-fit-rapyd-requests-fe
Tymmmy 5791d8c
Update FileUpload.tsx
Tymmmy a017d15
Fix validation errors for file types
Tymmmy a0a8885
Added PR suggested changes & fileName fix for upload
Tymmmy 99b703f
Added Readme file
Tymmmy 62a1fb6
Update contributing.md
Tymmmy 3f22069
Update VerifyIdentityForm.tsx
Tymmmy e50ff1c
update README
raducristianpopa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
This file contains hidden or 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,119 @@ | ||
| # Contributing to this repository <!-- omit in toc --> | ||
|
|
||
| ## Getting started <!-- omit in toc --> | ||
|
|
||
| Thank you for contributing to Testnet, a Rafiki Playground :tada: | ||
|
|
||
| Before you begin: | ||
| - Have you read the [code of conduct](CODE_OF_CONDUCT.md)? | ||
| - Check out the [existing issues](https://github.com/interledger/testnet/issues) & see if we [accept contributions](#types-of-contributions) for your type of issue. | ||
|
|
||
| ### Table of Contents <!-- omit in toc --> | ||
|
|
||
| - [Types of contributions](#types-of-contributions) | ||
| - [:mega: Discussions](#mega-discussions) | ||
| - [:beetle: Issues](#beetle-issues) | ||
| - [:hammer\_and\_wrench: Pull requests](#hammer_and_wrench-pull-requests) | ||
| - [:books: Documentation](#books-documentation) | ||
| - [Working in the testnet repository](#working-in-the-testnet-repository) | ||
| - [Labels](#labels) | ||
| - [Code quality](#code-quality) | ||
| - [Linting](#linting) | ||
| - [Formatting](#formatting) | ||
| - [Testing](#testing) | ||
| - [Language](#language) | ||
| - [CI](#ci) | ||
|
|
||
| ## Types of contributions | ||
| You can contribute to Testnet in several ways. | ||
|
|
||
| ### :mega: Discussions | ||
| Discussions are where we have conversations about Testnet. | ||
|
|
||
| If you would like to discuss topics about the broader ecosystem, have a new idea, or want to show off your work - join us in [discussions](https://github.com/interledger/testnet/discussions). | ||
|
|
||
| ### :beetle: Issues | ||
| We use GitHub issues to track tasks that contributors can help with. We haven't finalized labels yet for contributors to tackle. If you want to help with work related to an issue, please comment on the issue before starting work on it. | ||
|
|
||
| If you've found something that needs fixing, search open issues to see if someone else has reported the same thing. If it's something new, open an issue. We'll use the issue to discuss the problem you want to fix. | ||
|
|
||
| ### :hammer_and_wrench: Pull requests | ||
| Feel free to fork and create a pull request on changes you think you can contribute. | ||
|
|
||
| The team will review your pull request as soon as possible. | ||
|
|
||
| ### :books: Documentation | ||
| The project is new and available Testnet documentation is a work in progress. | ||
|
|
||
| Rafiki has started to maintain public-facing documentation on [rafiki.dev](https://github.com/interledger/rafiki.dev). | ||
| A list of issues being tracked across the Interledger ecosystem (including rafiki) is maintained in the [Documentation project](https://github.com/orgs/interledger/projects/5/views/1). | ||
|
|
||
|
|
||
| ## Working in the testnet repository | ||
|
|
||
| This project uses pnpm. A list of steps for setting up a [local development environment](https://github.com/interledger/testnet#local-development-environment) can be found in the Readme. | ||
|
|
||
| > DO NOT use `npm install`. This will cause the project to spontaneously self-destruct :boom: | ||
|
|
||
| ### Labels | ||
|
|
||
| We use labels to communicate the intention of issues and PRs. | ||
|
|
||
| - `package:wallet` prefix denotes issues that are partaining to the wallet package (NextJS). | ||
| - `package:backend` prefix denotes issues that are partaining to the backend package (Express). | ||
| - `priority:` prefix denotes pirority of issues. | ||
|
|
||
| Some labels will be automatically assigned to Issues/PRs. | ||
|
|
||
| ### Code quality | ||
|
|
||
| All the code quality tools used in the project are installed and configured at the root. | ||
| This allows for consistency across the monorepo. Allows new packages to be added with | ||
| minimal configuration overhead. | ||
|
|
||
| We try not to put config files in workspaces, unless absolutely necessary. | ||
|
|
||
| #### Linting | ||
|
|
||
| [Eslint](https://eslint.org/) is used for linting. | ||
|
|
||
| ```shell | ||
| ./.eslintrc.js # config | ||
| ./.eslintignore # ignore file | ||
| ``` | ||
|
|
||
| Eslint config should not be overridden in any packages. | ||
|
|
||
| #### Formatting | ||
|
|
||
| [Prettier](https://prettier.io/) is used for formatting. | ||
|
|
||
| ```shell | ||
| ./.prettierrc.js # config | ||
| ./.prettierignore # ignore file | ||
| ``` | ||
|
|
||
| Prettier config should not be overridden in any packages. | ||
|
|
||
| #### Testing | ||
|
|
||
| [Jest](https://jestjs.io/) is used for unit and integration testing. | ||
|
|
||
| [Playwright](https://playwright.dev/) is used for end-to-end testing. | ||
|
|
||
| #### Language | ||
|
|
||
| [Typescript](https://www.staging-typescript.org/) is the chosen language. | ||
|
|
||
| ```shell | ||
| ./tsconfig.json # config | ||
| ``` | ||
|
|
||
| Typescript config at the root is intended to be a base config that should be extended by | ||
| each package to suit the package's requirements. | ||
|
|
||
| #### CI | ||
|
|
||
| We use GitHub actions to manage our CI pipeline. | ||
|
|
||
| The workflows can be found in `.github/workflows` |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,3 +1,79 @@ | ||
| # Testnet | ||
|
|
||
| WIP | ||
| [testnet](https://user-images.githubusercontent.com/117268143/220323531-538238d2-f538-4ed5-be97-163e28ebc48f.jpg) | ||
|
|
||
| ## What is Testnet? | ||
|
|
||
| Testnet is an open source test application for Rafiki. In other words, a Rafiki Playground. | ||
| It wants to use all of the functionalities of Rafiki and put the advantages of it to the real test. | ||
|
|
||
| Testnet is made up (or will be made up in the near future) of several components, including wallet application, | ||
| a bank application, and an e-commerce application. | ||
|
|
||
| ## What is Rafiki? | ||
|
|
||
| Rafiki is an open source package that exposes a comprehensive set of | ||
| Interledger APIs. It's intended to be run by wallet providers, allowing them to | ||
| offer Interledger functionality to their users. | ||
|
|
||
| ### New to interledger? | ||
|
|
||
| Never heard of Interledger before, or you would like to learn more? Here are some good places to start: | ||
|
|
||
| - [Good first issues](https://github.com/interledger/rafiki/contribute) | ||
| - [Interledger Explainer Video](https://twitter.com/Interledger/status/1567916000074678272) | ||
| - [Interledger Website](https://interledger.org/) | ||
| - [Payment pointers](https://paymentpointers.org/) | ||
| - [Web monetization](https://webmonetization.org/) | ||
|
|
||
| ## Contributing | ||
|
|
||
| Please read the [contribution guidelines](.github/contributing.md) before submitting contributions. All contributions must adhere to our [code of conduct](.github/CODE_OF_CONDUCT.md). | ||
|
|
||
| ## Local Development Environment | ||
|
|
||
| ### Prequisites | ||
|
|
||
| - [Docker](https://docs.docker.com/get-docker/) | ||
| - [NVM](https://github.com/nvm-sh/nvm) | ||
|
|
||
| ### Environment Setup | ||
|
|
||
| ```sh | ||
| # Install Node 18 | ||
| nvm install lts/hydrogen | ||
| nvm use lts/hydrogen | ||
|
|
||
| # Install pnpm using Corepack | ||
| corepack enable | ||
| ``` | ||
|
|
||
| If you do not have `corepack` installed locally you can use `npm` or `yarn` to install `pnpm`: | ||
|
|
||
| ```sh | ||
| npm install pnpm -g | ||
| # or | ||
| yarn install pnpm -g | ||
| ``` | ||
|
|
||
| For other alternatives on how to install `pnpm`, you can see the [official documentation](https://pnpm.io/installation) from `pnpm`. | ||
|
|
||
| To Install dependencies run: | ||
|
|
||
| ```sh | ||
| pnpm i | ||
| ``` | ||
|
|
||
| ### Local Playground | ||
|
|
||
| From the root of the project: | ||
|
|
||
| ```sh | ||
| # This will start both the wallet and backend application | ||
| pnpm dev | ||
| ``` | ||
|
|
||
| After running the command above you will have: | ||
|
|
||
| - Wallet frontend available on http://localhost:4003/ | ||
| - Wallet backend avaiable on http://localhost:3003/ |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.