Skip to content
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

Release v1.0.0 #1022

Merged
merged 208 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
208 commits
Select commit Hold shift + click to select a range
2caf4e2
create donate header button
pepermao Aug 26, 2023
22efd52
- improve home header responsive design
pepermao Sep 5, 2023
55af353
solve code smell
pepermao Sep 5, 2023
4903a39
- create popover component
pepermao Sep 6, 2023
20b8688
Merge pull request #975 from AletheiaFact/highligth-sentences-being-c…
thesocialdev Sep 6, 2023
6a09b18
Merge pull request #972 from AletheiaFact/create-donate-header-button
thesocialdev Sep 6, 2023
3cf0b16
- start creating service runner websocket
pepermao Aug 12, 2023
fab9261
Test cloning the example and making the websocket connection, now it'…
pepermao Aug 18, 2023
260fb46
Update WebSocker modules
thesocialdev Aug 27, 2023
78d89c3
Fix esmodule error when running and installing npm packages
thesocialdev Aug 27, 2023
0a836fc
Fix the problem with all users accessing the same document
thesocialdev Aug 27, 2023
be26d2e
- remove unused code
pepermao Sep 5, 2023
876c9c2
- refactor and remove unused code
pepermao Sep 5, 2023
c61f4f6
- updated storybook version
pepermao Sep 6, 2023
95fdb9b
change ci name
pepermao Sep 6, 2023
276434b
fixed secrets names and gb actions yml code
pepermao Sep 6, 2023
acbc957
change the script to do not serve compodoc, only build
pepermao Sep 6, 2023
8d6490e
test
pepermao Sep 6, 2023
f4cfb34
fixed css style
pepermao Sep 6, 2023
c3cfa50
only deploy in stage branch
pepermao Sep 6, 2023
b78e777
- receive state identity from ory
pepermao Sep 7, 2023
c4da452
only run deploy on push to stage
pepermao Sep 7, 2023
f8ad1c8
Merge pull request #976 from AletheiaFact/add-shorcut-to-swagger
thesocialdev Sep 7, 2023
86cef5c
Merge pull request #977 from AletheiaFact/add-ability-to-inactivate-u…
thesocialdev Sep 7, 2023
3d51a38
Merge pull request #978 from AletheiaFact/develop
thesocialdev Sep 8, 2023
6ef87b2
Upgrade yarn to 3.6.3 and bump node to 18.14.0
thesocialdev Sep 8, 2023
3133375
Upgrade cypress from 10 to 12
thesocialdev Sep 8, 2023
95ea25b
Fix tests not connecting to mongo memory server
thesocialdev Sep 8, 2023
da75134
Fix e2e test
thesocialdev Sep 8, 2023
2724cc8
Fix eslint and ts build errors to unblock CI
thesocialdev Sep 8, 2023
7bb2a0c
Merge branch 'stage' of github.com:AletheiaFact/aletheia into create-…
thesocialdev Sep 8, 2023
27add05
Fix wait-on address due to a node 18 problem https://github.com/jeffb…
thesocialdev Sep 8, 2023
52a0ebc
Upgrade yarn to 3.6.3 and bump node to 18.14.0
thesocialdev Sep 8, 2023
faf2fc5
Upgrade cypress from 10 to 12
thesocialdev Sep 8, 2023
f026e51
Fix tests not connecting to mongo memory server
thesocialdev Sep 8, 2023
25447c3
Fix e2e test
thesocialdev Sep 8, 2023
5bbd654
Fix eslint and ts build errors to unblock CI
thesocialdev Sep 8, 2023
68255b1
Fix wait-on address due to a node 18 problem https://github.com/jeffb…
thesocialdev Sep 8, 2023
e43568b
Fix yarn test and yarn build
thesocialdev Sep 9, 2023
13cafc5
Fix wait-on address due to a node 18 problem https://github.com/jeffb…
thesocialdev Sep 8, 2023
32af8ae
Bump cypress version to 12.17.4. It fell of the cracks after cherry-p…
thesocialdev Sep 9, 2023
02c5a2e
Merge pull request #982 from AletheiaFact/upgrade-yarn-node
thesocialdev Sep 9, 2023
8f4a587
Fix Cypress Tests
thesocialdev Sep 9, 2023
ed1201b
Merge pull request #983 from AletheiaFact/fix-cypress-tests
thesocialdev Sep 9, 2023
77a5534
Merge branch 'stage' of github.com:AletheiaFact/aletheia into create-…
thesocialdev Sep 9, 2023
e7b113a
Finish websocket e2e setup and draft new deployment rules for a separ…
thesocialdev Sep 11, 2023
9cfe945
Fixed request basedUrl on searchApi
caneppelevitor Sep 12, 2023
8179407
Merge pull request #988 from AletheiaFact/search-base-url-fix
thesocialdev Sep 12, 2023
becbd7a
-Changed user schema adding totp boolean
caneppelevitor Sep 13, 2023
e5263fe
- Create Admin toolbar component
pepermao Sep 8, 2023
1083ef8
- create migration to set new property on personality schema
pepermao Sep 9, 2023
17a3c2e
Replaced Boolean wrapper object with primitive type boolean
caneppelevitor Sep 13, 2023
bae5413
- fixed description been overwritten by hideDescription
pepermao Sep 10, 2023
a37c991
Resolved review requests and fixed code smell
caneppelevitor Sep 14, 2023
85d9ca5
- make it possible to hide and delete claims
pepermao Sep 11, 2023
6e28120
- fixed transformContentObject and improve readability
pepermao Sep 11, 2023
0d88ad7
- make it possible to delete claim review
pepermao Sep 13, 2023
4d361ef
- delete unused modals
pepermao Sep 13, 2023
16555be
- create tab navigation on admin pages
pepermao Sep 13, 2023
dd8cffa
- fixed count documents
pepermao Sep 13, 2023
76ea0f0
fixed yarn build
pepermao Sep 14, 2023
1557424
fixed yarn build
pepermao Sep 14, 2023
f07d6e1
fixed code smells and code duplication
pepermao Sep 14, 2023
b2a7316
change property visible to open
pepermao Sep 14, 2023
495ff4b
Checking user role to block regular users acess the platform when it …
caneppelevitor Sep 14, 2023
28187b3
Merge pull request #996 from AletheiaFact/change-visible-property-to-…
thesocialdev Sep 14, 2023
dd30b1c
Merge pull request #994 from AletheiaFact/968-show-in-user-table-2fa-…
thesocialdev Sep 14, 2023
bf84c7c
Resolved request: consolidation of two functions in one
caneppelevitor Sep 14, 2023
c739c2b
Last details on also checking variable from configService on function
caneppelevitor Sep 14, 2023
b24eea0
- change antd Menu due deprecated property
pepermao Sep 14, 2023
72a5ea6
fixed code smell
pepermao Sep 14, 2023
508f6eb
Using Roles enum
caneppelevitor Sep 14, 2023
ed0ecba
change property visible to open
pepermao Sep 14, 2023
a18d069
if the claim doesnt have a personality, save the document with the pe…
pepermao Sep 14, 2023
1d62f70
Fixed conditinal to do not fetch user when the value is not fetchable
caneppelevitor Sep 14, 2023
671e41f
- only create websocket connection when colllab edit feature flag is …
pepermao Sep 14, 2023
e7cbdde
- stop logging feature flag debug
pepermao Sep 14, 2023
2fbe4fb
Update .yarn cache
thesocialdev Sep 15, 2023
d64a415
Merge pull request #998 from AletheiaFact/change-menu-library
thesocialdev Sep 15, 2023
71966d6
Merge pull request #1000 from AletheiaFact/change-the-visible-propert…
thesocialdev Sep 15, 2023
81a9968
Merge pull request #997 from AletheiaFact/966-not-allowing-regular-us…
thesocialdev Sep 15, 2023
bab16a7
Merge pull request #1003 from AletheiaFact/user-input-on-work-flow
thesocialdev Sep 15, 2023
5641127
Merge pull request #1004 from AletheiaFact/fixed-creation-of-websocke…
thesocialdev Sep 15, 2023
ed9e712
Merge pull request #1005 from AletheiaFact/feature-flag-log
thesocialdev Sep 15, 2023
ff04536
Merge pull request #1008 from AletheiaFact/update-yarn-cache
thesocialdev Sep 15, 2023
3686bf5
Merge branch 'stage' of github.com:AletheiaFact/aletheia into make-it…
thesocialdev Sep 15, 2023
63c0dfa
Fix CI server due to error with scope request in the util service
thesocialdev Sep 15, 2023
aebc177
Merge pull request #981 from AletheiaFact/make-it-possible-to-hide-an…
thesocialdev Sep 15, 2023
5f5a108
Merge pull request #1001 from AletheiaFact/fixed-reviews-of-claims-wi…
thesocialdev Sep 15, 2023
a3be6ec
Merge branch 'stage' of github.com:AletheiaFact/aletheia into create-…
thesocialdev Sep 15, 2023
e5aa8c6
Fix claim review page
thesocialdev Sep 15, 2023
dba1d77
Prepare development environment for deploy and test
thesocialdev Sep 15, 2023
21c8f0d
Fix kubectl error with ENVIRONMENT env not being replaced
thesocialdev Sep 15, 2023
c32e03a
Fix error with name too long
thesocialdev Sep 15, 2023
a9bdb10
Fix missing git_sha for TAG in the websocket pod image
thesocialdev Sep 15, 2023
462dba7
Rename websocket pods and remove sweep.yaml
thesocialdev Sep 15, 2023
98bcf07
Pass the argument for the proper config yaml to be used for the service
thesocialdev Sep 15, 2023
126b3e7
Fix websocket config file in Dockerfile
thesocialdev Sep 15, 2023
76d40a3
Fix args array for websocket.yaml
thesocialdev Sep 15, 2023
b5002d3
Increase timeout for deploy validation to 360 seconds
thesocialdev Sep 15, 2023
3426c58
Use WSS for deployed services
thesocialdev Sep 15, 2023
2f0f170
Stop using multi-domain due to ssl errors
thesocialdev Sep 16, 2023
71fdce2
Disable deployment in the branch test
thesocialdev Sep 16, 2023
a2f8597
Using redirectPath variable to just allow the right url
caneppelevitor Sep 16, 2023
34f6333
Remove console.log from kanban page
thesocialdev Sep 16, 2023
1128bc9
fixed css class selector
pepermao Sep 16, 2023
6c135cf
Merge pull request #1011 from AletheiaFact/bug-fix-redirectPath
thesocialdev Sep 17, 2023
9bcee51
Allow sign-up in the test env temporarily
thesocialdev Sep 18, 2023
3d25ad9
- create affix button
pepermao Sep 15, 2023
86d9301
- move affix button to all pages
pepermao Sep 18, 2023
5762e25
fixed code smells
pepermao Sep 18, 2023
10c896b
Removing personality of the page from more personalities array
caneppelevitor Sep 15, 2023
da99a30
Refactor changes to make the filter before the fetch
caneppelevitor Sep 15, 2023
379e6b8
Returning fetchOnly
caneppelevitor Sep 15, 2023
ae380ba
Removed console log
caneppelevitor Sep 15, 2023
61fd240
- adicionei links no menu para pagina de personalidade, afirmação e k…
pepermao Sep 18, 2023
d870f33
- use i18n
pepermao Sep 18, 2023
9a80db9
Merge pull request #1013 from AletheiaFact/add-links-to-menu
thesocialdev Sep 18, 2023
2685093
fixed data-cy cypress test
pepermao Sep 18, 2023
42754e3
Decrease the requested resources for the websocket pod
thesocialdev Sep 19, 2023
483b47f
wrong code deletion undone
pepermao Sep 19, 2023
1a699cd
- fixed filter tasks with two or more users.
pepermao Sep 20, 2023
6440e55
Merge pull request #1009 from AletheiaFact/improve-banner-ui
thesocialdev Sep 20, 2023
d8e3224
Merge pull request #1006 from AletheiaFact/892-fixed-more-personaliti…
thesocialdev Sep 20, 2023
9897d2c
Merge pull request #1015 from AletheiaFact/fixed-kanban-filter
thesocialdev Sep 20, 2023
aa1e1ed
Merge pull request #952 from AletheiaFact/create-websocket-service-ru…
thesocialdev Sep 20, 2023
3001be2
- modify lookup pipelines
pepermao Sep 20, 2023
42b7760
fixed carousel skeleton minWidth
pepermao Sep 20, 2023
78f3a2e
- fixed query isHidden true on Admin page
pepermao Sep 20, 2023
3662287
- change flag library
pepermao Sep 20, 2023
e7c58e9
Merge pull request #1016 from AletheiaFact/fixed-flag-override
thesocialdev Sep 20, 2023
4577b98
Concetrate all fields in the same state
pepermao Sep 21, 2023
f718c54
Bump version AletheiaFact to v1 :tada:
thesocialdev Sep 23, 2023
8dc7f1a
- start TDD editor-parse implemetation
pepermao Sep 23, 2023
8287ac7
- update parse spec adding questions field
pepermao Sep 23, 2023
37a2d35
- get editorContent from editorContextProvider
pepermao Sep 25, 2023
029d857
New Role Creation:
caneppelevitor Sep 25, 2023
e6bc122
Added missing english text on admin-json
caneppelevitor Sep 25, 2023
1f0190a
send editor content and receive on actions machine
pepermao Sep 25, 2023
b7e8c3d
- create node input extensions and cards
pepermao Sep 25, 2023
59c9ef0
Merge pull request #1025 from AletheiaFact/missing-content-json-file
thesocialdev Sep 26, 2023
8e3c951
Merge pull request #1017 from AletheiaFact/dont-show-review-that-has-…
thesocialdev Sep 26, 2023
941cb78
- fixed dist folder
pepermao Sep 26, 2023
85736fa
- add empty paragraph into editor content to prevent top-level node e…
pepermao Sep 26, 2023
892929b
- don't overwrite content when it has already user connected in the w…
pepermao Sep 26, 2023
528728a
Enhancing feature functionality and security:
caneppelevitor Sep 26, 2023
804b891
Fixed build
caneppelevitor Sep 26, 2023
27851ea
- add collaborativeEditor fields validation
pepermao Sep 26, 2023
c4040f1
Creating the reviewer role and allowing only reviewer and administrat…
caneppelevitor Sep 27, 2023
0f73836
Removed unused import of 'Roles'
caneppelevitor Sep 27, 2023
8db9462
Removed unnecessary code
caneppelevitor Sep 27, 2023
a8665dd
start using dompurify and remove html-to-text packages
pepermao Sep 27, 2023
20c83a6
Removed unused import
caneppelevitor Sep 27, 2023
f8ddfec
- create schema2html parser function
pepermao Sep 27, 2023
7b39615
- fixed editor empty paragraphs
pepermao Sep 28, 2023
5b7be9f
Changed role of ci user to fix cypress test
caneppelevitor Sep 28, 2023
2134599
- fixed saveDraft action by adding it in the if statement to convert …
pepermao Sep 28, 2023
426b480
Fixed code smell unnecessary use of conditional expression
caneppelevitor Sep 29, 2023
9a6992c
Merge pull request #1024 from AletheiaFact/new-role-creation
thesocialdev Sep 29, 2023
edaa418
improve editor ui
pepermao Sep 29, 2023
5a21579
- remove test consoles
pepermao Sep 29, 2023
98052d1
fixed yarn test
pepermao Sep 29, 2023
8f531d1
Change beforeEach to beforeAll to see if it solves the memory leak in CI
thesocialdev Sep 29, 2023
f96ddfe
Send NODE_OPTIONS to yarn test step increasing memory size
thesocialdev Sep 29, 2023
148c3f6
Merge pull request #1021 from AletheiaFact/upgrade-whole-workflow-col…
thesocialdev Oct 2, 2023
469c1fa
Fix Docker build and add build to the development CI to test it befor…
thesocialdev Oct 2, 2023
29e4e53
Change the other of cypress test and dockerfile build step
thesocialdev Oct 2, 2023
0ea9528
Fix the missing argument in the docker build command
thesocialdev Oct 2, 2023
c1ff9d6
change source link to href
pepermao Oct 2, 2023
14d9476
create mongodb migration to rename source link field to href
pepermao Oct 2, 2023
1639baf
Merge pull request #1026 from AletheiaFact/fix-stage-build
thesocialdev Oct 2, 2023
d976214
Merge pull request #1027 from AletheiaFact/fixed-claim-creation
thesocialdev Oct 2, 2023
ef7bcc6
Novu installation
caneppelevitor Sep 15, 2023
79cb0a7
Start notification service and provider
caneppelevitor Sep 15, 2023
d76696b
- create notification module
pepermao Sep 15, 2023
05f077d
-Notification Controller
caneppelevitor Sep 15, 2023
2496579
-Creation of:
caneppelevitor Sep 15, 2023
d01aeb5
Changed endPoints names
caneppelevitor Sep 15, 2023
743d9be
-Refactor createSubscriber function
caneppelevitor Sep 18, 2023
01b27c6
- create notification components
pepermao Sep 19, 2023
450d400
Fix jest tests by updating libraries and fixing jest preset
thesocialdev Sep 20, 2023
34cf6ff
Get NOVU_API_KEY from the config yaml
thesocialdev Sep 20, 2023
b6a8b9f
- implement hmac encryption
pepermao Sep 20, 2023
7ebb8dc
- fixed cypress test
pepermao Sep 20, 2023
72ed06a
- fixed tests by downgrading axios version
pepermao Oct 1, 2023
84aedb7
create novu subscribers mongodb migration
pepermao Oct 1, 2023
39489c4
fixed yarn tests by adding a if statement on every novu function to c…
pepermao Oct 2, 2023
9945cde
- check if user has session before show notification icon
pepermao Oct 2, 2023
abe96dc
- forgot to add header content file
pepermao Oct 2, 2023
63491bf
- updated CI with novu secret keys
pepermao Oct 2, 2023
dd360ec
rebase
pepermao Oct 2, 2023
89bcfcc
Merge pull request #1010 from AletheiaFact/notification-feature
thesocialdev Oct 2, 2023
ac47061
Fix storybook build
thesocialdev Oct 3, 2023
eccae9e
- Make kanban menu item only visible for fact-cheker or higher roles
pepermao Oct 3, 2023
c873568
Merge pull request #1029 from AletheiaFact/fix-docs-deploy
thesocialdev Oct 3, 2023
d61a1c3
Merge pull request #1030 from AletheiaFact/fixed-aletheia-menu-items
pepermao Oct 3, 2023
dd121c7
Merge branch 'master' into stage
thesocialdev Oct 3, 2023
fb29729
- aligned items correctly
pepermao Oct 3, 2023
efaf34c
- Add Donate button on Aletheia Menu
pepermao Oct 3, 2023
d6a04b6
Merge pull request #1032 from AletheiaFact/fixed-aletheia-header-style
thesocialdev Oct 3, 2023
1439b73
started ory migration to version 1.0
pepermao Oct 3, 2023
b25432c
Merge pull request #1033 from AletheiaFact/migrate-ory-version
thesocialdev Oct 4, 2023
58b65ab
Fix last pull requests:
caneppelevitor Oct 3, 2023
fb4d1f9
- fixed claim review admin toolbar conditional
pepermao Oct 4, 2023
577243d
Merge pull request #1034 from AletheiaFact/code-fixing
pepermao Oct 4, 2023
3af4be5
Merge branch 'stage' into release-v1
thesocialdev Oct 4, 2023
d531dcf
Merge pull request #1023 from AletheiaFact/release-v1
thesocialdev Oct 4, 2023
3c869d5
Fix production routes to websocket
thesocialdev Oct 4, 2023
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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
36 changes: 24 additions & 12 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ env:
ORY_ACCESS_TOKEN: ${{ secrets.DEVELOPMENT_ORY_ACCESS_TOKEN }}
ALETHEIA_SCHEMA_ID: ${{ secrets.DEVELOPMENT_ALETHEIA_SCHEMA_ID }}
RECAPTCHA_SITEKEY: ${{ secrets.RECAPTCHA_SITEKEY }}
NOVU_API_KEY: ${{ secrets.DEVELOPMENT_NOVU_API_KEY }}
NOVU_APPLICATION_IDENTIFIER: ${{ secrets.DEVELOPMENT_NOVU_APPLICATION_IDENTIFIER }}


