Commit Graph

256 Commits

Author SHA1 Message Date
Spencer Ofwiti 208c448984 Format docs using linter and prettier. 2021-05-11 20:51:48 +03:00
Spencer Ofwiti 5228842e61 Merge branch 'master' into spencer/docs
# Conflicts:
#	package-lock.json
#	package.json
#	src/app/_eth/accountIndex.ts
#	src/app/_eth/token-registry.ts
#	src/app/_guards/auth.guard.ts
#	src/app/_guards/role.guard.ts
#	src/app/_helpers/array-sum.ts
#	src/app/_helpers/clipboard-copy.ts
#	src/app/_helpers/custom-error-state-matcher.ts
#	src/app/_helpers/custom.validator.ts
#	src/app/_helpers/export-csv.ts
#	src/app/_helpers/global-error-handler.ts
#	src/app/_helpers/http-getter.ts
#	src/app/_helpers/mock-backend.ts
#	src/app/_helpers/read-csv.ts
#	src/app/_helpers/schema-validation.ts
#	src/app/_services/user.service.spec.ts
2021-05-11 20:41:47 +03:00
Spencer Ofwiti 29b75d3d85 Refactor environment variables. 2021-05-11 20:20:44 +03:00
Spencer Ofwiti 10beaea9be Format files with prettier. 2021-05-11 20:09:25 +03:00
Spencer Ofwiti 36ec897bf1 Merge branch 'master' into spencer/linting
# Conflicts:
#	package-lock.json
#	src/app/app.component.ts
#	src/app/app.module.ts
#	src/app/shared/shared.module.ts
2021-05-11 20:04:02 +03:00
Spencer Ofwiti 8754ae46d2 Add different manifest icons. 2021-05-11 19:52:49 +03:00
Spencer Ofwiti d4d2837d2e Merge branch 'master' into spencer/pwa
# Conflicts:
#	package-lock.json
#	src/app/shared/shared.module.ts
#	src/styles.scss
2021-05-11 18:28:54 +03:00
Spencer Ofwiti e0c045cdfa Add documentation to the helpers module. 2021-05-11 14:34:23 +03:00
Spencer Ofwiti c9f73899c3 Add documentation to the guards module. 2021-05-11 12:28:45 +03:00
Spencer Ofwiti 2bc6dcf033 Add documentation to eth modules. 2021-05-11 12:05:04 +03:00
Spencer Ofwiti 8db1343bc5 Add docs. 2021-05-10 21:56:20 +03:00
Spencer Ofwiti 1c926baf47 Format files with prettier. 2021-05-10 19:15:25 +03:00
Spencer Ofwiti 6ed07b4beb Merge branch 'spencer/accounts-search' into 'master'
Accounts search by phone and address

