-
Notifications
You must be signed in to change notification settings - Fork 13
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
refactor: Review repository impl and structure #260
Conversation
Vercel PR (merge commit) deploy URL: https://cf-identity-wallet-gbofwrl2a.vercel.app |
Vercel PR (merge commit) deploy URL: https://cf-identity-wallet-6v0e6g8gp.vercel.app |
Vercel PR (merge commit) deploy URL: https://cf-identity-wallet-r5j9h2rwz.vercel.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, let me know when you have it fully tested 👍
Vercel PR (merge commit) deploy URL: https://cf-identity-wallet-2x5sr00yx.vercel.app |
Vercel PR (merge commit) deploy URL: https://cf-identity-wallet-1rk8sf25c.vercel.app |
…/DTIS-452-Review-Repository
Vercel PR (merge commit) deploy URL: https://cf-identity-wallet-8ndhws2sg.vercel.app |
Description
This is a general refactor on the repository to clean up the organisation a bit. There are a lot of file changes but most are smaller/import updates.
The
core
directory only has minor refactoring/doc updates,enum CredentialType
is now in the core as the core should never import from the UI, always vice versa.Structure outside of
./src
:assets
is moved intosrc
and README updatedicons
removed as redundantservices
directory now contains the cred issuance server and webrtc relay - anything our wallet depends on externally should go here, and other directories relate to building the mobile app.__mocks__
moved to./src/ui/__mocks__
which is more appropriate and still works.UI:
./src/utils
into the existing./src/ui/utils
as it makes more sense there.globals
dirdictionary.ts
is nowglobals/types.ts
and only contains types.toastMsg
Redux value and reducer that displays the current toast message. Before, toasts were of typestring
and used the operation type (which was of string) - these were mixed up way too much, and TS wasn't helping since everything is a string - we should always use an enum or something here. So we also now have anOperationType
enum. This is the biggest change of this PR.Checklist before requesting a review
Issue ticket number and link
Testing & Validation
Security
Code Review