GITLAB_FEATURE_FLAG_URL: ${{ secrets.GITLAB_FEATURE_FLAG_URL }}
GITLAB_FEATURE_FLAG_INSTANCE_ID: ${{ secrets.GITLAB_FEATURE_FLAG_INSTANCE_ID }}
Expand All @@ -45,7 +48,8 @@ jobs:
- name: Check Environment
if: endsWith(github.ref, '/master')
run: |
sed -i '11{s/test.//}' deployment.yml
sed -i '11{s/test.//}' deployment/app.yml
sed -i '11{s/testws./ws./}' deployment/websocket.yml
sed -i '11{s/test.//}' config.seed.example.yaml
echo "ENVIRONMENT=production" >> $GITHUB_ENV
echo "UMAMI_SITE_ID=${{ secrets.PRODUCTION_UMAMI_SITE_ID }}" >> $GITHUB_ENV
Expand All @@ -59,6 +63,8 @@ jobs:
echo "AWS_SDK_BUCKET=${{ secrets.PRODUCTION_AWS_SDK_BUCKET }}" >> $GITHUB_ENV
echo "AWS_ACCESS_KEY_ID=${{ secrets.PRODUCTION_AWS_ACCESS_KEY_ID }}" >> $GITHUB_ENV
echo "AWS_SECRET_ACCESS_KEY=${{ secrets.PRODUCTION_AWS_SECRET_ACCESS_KEY }}" >> $GITHUB_ENV
echo "NOVU_API_KEY=${{ secrets.PRODUCTION_NOVU_API_KEY }}" >> $GITHUB_ENV
echo "NOVU_APPLICATION_IDENTIFIER=${{ secrets.PRODUCTION_NOVU_APPLICATION_IDENTIFIER }}" >> $GITHUB_ENV

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down Expand Up @@ -87,6 +93,8 @@ jobs:
sed -i "s%AWS_SDK_BUCKET%$AWS_SDK_BUCKET%g" config.$ENVIRONMENT.yaml
sed -i "s%AWS_ACCESS_KEY_ID%$AWS_ACCESS_KEY_ID%g" config.$ENVIRONMENT.yaml
sed -i "s%AWS_SECRET_ACCESS_KEY%$AWS_SECRET_ACCESS_KEY%g" config.$ENVIRONMENT.yaml
sed -i "s%NOVU_API_KEY%$NOVU_API_KEY%g" config.$ENVIRONMENT.yaml
sed -i "s%NOVU_APPLICATION_IDENTIFIER%$NOVU_APPLICATION_IDENTIFIER%g" config.$ENVIRONMENT.yaml