See merge request grassrootseconomics/cic-staff-client!13
2021-05-10 05:16:18 +00:00
Blair Vanderlugt 079c11ad88 Update src/environments/environment.dev.ts 2021-05-08 05:36:10 +00:00
Spencer Ofwiti 53d6d6b7a4 Add typing to components. 2021-04-30 15:50:16 +03:00
Spencer Ofwiti 9921488a04 Add strong typing to variables and functions. 2021-04-29 20:10:39 +03:00
Spencer Ofwiti d0e0108274 Add styling via cs. 2021-04-29 14:15:14 +03:00
Spencer Ofwiti 0009148e61 Merge branch 'master' into spencer/accounts-search
# Conflicts:
#	src/app/_eth/registry.ts
#	src/app/_interceptors/error.interceptor.ts
#	src/app/_services/auth.service.ts
2021-04-29 11:21:22 +03:00
Blair Vanderlugt fb1c53946b blocking access on 401/403 2021-04-29 05:29:54 +00:00
Spencer Ofwiti 81413ef631 Remove stale components. 2021-04-28 20:34:02 +03:00
Spencer Ofwiti e6de26be2c Add querying of account types, transaction types and genders from meta server. 2021-04-28 20:24:25 +03:00
Spencer Ofwiti ce26380e84 Refactor to meta url. 2021-04-28 17:31:36 +03:00
Spencer Ofwiti 292b64c1e0 Add querying of location mappings and categories from API endpoint.
- Implement stub in mock backend for testing purposes.
2021-04-28 15:53:25 +03:00
Spencer Ofwiti 9e03990334 Refactor account details page to use address with stripped 0x. 2021-04-28 12:09:51 +03:00
Spencer Ofwiti 4167a7e6b7 Add fine grained control to iframe. 2021-04-27 21:15:20 +03:00
Spencer Ofwiti 88dc73cf1d Add person verification to last step. 2021-04-27 20:22:42 +03:00
Spencer Ofwiti 21444304c6 Refactor outgoing metadata to reflect schema. 2021-04-27 20:16:12 +03:00
Spencer Ofwiti cb14b9b5dc Add validation for vcard. 2021-04-27 17:10:50 +03:00
Spencer Ofwiti 63f0fe3070 Add external dashboard to homepage. 2021-04-27 16:45:40 +03:00
Spencer Ofwiti b3586e460b Add validation for account info coming from and going into the meta service. 2021-04-27 14:20:18 +03:00
Spencer Ofwiti 04a7e377d8 Add check for transaction. 2021-04-26 14:47:18 +03:00
Spencer Ofwiti 4030f709fc Add copy to clipboard functionality to addresses. 2021-04-26 13:14:36 +03:00
Spencer Ofwiti a2e320d923 Refactor update of data on meta service. 2021-04-25 13:32:23 +03:00
Spencer Ofwiti affffa8ffe Add search by phone number functionality. 2021-04-24 22:21:15 +03:00
Spencer Ofwiti a8ad7c64e4 Change token contract abi. 2021-04-21 08:44:32 +03:00
Spencer Ofwiti 1223ccc48e Retire internal registry class. 2021-04-20 11:28:40 +03:00
Spencer Ofwiti 23b213e319 Merge branch 'master' into spencer/accounts-search 2021-04-19 15:36:21 +03:00
Spencer Ofwiti 4e9103479f Merge branch 'master' into spencer/pwa
# Conflicts:
#	angular.json
#	package.json
2021-04-19 15:31:42 +03:00
Blair Vanderlugt 66bc013bdc add dev env 2021-04-17 15:06:09 -07:00
Spencer Ofwiti 5f271227bc Merge branch 'master' into spencer/accounts-search 2021-04-17 11:50:54 +03:00
Blair Vanderlugt 8395946024 prod configs 2021-04-12 13:36:35 -07:00
Blair Vanderlugt 9a9b59513e updated pub key ep 2021-04-12 10:50:35 -07:00
Blair Vanderlugt d5dafbeb7d defaults for dev + wss for prod 2021-04-12 07:53:12 -07:00
Spencer Ofwiti 5a6546550b Refactor css scripts to best practice. 2021-04-12 11:24:22 +03:00
Blair Vanderlugt b98818f0d5 defaults for prod 2021-04-11 20:32:24 -07:00
Spencer Ofwiti 9a87e5af04 Connect account address search to meta service. 2021-04-08 15:16:00 +03:00
Spencer Ofwiti 62655a691a Add search form for name, phonenumber and account address. 2021-04-07 12:24:32 +03:00
Spencer Ofwiti 4d64a57591 Handle parsing of empty arrays. 2021-04-07 10:25:41 +03:00
Spencer Ofwiti a50bc2f50a Add network status component.
- Tracks status uof user's network connection.
2021-04-06 10:32:52 +03:00
Spencer Ofwiti 4006369793 Refactor css styles. 2021-04-02 16:16:21 +03:00
Spencer Ofwiti 0aa1b83ed2 Add tracking of user's network connectivity. 2021-04-02 15:31:10 +03:00
Spencer Ofwiti 08be01043a Add accounts search page. 2021-04-02 12:50:52 +03:00
Spencer Ofwiti d914f6b2b8 Merge branch 'master' into spencer/pwa
# Conflicts:
#	package-lock.json
#	src/app/app.component.ts
#	src/index.html
2021-03-31 09:54:35 +03:00
Spencer Ofwiti dcbadf526b Merge branch 'master' into bvander/integration-progress 2021-03-28 13:26:06 +03:00
Spencer Ofwiti 16d476a2aa Bug fix. 2021-03-28 13:21:54 +03:00
Spencer Ofwiti 25fd616ff7 Add user logout. 2021-03-24 19:41:11 +03:00
Spencer Ofwiti f115b5dae6 Add export data to csv functionality. 2021-03-24 16:26:51 +03:00
Spencer Ofwiti 0bfaef30d2 Add confirmation dialogs for data manipulation actions. 2021-03-24 12:42:19 +03:00
Spencer Ofwiti 02ef0b3587 Add refresh ppaginator method. 2021-03-24 12:01:35 +03:00
Spencer Ofwiti 6896ba0f88 Clear environments file. 2021-03-24 11:00:43 +03:00
Spencer Ofwiti bfc6d63090 Refactor environment variable names. 2021-03-24 10:43:07 +03:00
Spencer Ofwiti c864f3a787 Add progressive web app support. 2021-03-22 22:13:11 +03:00
Spencer Ofwiti 4bfce9eff7 Refactor error interceptor. 2021-03-22 16:56:34 +03:00
Spencer Ofwiti aceccedf5e Bug fix.
- Add handling of errors from getPublicKeys function.
- Check if added private keys are encrypted.
2021-03-21 22:05:00 +03:00
Spencer Ofwiti 8c2b659360 Bug fix.
- Handle error for incorrect passphrase entry.
2021-03-21 19:27:54 +03:00
Spencer Ofwiti f12e69b5df Move error handler to error interceptor. 2021-03-21 16:11:05 +03:00
Spencer Ofwiti 0ce75b2951 Scrap HttpWrapperService. 2021-03-21 14:02:18 +03:00
Blair Vanderlugt 8e26628092 private key loading error handling 2021-03-20 19:23:50 -07:00
Blair Vanderlugt c2d8290c42 riffin 2021-03-19 09:05:15 -07:00
Spencer Ofwiti 71834deadc Add transfer request to transaction reversal.
- Inverts sender and recipient addresses creating a request for transfer from recipient to sender.
2021-03-19 17:40:45 +03:00
Spencer Ofwiti ec2d5321ba Add cofiguration of environment variables using .env. 2021-03-18 20:02:25 +03:00
Spencer Ofwiti 6e4c632283 Merge branch 'master' into spencer/refactor-environments
# Conflicts:
#	src/app/_services/auth.service.ts
2021-03-18 19:31:22 +03:00
Spencer Ofwiti 9ec50e9c1a Switch to async/await schema for all asynchronous function calls. 2021-03-18 12:10:55 +03:00
Spencer Ofwiti 68ff291dd2 Add setting environment variables using commandline arguments. 2021-03-17 16:39:33 +03:00
Spencer Ofwiti 6dc44be4eb Add list of users from public keys. 2021-03-16 20:13:48 +03:00
Spencer Ofwiti 12685b32f4 Fix web3Provider url. 2021-03-16 18:42:04 +03:00
Spencer Ofwiti 124a6bf295 Refactor environment variables. 2021-03-16 18:32:26 +03:00
Spencer Ofwiti 12f4d328bf Refactor auth module.
- Switch from form to text field for passphrase input.
- Refactor error dialog format.
- Send dialog on incorrect parsing of private key.
- Refactor block sync service to take parameters.
2021-03-16 13:08:18 +03:00
Spencer Ofwiti 9fa9852ded Refactor config variables. 2021-03-15 19:26:53 +03:00
Spencer Ofwiti 37a6f24201 Refactor table layouts. 2021-03-15 14:58:18 +03:00
Spencer Ofwiti d76a0b3196 Add error dialog box.
- Add service for handling creation of error dialog.
- Refactor directory layout.
2021-03-15 14:54:46 +03:00
Spencer Ofwiti 3eaa56e0b9 Add missing imports. 2021-03-15 08:57:47 +03:00
Spencer Ofwiti bf9295740d Refactor getPublicKeys method. 2021-03-15 08:56:38 +03:00
Spencer Ofwiti f3c14578da Remove circular dependency. 2021-03-15 08:53:33 +03:00
Spencer Ofwiti 3fc21c25ae Add logging environment variables. 2021-03-14 11:25:38 +03:00
Spencer Ofwiti 9644d43682 Add change detection strategy.
- Change to onPush change detection strategy.
- Refactor logging provider.
2021-03-14 11:23:20 +03:00
Spencer Ofwiti cf4685ce4a Add additional account properties. 2021-03-14 11:20:48 +03:00
Spencer Ofwiti 8af6b251b9 Refactor requests to utilize http wrapper service. 2021-03-14 11:19:25 +03:00
Spencer Ofwiti 6621f9fc42 Add custom http methods wrapper.
- Logs response and duration of request.
2021-03-14 11:17:27 +03:00
Spencer Ofwiti c96ebec1d2 Add global error handler and logging interceptor.
- Global error handler allows catching errors and parsing them to appropriate logging handler.
- Logging interceptor allows logging of request information and status.
2021-03-14 11:13:51 +03:00
Spencer Ofwiti d7dcece7fe Add logging service.
- Implements custom logging functionality.
2021-03-14 11:11:37 +03:00
Spencer Ofwiti 32ab27730b Add fetching of transaction participants from cic-meta.
Add token registry to query tokens.
2021-03-10 12:47:01 +03:00
Spencer Ofwiti 7447bf2499 Add cic registry class for querying resource information on the network. 2021-03-06 09:28:29 +03:00
Spencer Ofwiti 2b99dd8c62 Query transaction participants from meta service. 2021-03-04 18:56:14 +03:00
Spencer Ofwiti 70fe7cf08e Add handling for responsive sidebar content. 2021-03-04 12:35:20 +03:00
Spencer Ofwiti 0fb597efdd Add scalability to sidebar logo. 2021-03-04 12:00:49 +03:00
Spencer Ofwiti d9990a2760 Add method for sending transfer requests. 2021-03-03 16:43:33 +03:00
Spencer Ofwiti 0d7f4aae13 Add account object interface.
Add new vcard parser.
2021-03-02 10:29:14 +03:00
Spencer Ofwiti 2491dc54a0 Populate accounts list with accounts from the network. 2021-03-01 11:12:49 +03:00
Spencer Ofwiti fbdfa54d9b Bug fix.
- Refactor HttpGetter function.
- Remove redundant asset files.
- Fix BlockSync dependency issues.
2021-02-25 13:46:24 +03:00
Spencer Ofwiti 857994fe8b Blockchain syncing.
- Implement tracker for new accounts in the accounts index contract.
- Implement tracker for new blocks on Bloxberg network.
2021-02-24 18:09:50 +03:00
Spencer Ofwiti 2e4ee03ec6 Change referrer field from name to phone number. 2021-02-23 18:26:27 +03:00
Spencer Ofwiti ef1999dc0d Fetch data from cic meta and patch to user details. 2021-02-23 15:32:02 +03:00
Spencer Ofwiti 3286c1df82 Add auth guard connection for dashboard routes. 2021-02-17 21:22:06 +03:00
Spencer Ofwiti 0e07e4ccdc Add path shortcuts to all paths in the system. 2021-02-17 15:49:04 +03:00
Spencer Ofwiti 63c5a63d81 Merge branch 'master' into spencer/transaction-list
# Conflicts:
#	README.md
#	angular.json
#	package-lock.json
#	package.json
#	src/app/_helpers/custom-error-state-matcher.spec.ts
#	src/app/_helpers/index.ts
#	src/app/_services/index.ts
#	src/app/app-routing.module.ts
#	src/app/app.component.html
#	src/app/app.component.spec.ts
#	src/app/app.component.ts
#	src/app/app.module.ts
#	src/environments/environment.prod.ts
#	src/environments/environment.ts
#	src/index.html
#	src/styles.scss
2021-02-17 14:52:42 +03:00
Spencer Ofwiti c2f257e221 Bug fix.
- Remove unsafe keystore.
- Refactor functionality from unsafe keystore into mutable keystore.
2021-02-17 14:13:08 +03:00
Spencer Ofwiti 7165031fc8 Add pgp signer. 2021-02-17 13:00:38 +03:00
Spencer Ofwiti 458155dc1c Remove stale function. 2021-02-17 08:00:28 +03:00
Spencer Ofwiti a6a602938e Add method for removing keys from keyring. 2021-02-16 16:30:02 +03:00
Spencer Ofwiti 1718ae01ba Refactor MutableKeyStore interface. 2021-02-16 16:18:41 +03:00
Spencer Ofwiti 9d2fdd687b Add connection to cic-meta. 2021-02-16 11:04:22 +03:00
Spencer Ofwiti e6379aa2ef Remove stale component declaration. 2021-02-16 10:15:36 +03:00
Spencer Ofwiti 8558ec9e13 Add method for loading public keys into keyring. 2021-02-16 10:10:52 +03:00
Spencer Ofwiti c0381a170e Add support for absolute path import shortcuts. 2021-02-14 19:02:35 +03:00
Spencer Ofwiti 0be8bcd51a Bug fixes.
- Change environment variables.
- Refactor http getter.
- Add custom error state matcher.
- Hide create account component.
2021-02-12 09:32:08 +03:00
Spencer Ofwiti 8dc0eb24d8 Bug fix. 2021-02-09 11:32:37 +03:00
Spencer Ofwiti 94d2976e6c Completed form handling. 2021-02-08 14:47:07 +03:00
Spencer Ofwiti e372921439 Bug fix. 2021-02-06 17:08:37 +03:00
Spencer Ofwiti 81c6b05a42 Move auth component files. 2021-02-03 13:52:31 +03:00
Spencer Ofwiti f966a24014 Add session token to session storage. 2021-01-18 16:04:16 +03:00
Spencer Ofwiti a9fcf35a54 Add switching between key input and passphrase input. 2021-01-15 07:58:39 +03:00
Spencer Ofwiti 4d920cdbe9 Add support for account index. 2021-01-15 07:30:19 +03:00
Spencer Ofwiti f95841cc06 App changes. 2020-12-28 12:12:37 +03:00
Spencer Ofwiti 65f3dae4b1 Add auth module. 2020-12-28 12:11:25 +03:00
Spencer Ofwiti 414b9eb215 Add supporting javascript files for pgp and hoba. 2020-12-28 12:09:56 +03:00
Spencer Ofwiti 6b1e930b2b Add authentication service. 2020-12-28 12:09:11 +03:00
Spencer Ofwiti 8636cbdf99 Add helper classes.
- Add error state matcher for forms.
- Add custom validator for forms.
- Add error interceptor for incoming responses.
- Add unsafe key store for holding private keys.
2020-12-28 12:06:30 +03:00
Spencer Ofwiti 2f8806b8ce Add authentication and role access guards. 2020-12-28 12:05:33 +03:00
Spencer Ofwiti 02bed9d124 Add password toggle directive. 2020-12-28 12:04:47 +03:00
Spencer Ofwiti f7f4fe77f6 Modify components to use behaviour subject. 2020-12-05 09:30:30 +03:00
Spencer Ofwiti 142654ed6d Add mock backend. 2020-12-05 09:29:59 +03:00
Spencer Ofwiti 156fa4067f Cleanup services to use mock backend. 2020-12-05 09:29:18 +03:00
Spencer Ofwiti bff58f7a43 Add pipe for converting token values to Wei standards. 2020-12-05 09:28:40 +03:00
Spencer Ofwiti 933d73e635 Add listerers for tracking new transactions. 2020-11-25 11:05:13 +03:00
Spencer Ofwiti fb63c5d504 Add dashboard. 2020-11-25 11:04:41 +03:00
Spencer Ofwiti f34894e80a Add user metadata details. 2020-11-25 11:00:53 +03:00
Spencer Ofwiti b20c6f21fb Add token list and details page. 2020-11-25 11:00:20 +03:00
Spencer Ofwiti 4ee55c2bc0 Add user settings page. 2020-11-25 10:59:48 +03:00
Spencer Ofwiti 588fd4817d Add admin approval page. 2020-11-25 10:58:14 +03:00
Spencer Ofwiti b38ca7cc46 Add accounts listings and details. 2020-11-25 10:57:17 +03:00
Spencer Ofwiti 9836476c3a Add material design datatables to transaction list. 2020-11-25 10:55:27 +03:00
Spencer Ofwiti db4d713532 Add test fixtures. 2020-11-25 10:54:00 +03:00
Spencer Ofwiti f228a9866b Add services.
- Add block sync service.
- Add mock token service.
- Add mock user service.
- Add user info to transactions.
2020-11-25 10:51:15 +03:00
Spencer Ofwiti 9d6217558c Add user and transaction models. 2020-11-25 10:17:37 +03:00
Spencer Ofwiti d448083cec Add links to sidebar. 2020-11-25 10:11:20 +03:00
Spencer Ofwiti 233eb9525a Add CIC logo to favicon. 2020-11-25 10:09:15 +03:00
Spencer Ofwiti 2ac665da0e Add environment variables. 2020-11-25 10:07:58 +03:00
Spencer Ofwiti 77c4c744ca Add asset files.
- Add system images.
- Made changes to js files.
2020-11-25 10:01:47 +03:00
Spencer Ofwiti ca9ca61ae1 Add block-sync to application. 2020-11-08 09:31:52 +03:00