Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1142 commits
Select commit Hold shift + click to select a range
1379ece
Fix test workflows
mesudip May 21, 2024
39bc9ff
Ignore mock wallets
NabinKawan May 21, 2024
94ef16a
Provide write permission to mock folder
NabinKawan May 21, 2024
ac7015e
Fix backend workflow variables
mesudip May 21, 2024
526021c
Add manual trigger lighthouse workflow trigger
mesudip May 21, 2024
784023e
Merge pull request #1062 from IntersectMBO/chore/fix-workflows
mesudip May 21, 2024
e27b880
Merge pull request #1063 from IntersectMBO/fix/static-wallets
NabinKawan May 21, 2024
f9456bc
[#1035] Bump cardano-node and cardano dbsync
placek May 21, 2024
b9de80e
Update Readme add SonarCloud metrics
mesudip May 22, 2024
fc99ee9
Add DRep details page
NabinKawan May 20, 2024
dcc4b25
test: Share DRep details
NabinKawan May 20, 2024
bc92aa1
test: DRep status and voting power on DRep card
NabinKawan May 21, 2024
06dfd7d
Add setup for dRep02 wallet
NabinKawan May 21, 2024
eaeac32
test: Multiple delegation
NabinKawan May 21, 2024
0488dbe
test: Retire as Direct voter on another delegation
NabinKawan May 21, 2024
68c3d01
test: Insufficient funds delegation
NabinKawan May 21, 2024
e5e9325
Add DRep dependencies for test `2R`
NabinKawan May 21, 2024
aa35f14
test: Automatic delegation
NabinKawan May 22, 2024
e113047
Add auth setup for adaHolder03, adaHolder04 wallets
NabinKawan May 22, 2024
60a595c
Increase number of wallet generation
NabinKawan May 22, 2024
05daa02
test: DRep voting power
NabinKawan May 22, 2024
9b959bc
test: Government action proposal submissions
kneerose May 21, 2024
d77b7c9
Merge pull request #1068 from IntersectMBO/tests/drep-directory
NabinKawan May 22, 2024
607d9ea
Merge pull request #1069 from IntersectMBO/tests/proposal-submission
NabinKawan May 22, 2024
b8d344c
fix: ensure directory creation with mkdir -p
NabinKawan May 22, 2024
52ec2df
Merge pull request #1072 from IntersectMBO/fix/ensure-mock-directory-…
NabinKawan May 22, 2024
259f09f
Merge pull request #1064 from IntersectMBO/chore/1035-bump-cardano-no…
placek May 22, 2024
33af884
fix: Default cardano_api_metadata host url
NabinKawan May 22, 2024
ee9f104
Merge pull request #1074 from IntersectMBO/fix/upload-metadata
mesudip May 23, 2024
0cff3e2
add missing test ids into create gov action
Sworzen1 May 23, 2024
bc74747
fix lint
Sworzen1 May 23, 2024
7a3adc6
add missing ids for drep directory and drep forms
Sworzen1 May 23, 2024
fe7a538
fx lint
Sworzen1 May 23, 2024
fa49120
fix input test id
Sworzen1 May 23, 2024
b49908b
fix input test id
Sworzen1 May 23, 2024
3647417
[#1073] fix proposal/list 500 error on HardFork proposal
jankun4 May 26, 2024
4c652cd
Merge pull request #1082 from IntersectMBO/chore/1050-bug-missing-tes…
Sworzen1 May 27, 2024
93c3969
Merge pull request #1080 from IntersectMBO/chore/1070-bug-missing-tes…
Sworzen1 May 27, 2024
3b7c2b1
add posibility to copy address from Treasury GA
Sworzen1 May 27, 2024
2fd2bf0
fix lint
Sworzen1 May 27, 2024
549450c
change myDrep chips description
Sworzen1 May 27, 2024
777be80
change register as direct voter card description
Sworzen1 May 27, 2024
7c74c3a
change direct voter card description
Sworzen1 May 27, 2024
bd2fd63
block delegation card when iam direct voter
Sworzen1 May 27, 2024
0d81cd9
delete consolelog
Sworzen1 May 27, 2024
0aa864c
Remove `2F. change delegation` test dependency with 2A
NabinKawan May 23, 2024
83e48c4
refactor: Move 'DRep register and delegation' to beforeAll
NabinKawan May 23, 2024
812dabd
fix: Make 2I and 2J tests dRep dependent
NabinKawan May 23, 2024
e8c2c40
fix: Test 3F_ DRep_registration request
NabinKawan May 23, 2024
f33ec25
test: Update DRep data
NabinKawan May 23, 2024
2900ff5
Verify voting power in DRep retired state
NabinKawan May 23, 2024
8d9ffee
fix: Test 3L_Invalid_url
kneerose May 24, 2024
1ff8cf6
fix: Test 2A and 2F timeout issue
kneerose May 24, 2024
f72befe
Handle waitForTXConfirmation with a try-catch block.
kneerose May 24, 2024
dfdfe8a
Remove the balance check from the fund faucet wallet
kneerose May 24, 2024
d5276ed
Add the missing allure story categorized.
kneerose May 24, 2024
3516142
Add adaHolder for multiple delegation
kneerose May 24, 2024
033efc6
Remove logged in project for mobile
kneerose May 24, 2024
5d4f83e
Change test 1D reject wallet connection logic
kneerose May 24, 2024
ac0f08f
Remove unwanted tests (6B and 6D)
NabinKawan May 24, 2024
649159e
fix: Test 4F_ DRep functionality on governance_actions page
NabinKawan May 24, 2024
dca8a4e
Mark test 3E_DRep form validation as slow
NabinKawan May 24, 2024
ac2ccfd
Remove tests walletConnect and proposalSubmissionVisibility from mobile
NabinKawan May 24, 2024
3986402
Upload lock logs to artifact
NabinKawan May 24, 2024
efa3562
Refactor: Replace DRep automatic delegations with AdaHolder
NabinKawan May 24, 2024
f574f81
Add walletManager & Refactor lockInterceptor
NabinKawan May 27, 2024
49d34a6
Optimize test to reduce execution time
NabinKawan May 27, 2024
3ddfbab
Move faucet setup into global setup
NabinKawan May 28, 2024
0cb9e04
Create Adaholder 05 auth for multiple delegation
kneerose May 28, 2024
8004452
Refactor test 2C, 2S and 3H
kneerose May 28, 2024
9933bf0
test: Add check vote count
kneerose May 28, 2024
ad0abcb
fix: Flaky tests (proposal visibility)
NabinKawan May 28, 2024
20c4174
fix: Environments and path issue
NabinKawan May 28, 2024
31dcc05
Merge pull request #1094 from IntersectMBO/1073-bug-internal-server-e…
MSzalowski May 28, 2024
53e9a4c
Merge pull request #1067 from IntersectMBO/chore/code-quality-metrics
mesudip May 28, 2024
d9877c3
Merge pull request #1101 from IntersectMBO/fix/1095-do-not-display-di…
Sworzen1 May 28, 2024
c8d0120
Merge pull request #1100 from IntersectMBO/fix/911-registed-as-a-drep…
Sworzen1 May 28, 2024
e27c2f6
Merge pull request #1098 from IntersectMBO/fix/987-my-drep-detail-pag…
Sworzen1 May 28, 2024
75219d3
Merge pull request #1096 from IntersectMBO/fix/649-design-bug-payment…
Sworzen1 May 28, 2024
a4c9986
Register static DReps in single tx
NabinKawan May 28, 2024
011b95b
Handle proper error for delegation & stake registration
NabinKawan May 29, 2024
7010b0f
Merge pull request #1103 from IntersectMBO/fix/integration-tests
NabinKawan May 29, 2024
3ecb8a9
change drep-name-input on name-input
Sworzen1 May 29, 2024
6d0a0c8
fix handle error on GA creation
Sworzen1 May 29, 2024
34ce850
Merge pull request #1105 from IntersectMBO/fix/missing-test-ids
Sworzen1 May 29, 2024
3aefa67
Merge pull request #1110 from IntersectMBO/fix/create-governance-acti…
Sworzen1 May 29, 2024
96e762f
fix: fix error handling for metadata service; add optional support fo…
MSzalowski May 29, 2024
5ad1a80
Merge pull request #1113 from IntersectMBO/fix/fix-error-handling-for…
MSzalowski May 29, 2024
8eca432
replace metadata validation service
Sworzen1 May 29, 2024
b88aa2f
delete unnecessary util
Sworzen1 May 29, 2024
53e645c
Add retries and assertion for continue-button
NabinKawan May 29, 2024
c7c0d87
frontend: add nginx webserver
disassembler Apr 20, 2024
8ae95fb
backend: use nix-inclusive to prevent unnecessary rebuilds
disassembler Apr 20, 2024
5bca641
fix GA story
Sworzen1 May 31, 2024
13db99e
fix type
Sworzen1 May 31, 2024
103f040
fix Voted GAs
Sworzen1 May 31, 2024
bdd71eb
Merge pull request #1115 from IntersectMBO/bugfix/tests-2E-2S
NabinKawan May 31, 2024
bb14ce8
take GA metadata from metadataStatus
Sworzen1 May 31, 2024
4d71567
delete unnecessary new line in test ids
Sworzen1 Jun 3, 2024
aaced8b
Merge pull request #1147 from IntersectMBO/fix/new-line-in-test-ids
Sworzen1 Jun 3, 2024
2d98ec4
change name of const
Sworzen1 Jun 4, 2024
0ceb452
add translations for insufficient balance error modal
Sworzen1 Jun 4, 2024
60a80b7
display modal on click propose GA on dashboard
Sworzen1 Jun 4, 2024
9dbf90f
display modal on submit GA
Sworzen1 Jun 4, 2024
cd02e38
change way to handle is delegation process
Sworzen1 Jun 4, 2024
5490f3f
add is delegation for drep card
Sworzen1 Jun 4, 2024
f71d900
change way to handle is delegation process for automated voting options
Sworzen1 Jun 4, 2024
414dc45
change props hierarchy in Button component
Sworzen1 Jun 4, 2024
9aff427
add change for drep details
Sworzen1 Jun 4, 2024
404c54d
fix drep card is loading
Sworzen1 Jun 4, 2024
3a1302a
add bio for drep registration
Sworzen1 Jun 4, 2024
e4e2a99
Align dRep directory tests with cardano-test-plans
NabinKawan May 31, 2024
b74a075
Align drepRegistration and governance action tests with cardano-test-…
kneerose May 31, 2024
aa7dccd
chore: Skip test 4J, and Rename 4D to 4C.3
NabinKawan Jun 5, 2024
eeb2244
chore: Fix typo and Rename variables
NabinKawan Jun 5, 2024
97fc12d
Merge pull request #1165 from IntersectMBO/refactor/tests-to-use-card…
NabinKawan Jun 5, 2024
88cfa50
Enhance flexibility for local development
NabinKawan Jun 3, 2024
c2b3c7e
chore: Rename variables (temp. wallets count)
NabinKawan Jun 5, 2024
bd9ce30
Merge pull request #1166 from IntersectMBO/enhancement/local-development
NabinKawan Jun 5, 2024
45515ac
fix: External URL checks by mocking proposals
NabinKawan Jun 3, 2024
862c91f
chore: Remove unwanted log message
NabinKawan Jun 5, 2024
024a140
Merge pull request #1167 from IntersectMBO/fix/external-url-checks
NabinKawan Jun 5, 2024
d0f5f06
test: Remove test 4I as it cannot be performed on integration testing
kneerose Jun 3, 2024
ece88e4
fix: Flaky test 5E , 5I
kneerose Jun 3, 2024
a394f41
fix: delegation failed test
kneerose Jun 3, 2024
789d51b
fix: DRep registration and proposal visibility test
kneerose Jun 3, 2024
eba31c2
fix:Missing balance issue
kneerose Jun 4, 2024
25c6ed9
Merge pull request #1168 from IntersectMBO/fix/flaky-tests
NabinKawan Jun 5, 2024
fe3de32
test: Validate review submission
kneerose May 30, 2024
66ccd18
test: Proposal submission
kneerose May 31, 2024
dcbc5e8
Refactor: Remove 'test.slow' and add comment explaining using test.slow
kneerose May 31, 2024
3cf4557
Merge pull request #1116 from IntersectMBO/complete-proposal-submissi…
NabinKawan Jun 5, 2024
24688d6
feat: integrate pdf-ui package into govtool
MSzalowski May 29, 2024
949739c
chore: change working directory
MSzalowski Jun 5, 2024
88ae898
chore: add working directory as artifact
MSzalowski Jun 5, 2024
6c1e85b
chore: add npmrc to every job
MSzalowski Jun 5, 2024
1a9c455
fix references body data
Sworzen1 Jun 5, 2024
24d8594
chore: increase max old space size for test job
MSzalowski Jun 5, 2024
5c20403
change test for generate metadata
Sworzen1 Jun 5, 2024
d0bbb84
delete console log
Sworzen1 Jun 5, 2024
d435efe
Merge pull request #1164 from IntersectMBO/fix/test-ids
Sworzen1 Jun 5, 2024
26e868f
Merge pull request #1161 from IntersectMBO/fix/1079-bug-multiple-wall…
Sworzen1 Jun 5, 2024
e1f9da6
Merge pull request #1159 from IntersectMBO/fix/1078-bug-abstain-and-s…
Sworzen1 Jun 5, 2024
502141c
Merge pull request #1156 from IntersectMBO/fix/509-ga-submit-where-th…
Sworzen1 Jun 5, 2024
213df3c
Merge pull request #1146 from IntersectMBO/feat/1090-integrate-pdf-in…
MSzalowski Jun 5, 2024
d475828
Merge pull request #1170 from IntersectMBO/fix/1169-wrong-references-…
Sworzen1 Jun 5, 2024
ff54750
test: Delegated ADA display to DRep
NabinKawan May 22, 2024
e9b71e6
test: Add test 4L and 4M
kneerose Jun 5, 2024
0639c5f
test: Add provide context validation test 5D
kneerose Jun 3, 2024
5843181
test: Validate metadata anchor
NabinKawan Jun 5, 2024
4840021
test: Validate dRep metadata anchor
NabinKawan Jun 5, 2024
e8eb67c
test: Edit dRep form validations
NabinKawan Jun 5, 2024
0c19484
test: DRep registration metadata validation
NabinKawan Jun 5, 2024
397d412
test: Edit dRep metadata validation
NabinKawan Jun 5, 2024
cd1c7f9
fix: Validate dRep metadata anchor
NabinKawan Jun 5, 2024
08be1e1
fix: 2W. Visibility delegated ADA to DRep
NabinKawan Jun 5, 2024
96c3a00
test: verify info and voting power of abstain and signal-no-confidence
kneerose Jun 5, 2024
1e4d381
test: Proposal submission form and Metadata validation
kneerose Jun 5, 2024
a5c608c
fix: 2W. Wallet overlapping
NabinKawan Jun 5, 2024
beab827
chore: Allure report visibility for edit_dRep and proposalSubmission …
NabinKawan Jun 5, 2024
f27ce68
fix: Resolve Wallet Popup Timeout Issue
NabinKawan Jun 5, 2024
b32a05c
[#262] Add missing documentation about deployment of additional services
placek May 8, 2024
52e61ef
[#262] Add an overview of the infrastructure in the documentation
placek May 8, 2024
3798dca
[#1142] fetch metadata from metadata-validation-service
jankun4 Jun 6, 2024
3dd4f4d
Merge pull request #1077 from IntersectMBO/extended/tests
NabinKawan Jun 6, 2024
f8741fe
docs: create outline of the architecture documentation
MSzalowski May 6, 2024
3e0f4b9
Merge branch 'fix/1111-replace-metadata-validation-service-with-api' …
Sworzen1 Jun 6, 2024
274f40a
change types
Sworzen1 Jun 6, 2024
40e05a9
fix util and test
Sworzen1 Jun 6, 2024
81d8e8d
change types in hooks
Sworzen1 Jun 6, 2024
0d23677
adjust screens and components
Sworzen1 Jun 6, 2024
5e9b603
feat: update maintenance page title&description
MSzalowski Jun 6, 2024
cffdf4d
chore: set usersnap api key on dockerfile
MSzalowski Jun 6, 2024
8cb2a08
Merge pull request #1185 from IntersectMBO/feat/update-maintenance-pa…
Sworzen1 Jun 6, 2024
a88e6bf
Merge pull request #1186 from IntersectMBO/chore/set-usersnap-space-a…
MSzalowski Jun 6, 2024
8130f4a
improvement
Sworzen1 Jun 6, 2024
4beb408
[#1142] fetch metadata from metadata-validation-service
jankun4 Jun 6, 2024
3bca876
replace metadata validation service
Sworzen1 May 29, 2024
7d5c34b
delete unnecessary util
Sworzen1 May 29, 2024
aa909de
fix GA story
Sworzen1 May 31, 2024
33fe682
fix type
Sworzen1 May 31, 2024
27dfc74
fix Voted GAs
Sworzen1 May 31, 2024
315c323
take GA metadata from metadataStatus
Sworzen1 May 31, 2024
69c08cf
change types
Sworzen1 Jun 6, 2024
0228dfc
fix util and test
Sworzen1 Jun 6, 2024
ea19bdd
change types in hooks
Sworzen1 Jun 6, 2024
53f675a
adjust screens and components
Sworzen1 Jun 6, 2024
2bef202
improvement
Sworzen1 Jun 6, 2024
30286d8
chore: fix tsc errors
MSzalowski Jun 6, 2024
122cf03
Merge branch '1142-metadata-validation-problems' of https://github.co…
Sworzen1 Jun 6, 2024
0fc2519
fix: metadata validation
MSzalowski Jun 6, 2024
99eeed3
Merge pull request #1189 from IntersectMBO/fix/1178-ga-submitting-pro…
MSzalowski Jun 6, 2024
a7227a6
Merge branch '1142-metadata-validation-problems' of https://github.co…
Sworzen1 Jun 6, 2024
3f7fc60
chore: disable pdf for the envs other than develop
MSzalowski Jun 6, 2024
9d6c886
fix: fix metadata references validation
MSzalowski Jun 6, 2024
ecaff7e
Merge branch '1142-metadata-validation-problems' of https://github.co…
Sworzen1 Jun 6, 2024
d07225a
Merge pull request #1190 from IntersectMBO/chore/blacklist-pdf-pillar…
MSzalowski Jun 6, 2024
df2384d
change drep types
Sworzen1 Jun 6, 2024
3735872
add translations
Sworzen1 Jun 6, 2024
a4861d3
change component name for reuse
Sworzen1 Jun 6, 2024
8d9e7b1
improve components
Sworzen1 Jun 6, 2024
ac76edc
adjust drep directory
Sworzen1 Jun 6, 2024
8efc99a
adjust drep test
Sworzen1 Jun 6, 2024
58babd1
adjust edit drep
Sworzen1 Jun 6, 2024
be8548b
fix ga metadata status translation test
Sworzen1 Jun 7, 2024
204ae85
Merge pull request #1143 from IntersectMBO/1142-metadata-validation-p…
MSzalowski Jun 7, 2024
0d98ced
fix: fix missing margin in drep details about section
MSzalowski Jun 7, 2024
85998b9
delete delegation for direct voter
Sworzen1 Jun 7, 2024
73d39bc
[#1195] Remove unnecessary deployment config dependancy
placek Jun 7, 2024
39f7663
Merge pull request #1191 from IntersectMBO/fix/direct-voter-delegatio…
Sworzen1 Jun 7, 2024
e7310e9
fix: fix vote context metadata creation
MSzalowski Jun 7, 2024
47b10cc
Merge pull request #1194 from IntersectMBO/fix/missing-margin-in-abou…
MSzalowski Jun 7, 2024
adfdb74
Merge pull request #1196 from IntersectMBO/fix/1195-troubleshooting-f…
MSzalowski Jun 7, 2024
b339d8d
Merge pull request #1198 from IntersectMBO/fix/1142-metadata-creation
MSzalowski Jun 7, 2024
0a369ee
chore: add proposal discussion forum feature flag
MSzalowski Jun 7, 2024
378aa25
Merge pull request #1200 from IntersectMBO/chore/add-proposal-discuss…
MSzalowski Jun 7, 2024
dddf6ea
chore: add missing variable to frontend make file
MSzalowski Jun 7, 2024
90b7999
Merge pull request #1201 from IntersectMBO/chore/add-proposal-discuss…
MSzalowski Jun 7, 2024
e43a5f8
chore: add missing arg in dockerfile
MSzalowski Jun 7, 2024
dde0653
Merge pull request #1202 from IntersectMBO/chore/add-proposal-discuss…
MSzalowski Jun 7, 2024
6cf68c6
chore: bump pdf-ui package
MSzalowski Jun 7, 2024
0af418d
Merge pull request #955 from IntersectMBO/docs/262-govtool-architectu…
MSzalowski Jun 7, 2024
34c4c2e
Merge pull request #1203 from IntersectMBO/chore/bump-pdf-ui-package-…
MSzalowski Jun 7, 2024
5eaa750
fix: fix unbound arg in frontend dockerfile
MSzalowski Jun 7, 2024
67883fd
Merge pull request #1204 from IntersectMBO/fix/fix-unbound-arg-for-pdf
MSzalowski Jun 7, 2024
3e841ea
Add github-workflow for running gatling tests
NabinKawan Apr 9, 2024
8dcb7d4
Cache playwright browsers
NabinKawan Apr 10, 2024
03e04d5
fix: Theme provider issue in storybook
NabinKawan Jun 10, 2024
6f7ec70
fix: ActionsBar interactions test
NabinKawan Jun 10, 2024
1e1e545
fix: test interaction loading button
NabinKawan Jun 10, 2024
d8c82df
Add interaction tests for card
NabinKawan Jun 10, 2024
1f847ad
Add interaction tests for checkbox
NabinKawan Jun 10, 2024
3f1369c
chore: Update DashboardTopNav interaction test
NabinKawan Jun 10, 2024
750ca37
chore: Update DelegationActionRadio interaction test
NabinKawan Jun 10, 2024
f27630f
chore: Update footer interaction test
NabinKawan Jun 10, 2024
1cc9342
chore: Add interaction tests for (data-missing, format incorrect, not…
NabinKawan Jun 10, 2024
d3f11e6
test: Invalid GovernanceAction details
NabinKawan Jun 11, 2024
77adb79
chore: refactor tests for Input story and add interaction for 'helpfu…
NabinKawan Jun 11, 2024
c21c28f
test: story LinkWithIcon
NabinKawan Jun 11, 2024
f14d603
chore: test Slider component overflow
NabinKawan Jun 11, 2024
80a596f
test: story StatusPill
NabinKawan Jun 11, 2024
a95e97a
test: story Step
NabinKawan Jun 11, 2024
8cacb03
test: story TextArea
NabinKawan Jun 11, 2024
23e867e
chore: Remove home-link in TopNav story
NabinKawan Jun 11, 2024
88f5429
test: story loading modal
NabinKawan Jun 11, 2024
d42c9af
test: story Voting Power Model
NabinKawan Jun 11, 2024
1ed835d
test: story dashboard card
NabinKawan Jun 11, 2024
db4849f
chore: Increase interaction test timeout to 30 sec
NabinKawan Jun 11, 2024
ff23d08
fix: story Footer interaction (feedback-footer-button)
NabinKawan Jun 11, 2024
4f3de41
chore: Remove helps-link test from Drawer story
NabinKawan Jun 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
54 changes: 54 additions & 0 deletions .envrc.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# vim: set ft=bash
# This file is a template for the environment variables that need to be set and
# should be copied to `.envrc` and filled in with the correct values.

# target environment: dev, test, staging or beta
export ENVIRONMENT=<ENVIRONMENT>
# target AWS profile
export AWS_PROFILE=<AWS_PROFILE>
# the codename of the Cardano Network
export CARDANO_NETWORK=<CARDANO_NETWORK>
# credentials to the PostgreSQL database used by Cardano DB Sync
export DBSYNC_POSTGRES_USER=<DBSYNC_POSTGRES_USER>
export DBSYNC_POSTGRES_PASSWORD=<DBSYNC_POSTGRES_PASSWORD>
export DBSYNC_POSTGRES_DB=<DBSYNC_POSTGRES_DB>
# the Let's Encrypt email address
export TRAEFIK_LE_EMAIL=<TRAEFIK_LE_EMAIL>
# Google Tag Manager ID
export GTM_ID=<GTM_ID>
# Sentry DSN for the backend
export SENTRY_DSN_BACKEND=<SENTRY_DSN_BACKEND>
# Sentry DSN for the frontend
export SENTRY_DSN=<SENTRY_DSN>
# Sentry environment
export SENTRY_ENVIRONMENT=<SENTRY_ENVIRONMENT>
# the password for the Grafana admin user
export GRAFANA_ADMIN_PASSWORD=<GRAFANA_ADMIN_PASSWORD>
# the Slack channel to send Grafana alerts to
export GRAFANA_SLACK_RECIPIENT=<GRAFANA_SLACK_RECIPIENT>
# the OAuth token for the Slack bot
export GRAFANA_SLACK_OAUTH_TOKEN=<GRAFANA_SLACK_OAUTH_TOKEN>
# the basic auth credentials for the Nginx proxy
export NGINX_BASIC_AUTH=<NGINX_BASIC_AUTH>
# the IP addresses that bypass the basic auth
export IP_ADDRESS_BYPASSING_BASIC_AUTH1=<IP_ADDRESS_BYPASSING_BASIC_AUTH1>
export IP_ADDRESS_BYPASSING_BASIC_AUTH2=<IP_ADDRESS_BYPASSING_BASIC_AUTH2>

# the domain name for the target environment
case "$ENVIRONMENT" in
"dev")
export DOMAIN="dev-${CARDANO_NETWORK}.govtool.byron.network"
;;
"test")
export DOMAIN="test-${CARDANO_NETWORK}.govtool.byron.network"
;;
"staging")
export DOMAIN="staging.govtool.byron.network"
;;
"beta")
export DOMAIN="sanchogov.tools"
;;
*)
exit 1
;;
esac
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ assignees: ''
<!-- A description of the (reproducible) outcome. -->

## Expected behavior
<!-- A description of what you expect to happen instead. -->
<!-- A description of what you expect to happen instead. -->
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ contact_links:

- name: All issues
url: https://github.com/IntersectMBO/govtool/issues
about: Check whether your issue is not already covered here.
about: Check whether your issue is not already covered here.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_idea.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ body:
Which technical solutions, libraries or systems should be used, which
components need to change, steps how to implement this, ...
validations:
required: true
required: true
2 changes: 1 addition & 1 deletion .github/vva-be-config.json → .github/backend-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"fakedbsyncconfig" : {
"host" : "localhost",
"dbname" : "vva",
"dbname" : "govtool",
"user" : "postgres",
"password" : "MTnk8lsuMM41RgAh1y2WTAUdObsb",
"port" : 5432
Expand Down
1 change: 0 additions & 1 deletion .github/dbsync-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -987,4 +987,3 @@ FROM tx_out
LEFT JOIN block ON tx.block_id = block.id
WHERE tx_in.tx_in_id IS NULL
AND block.epoch_no IS NOT NULL;

71 changes: 71 additions & 0 deletions .github/workflows/build-and-deploy-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Build and deploy GovTool to BETA server
run-name: Deploy by @${{ github.actor }}

# That should be executed on create: tag event
on:
workflow_dispatch:

env:
ENVIRONMENT: "beta"
CARDANO_NETWORK: "sanchonet"
DOMAIN: "sanchogov.tools"

jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./scripts/govtool
env:
DBSYNC_POSTGRES_DB: "cexplorer"
DBSYNC_POSTGRES_PASSWORD: "pSa8JCpQOACMUdGb"
DBSYNC_POSTGRES_USER: "postgres"
GA_CLIENT_EMAIL: ${{ secrets.GA_CLIENT_EMAIL }}
GA_PRIVATE_KEY: ${{ secrets.GA_PRIVATE_KEY }}
GRAFANA_ADMIN_PASSWORD: ${{ secrets.GRAFANA_ADMIN_PASSWORD }}
GRAFANA_SLACK_OAUTH_TOKEN: ${{ secrets.GRAFANA_SLACK_OAUTH_TOKEN }}
GRAFANA_SLACK_RECIPIENT: ${{ secrets.GRAFANA_SLACK_RECIPIENT }}
GTM_ID: ${{ secrets.GTM_ID }}
NPMRC_TOKEN: ${{ secrets.NPMRC_TOKEN }}
IP_ADDRESS_BYPASSING_BASIC_AUTH1: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH1 }}
IP_ADDRESS_BYPASSING_BASIC_AUTH2: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH2 }}
NEXT_PUBLIC_API_URL: "https://participation.sanchogov.tools"
NEXT_PUBLIC_GA4_PROPERTY_ID: ${{ secrets.NEXT_PUBLIC_GA4_PROPERTY_ID }}
PIPELINE_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN_FRONTEND }}
SENTRY_DSN_BACKEND: ${{ secrets.SENTRY_DSN_BACKEND }}
SENTRY_IGNORE_API_RESOLUTION_ERROR: "1"
TRAEFIK_LE_EMAIL: "admin+govtool@binarapps.com"
USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
aws-access-key-id: ${{ secrets.GHA_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.GHA_AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-1

- name: Login to AWS ECR
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: eu-west-1

- name: Setup SSH agent
uses: webfactory/ssh-agent@v0.8.0
with:
ssh-private-key: ${{ secrets.GHA_SSH_PRIVATE_KEY }}

- name: Deploy app
run: |
make --debug=b all

- name: Reprovision Grafana
run: |
sleep 30 # give grafana time to start up
make --debug=b reload-grafana
81 changes: 81 additions & 0 deletions .github/workflows/build-and-deploy-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Build and deploy GovTool to DEV server
run-name: Deploy by @${{ github.actor }}

on:
workflow_dispatch:
inputs:
isProposalDiscussionForumEnabled:
description: "Enable proposal discussion forum"
required: true
type: choice
default: "disabled"
options:
- "enabled"
- "disabled"

env:
ENVIRONMENT: "dev"
CARDANO_NETWORK: "sanchonet"
DOMAIN: "dev-sanchonet.govtool.byron.network"

jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./scripts/govtool
env:
DBSYNC_POSTGRES_DB: "cexplorer"
DBSYNC_POSTGRES_PASSWORD: "pSa8JCpQOACMUdGb"
DBSYNC_POSTGRES_USER: "postgres"
GA_CLIENT_EMAIL: ${{ secrets.GA_CLIENT_EMAIL }}
GA_PRIVATE_KEY: ${{ secrets.GA_PRIVATE_KEY }}
GRAFANA_ADMIN_PASSWORD: ${{ secrets.GRAFANA_ADMIN_PASSWORD }}
GRAFANA_SLACK_OAUTH_TOKEN: ${{ secrets.GRAFANA_SLACK_OAUTH_TOKEN }}
GRAFANA_SLACK_RECIPIENT: ${{ secrets.GRAFANA_SLACK_RECIPIENT }}
GTM_ID: ${{ secrets.GTM_ID }}
NPMRC_TOKEN: ${{ secrets.NPMRC_TOKEN }}
IP_ADDRESS_BYPASSING_BASIC_AUTH1: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH1 }}
IP_ADDRESS_BYPASSING_BASIC_AUTH2: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH2 }}
NEXT_PUBLIC_API_URL: "https://participation.sanchogov.tools"
NEXT_PUBLIC_GA4_PROPERTY_ID: ${{ secrets.NEXT_PUBLIC_GA4_PROPERTY_ID }}
DEV_NGINX_BASIC_AUTH: ${{ secrets.DEV_NGINX_BASIC_AUTH }}
PIPELINE_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN_FRONTEND }}
SENTRY_DSN_BACKEND: ${{ secrets.SENTRY_DSN_BACKEND }}
SENTRY_IGNORE_API_RESOLUTION_ERROR: "1"
TRAEFIK_LE_EMAIL: "admin+govtool@binarapps.com"
USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }}
IS_PROPOSAL_DISCUSSION_FORUM_ENABLED: ${{ inputs.isProposalDiscussionForumEnabled == 'enabled' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
aws-access-key-id: ${{ secrets.GHA_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.GHA_AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-1

- name: Login to AWS ECR
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: eu-west-1

- name: Setup SSH agent
uses: webfactory/ssh-agent@v0.8.0
with:
ssh-private-key: ${{ secrets.GHA_SSH_PRIVATE_KEY }}

- name: Deploy app
run: |
make --debug=b all

- name: Reprovision Grafana
run: |
sleep 30 # give grafana time to start up
make --debug=b reload-grafana
73 changes: 73 additions & 0 deletions .github/workflows/build-and-deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Build and deploy GovTool to STAGING server
run-name: Deploy by @${{ github.actor }}

on:
push:
branches:
- staging

env:
ENVIRONMENT: "staging"
CARDANO_NETWORK: "sanchonet"
DOMAIN: "staging.govtool.byron.network"

jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./scripts/govtool
env:
DBSYNC_POSTGRES_DB: "cexplorer"
DBSYNC_POSTGRES_PASSWORD: "pSa8JCpQOACMUdGb"
DBSYNC_POSTGRES_USER: "postgres"
GA_CLIENT_EMAIL: ${{ secrets.GA_CLIENT_EMAIL }}
GA_PRIVATE_KEY: ${{ secrets.GA_PRIVATE_KEY }}
GRAFANA_ADMIN_PASSWORD: ${{ secrets.GRAFANA_ADMIN_PASSWORD }}
GRAFANA_SLACK_OAUTH_TOKEN: ${{ secrets.GRAFANA_SLACK_OAUTH_TOKEN }}
GRAFANA_SLACK_RECIPIENT: ${{ secrets.GRAFANA_SLACK_RECIPIENT }}
GTM_ID: ${{ secrets.GTM_ID }}
NPMRC_TOKEN: ${{ secrets.NPMRC_TOKEN }}
IP_ADDRESS_BYPASSING_BASIC_AUTH1: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH1 }}
IP_ADDRESS_BYPASSING_BASIC_AUTH2: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH2 }}
NEXT_PUBLIC_API_URL: "https://participation.sanchogov.tools"
NEXT_PUBLIC_GA4_PROPERTY_ID: ${{ secrets.NEXT_PUBLIC_GA4_PROPERTY_ID }}
STAGING_NGINX_BASIC_AUTH: ${{ secrets.STAGING_NGINX_BASIC_AUTH }}
PIPELINE_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN_FRONTEND }}
SENTRY_DSN_BACKEND: ${{ secrets.SENTRY_DSN_BACKEND }}
SENTRY_IGNORE_API_RESOLUTION_ERROR: "1"
TRAEFIK_LE_EMAIL: "admin+govtool@binarapps.com"
USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
aws-access-key-id: ${{ secrets.GHA_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.GHA_AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-1

- name: Login to AWS ECR
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: eu-west-1

- name: Setup SSH agent
uses: webfactory/ssh-agent@v0.8.0
with:
ssh-private-key: ${{ secrets.GHA_SSH_PRIVATE_KEY }}

- name: Deploy app
run: |
make --debug=b all

- name: Reprovision Grafana
run: |
sleep 30 # give grafana time to start up
make --debug=b reload-grafana
50 changes: 50 additions & 0 deletions .github/workflows/build-and-deploy-test-stack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build and deploy GovTool test stack
run-name: Deploy by @${{ github.actor }}

on:
push:
branches:
- test

env:
ENVIRONMENT: "test"
CARDANO_NETWORK: "sanchonet"

jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
env:
GRAFANA_ADMIN_PASSWORD: ${{ secrets.GRAFANA_ADMIN_PASSWORD }}
GRAFANA_SLACK_RECIPIENT: ${{ secrets.GRAFANA_SLACK_RECIPIENT }}
GRAFANA_SLACK_OAUTH_TOKEN: ${{ secrets.GRAFANA_SLACK_OAUTH_TOKEN }}
SENTRY_DSN_BACKEND: ${{ secrets.SENTRY_DSN_BACKEND }}
GTM_ID: ${{ secrets.GTM_ID }}
NPMRC_TOKEN: ${{ secrets.NPMRC_TOKEN }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN_FRONTEND }}
PIPELINE_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup SSH agent
uses: webfactory/ssh-agent@v0.8.0
with:
ssh-private-key: ${{ secrets.TEST_STACK_SSH_KEY }}

- name: Run Ansible playbook
uses: dawidd6/action-ansible-playbook@v2
with:
playbook: playbook.yml
directory: ./tests/test-infrastructure
key: ${{ secrets.TEST_STACK_SSH_KEY }}
inventory: |
[test_server]
${{ secrets.TEST_STACK_SERVER_IP }} ansible_user=ec2-user
options: |
--verbose
env:
GOVTOOL_TAG: ${{ github.sha }}
Loading