- name: Set migrate-mongo-config.ts
run: |
Expand Down Expand Up @@ -139,7 +147,7 @@ jobs:
- name: Check Environment
if: endsWith(github.ref, '/master')
run: |
sed -i '11{s/test.//}' deployment.yml
sed -i '11{s/test.//}' deployment/app.yml
echo "ENVIRONMENT=production" >> $GITHUB_ENV
echo "UMAMI_SITE_ID=${{ secrets.PRODUCTION_UMAMI_SITE_ID }}" >> $GITHUB_ENV
echo "NEXT_PUBLIC_UMAMI_SITE_ID=${{ secrets.PRODUCTION_UMAMI_SITE_ID }}" >> $GITHUB_ENV
Expand All @@ -152,18 +160,22 @@ jobs:
echo "AWS_SDK_BUCKET=${{ secrets.PRODUCTION_AWS_SDK_BUCKET }}" >> $GITHUB_ENV
echo "AWS_ACCESS_KEY_ID=${{ secrets.PRODUCTION_AWS_ACCESS_KEY_ID }}" >> $GITHUB_ENV
echo "AWS_SECRET_ACCESS_KEY=${{ secrets.PRODUCTION_AWS_SECRET_ACCESS_KEY }}" >> $GITHUB_ENV
echo "NOVU_API_KEY=${{ secrets.PRODUCTION_NOVU_API_KEY }}" >> $GITHUB_ENV
echo "NOVU_APPLICATION_IDENTIFIER=${{ secrets.PRODUCTION_NOVU_APPLICATION_IDENTIFIER }}" >> $GITHUB_ENV

- name: Set environment
run: |
sed -i "s/ENVIRONMENT/${{ env.ENVIRONMENT }}/g" deployment.yml
sed -i "s/UMAMI_SITE_ID_STUB/${{ env.UMAMI_SITE_ID }}/g" deployment.yml
sed -i "s/RECAPTCHA_SITEKEY_STUB/${{ env.RECAPTCHA_SITEKEY }}/g" deployment.yml
sed -i "s%ORY_SDK_URL_STUB%${{ env.ORY_SDK_URL }}%g" deployment.yml
sed -i "s/ORY_ACCESS_TOKEN_STUB/${{ env.ORY_ACCESS_TOKEN }}/g" deployment.yml

- name: Set deployment.yml
sed -i "s/ENVIRONMENT/${{ env.ENVIRONMENT }}/g" deployment/app.yml
sed -i "s/ENVIRONMENT/${{ env.ENVIRONMENT }}/g" deployment/websocket.yml
sed -i "s/UMAMI_SITE_ID_STUB/${{ env.UMAMI_SITE_ID }}/g" deployment/app.yml
sed -i "s/RECAPTCHA_SITEKEY_STUB/${{ env.RECAPTCHA_SITEKEY }}/g" deployment/app.yml
sed -i "s%ORY_SDK_URL_STUB%${{ env.ORY_SDK_URL }}%g" deployment/app.yml
sed -i "s/ORY_ACCESS_TOKEN_STUB/${{ env.ORY_ACCESS_TOKEN }}/g" deployment/app.yml

- name: Set deployment
run: |
sed -i "s/TAG/$GITHUB_SHA/" deployment.yml
sed -i "s/TAG/$GITHUB_SHA/" deployment/app.yml
sed -i "s/TAG/$GITHUB_SHA/" deployment/websocket.yml

- name: Applying Kubernetes Deployment
uses: giovannirossini/aws-eks@v1
Expand All @@ -172,7 +184,7 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: 'us-east-1'
cluster-name: 'production'
command: kubectl apply -f deployment.yml
command: kubectl apply -f ./deployment/

- name: Validation
uses: giovannirossini/aws-eks@v1
Expand All @@ -181,7 +193,7 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: 'us-east-1'
cluster-name: 'production'
command: kubectl rollout status deployments/aletheia -n ${{ env.ENVIRONMENT }} --timeout=240s
command: kubectl rollout status deployments/aletheia -n ${{ env.ENVIRONMENT }} --timeout=360s
if: success()

- name: Rollback
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Deploy docs to aws s3 bucket
on:
push:
branches: [ stage ]
permissions:
id-token: write # This is required for aws oidc connection
contents: read # This is required for actions/checkout
pull-requests: write # This is required for gh bot to comment PR

jobs:
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-latest
env:
BUCKET: ${{ secrets.ALETHEIA_DOCS_AWS_BUCKET_NAME }}
DIST: docs
REGION: eu-north-1

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.ALETHEIA_DOCS_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ALETHEIA_DOCS_AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.REGION }}

- name: Install Dependencies
run: |
node --version
yarn install

- name: Build Static Website
run: |
yarn run build-storybook
npx compodoc -p tsconfig.json -d ./docs/compodoc

- name: Copy files to the production website with the AWS CLI
run: |
aws s3 sync --delete ${{ env.DIST }} s3://${{ env.BUCKET }}
36 changes: 22 additions & 14 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
ORY_ACCESS_TOKEN: ${{ secrets.DEVELOPMENT_ORY_ACCESS_TOKEN }}
ALETHEIA_SCHEMA_ID: ${{ secrets.DEVELOPMENT_ALETHEIA_SCHEMA_ID }}
CI_ORY_USERID: ${{ secrets.CI_ORY_USERID }}
CI_MONGODB_URI: mongodb://localhost:35025/Aletheia
CI_MONGODB_URI: mongodb://127.0.0.1:35025/Aletheia
TEST_RECAPTCHA_SECRET: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe # public secret for CI tests provided by google
TEST_RECAPTCHA_SITEKEY: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI # public sitekey for CI tests provided by google
NEXT_PUBLIC_RECAPTCHA_SITEKEY: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI # public sitekey for CI tests provided by google
Expand All @@ -32,7 +32,7 @@ jobs:

strategy:
matrix:
node-version: [16.19.0]
node-version: [18.14.0]

steps:
- uses: actions/checkout@v2
Expand All @@ -44,15 +44,23 @@ jobs:
- run: yarn build
- run: yarn lint
- run: yarn test
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Cypress run
uses: cypress-io/github-action@v4
with:
start: yarn test:e2e:cy
wait-on: 'http://localhost:3000'
env:
CI: true
env:
NODE_OPTIONS: "--max_old_space_size=4096"
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Test docker image build before merge
run: |
docker build --build-arg ENVIRONMENT=development \
--build-arg NEXT_PUBLIC_UMAMI_SITE_ID=$NEXT_PUBLIC_UMAMI_SITE_ID \
--build-arg NEXT_PUBLIC_RECAPTCHA_SITEKEY=${{ secrets.NEXT_PUBLIC_RECAPTCHA_SITEKEY }} .
- name: Cypress run
uses: cypress-io/github-action@v4
with:
start: yarn test:e2e:cy
wait-on: 'http://localhost:3000'
env:
CI: true

6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ yarn-error.log*
dist

config.yaml
config.nest.yaml
config.seed.yaml
config.websocket.yaml
migrate-mongo-config.*

.idea/**/*
Expand Down Expand Up @@ -60,3 +60,7 @@ data/localstack/startup_info.json

# localstack
data

# Auto-generated documentation
docs/compodoc/**/*
docs/storybook/**/*
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.19.0
18.14.0
28 changes: 16 additions & 12 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
module.exports = {
stories: [
"../src/stories/**/*.stories.*",
],
stories: ["../src/stories/**/*.stories.*"],

addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/preset-ant-design",
"storybook-addon-next-router"
],
framework: "@storybook/react",
core: {
builder: "@storybook/builder-webpack5"

framework: {
name: "@storybook/nextjs",
options: {},
},

webpackFinal: async (config, { configType }) => {
config.resolve.alias = {
...config.resolve.alias,
"next-i18next": "react-i18next"
}
return config
}
}
"next-i18next": "react-i18next",
};
return config;
},

docs: {
autodocs: true,
},
};
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Loading