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

Upstream sync 2 #34

Merged
merged 264 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
264 commits
Select commit Hold shift + click to select a range
81b3ca9
update comments"
ksmontville Aug 19, 2024
827549b
set testData to false by default for all new administrations
ksmontville Aug 21, 2024
73ab4c2
undo explicit check for isTestData (handled better in a different PR)
ksmontville Aug 22, 2024
6588ac6
update firekit
ksmontville Aug 22, 2024
b943f05
Rebase onto main
ksmontville Aug 22, 2024
1e0e62b
change to PvToggleButton
ksmontville Aug 22, 2024
2d63534
set button label to computed value
ksmontville Aug 22, 2024
37fb428
fix checkLegalDoc.cy.js test
ksmontville Aug 22, 2024
e31de6f
add test_legal_doc student to list of test users
ksmontville Aug 22, 2024
49efab3
push test_legal_doc into list of test users in cypress config
ksmontville Aug 23, 2024
6a50d05
clean up redundant code
ksmontville Aug 23, 2024
ebebf45
remove comments
ksmontville Aug 23, 2024
826ed75
legal doc cypress test Kyle solution
Emily-ejag Aug 23, 2024
6de42cc
Update src/components/ListOrgs.vue
Emily-ejag Aug 23, 2024
f69a196
csv blank space when no value
Emily-ejag Aug 23, 2024
3b456bd
make participants sign legal doc after every august first each year
Emily-ejag Aug 23, 2024
db4481d
legal doc cypress test
Emily-ejag Aug 23, 2024
ce34b3b
reorganize file structure, refactor watcher for changes in administra…
ksmontville Aug 23, 2024
bf648ae
reorganize file structure based on logical function
ksmontville Aug 23, 2024
3bc896f
reorganize file structure based on logical function
ksmontville Aug 23, 2024
50402df
update legal doc test
ksmontville Aug 23, 2024
de12559
Merge pull request #754 from yeatmanlab/fix/edit-administrations
richford Aug 24, 2024
25dedf1
Update firekit
richford Aug 24, 2024
b0073cd
2.11.2
richford Aug 24, 2024
045289d
Update firestore indices for gse-roar-admin
richford Aug 24, 2024
84d0448
2.11.3
richford Aug 24, 2024
207837c
Update firestore indexes for gse-roar-assessment
richford Aug 24, 2024
9ff34b1
Merge pull request #761 from yeatmanlab/eng/force-legal-doc-reset
Emily-ejag Aug 26, 2024
e2b8227
resolve merge conflicts, clear node modules
ksmontville Aug 26, 2024
827a72e
Merge branch 'main' of https://github.com/yeatmanlab/roar-dashboard i…
Emily-ejag Aug 26, 2024
728f7d8
adding csv_max_export constant and all user data
Emily-ejag Aug 26, 2024
8a19d12
Update calls to user doc to use roarUid rather than adminUid
kellyel Aug 26, 2024
ae85fa7
update tasks to use roarUid
kellyel Aug 26, 2024
a33342a
fix linting
kellyel Aug 26, 2024
e75ce18
fix linting II
kellyel Aug 26, 2024
13d0c21
checkLegalDoc fix
Emily-ejag Aug 27, 2024
bb3b2a2
fix public facing name search
Emily-ejag Aug 27, 2024
8fbc83a
Merge pull request #762 from yeatmanlab/fix/use-roarUid
kellyel Aug 27, 2024
e84d202
Merge pull request #763 from yeatmanlab/fix/letra-palabra-task-picker…
Emily-ejag Aug 27, 2024
752b98b
add check for consent/assent form when selecting an administration
ksmontville Aug 27, 2024
d9103be
remove cy.logs
ksmontville Aug 27, 2024
9ca535b
Merge branch 'main' into query-test-admins
ksmontville Aug 27, 2024
06952d2
Merge pull request #764 from yeatmanlab/fix/generated-test-files
kellyel Aug 27, 2024
6273482
change to input switch from toggle button
ksmontville Aug 27, 2024
18ca431
2.11.4
kellyel Aug 27, 2024
e2b4139
2.11.5
kellyel Aug 27, 2024
0b11286
Temporarily disable prerelease tests
kellyel Aug 28, 2024
56e1ec3
Correct dependancy for temprarily skipped tests
kellyel Aug 28, 2024
da5aced
Restore pre-release tests
kellyel Aug 28, 2024
6a1ac3f
fix-tos-popping
Emily-ejag Aug 28, 2024
bf906fc
making the update consent invalidate userData
Emily-ejag Aug 28, 2024
ded9d9f
updating cypress
Emily-ejag Aug 28, 2024
8acb65f
getting the video wrapper
Emily-ejag Aug 28, 2024
1890740
updating firekit
Emily-ejag Aug 29, 2024
d69a7a4
Merge pull request #766 from yeatmanlab/fix/tos-popping-out
kellyel Aug 29, 2024
eb4a05d
Temporarily disable prerelease tests
kellyel Aug 29, 2024
b5b0606
Restore prerelease tests
kellyel Aug 29, 2024
57b717c
Update src/components/ListOrgs.vue
Emily-ejag Aug 29, 2024
e2dce40
Update src/components/ListOrgs.vue
Emily-ejag Aug 29, 2024
c9eae5d
adding sentry capture error
Emily-ejag Aug 30, 2024
f7007fb
Update dropdown language
kellyel Sep 3, 2024
446f018
add console logs
ksmontville Sep 3, 2024
1c8c423
add a watcher on userData to prevent checking consent for legal terms…
ksmontville Sep 3, 2024
e685807
make watcher async
ksmontville Sep 3, 2024
0257ba5
adding ? control
Emily-ejag Sep 3, 2024
871b36c
Update src/pages/ScoreReport.vue
Emily-ejag Sep 3, 2024
a700d69
improvements
Emily-ejag Sep 3, 2024
fe6c013
Merge branch 'fix/score-report-no-name' of https://github.com/yeatman…
Emily-ejag Sep 3, 2024
0d755fd
add showOptionalAssessments to auth store
ksmontville Sep 3, 2024
0f7bc96
Restore default sort
kellyel Sep 3, 2024
e8a5654
refactor command to check optional games, update test to play optiona…
ksmontville Sep 3, 2024
cb13feb
Merge pull request #773 from yeatmanlab/store-optional-assessment-state
ksmontville Sep 3, 2024
4a2be6b
Merge pull request #772 from yeatmanlab/fix/score-report-no-name
Emily-ejag Sep 4, 2024
1be8dbb
Merge pull request #771 from yeatmanlab/fix/tos-popup
ksmontville Sep 4, 2024
dc7c612
Update roar-firebase-functions submodule
richford Sep 4, 2024
eac4c94
2.11.6
richford Sep 4, 2024
ff5ad95
2.11.7
richford Sep 4, 2024
b226984
2.11.8
richford Sep 4, 2024
85ba81f
2.11.9
richford Sep 4, 2024
4773b01
Merge pull request #770 from yeatmanlab/enh/dropdown-update
richford Sep 4, 2024
7ba8e81
updating firebase functions
Emily-ejag Sep 4, 2024
3580592
Merge pull request #755 from yeatmanlab/enh/export-users-org
Emily-ejag Sep 4, 2024
cd5634d
Merge pull request #774 from yeatmanlab/fix/score-sort
kellyel Sep 4, 2024
42033be
updating firebase functions
Emily-ejag Sep 4, 2024
8d1ab14
Merge pull request #749 from yeatmanlab/query-test-admins
Emily-ejag Sep 4, 2024
be2d1f0
fixing optional assessment switching
Emily-ejag Sep 5, 2024
caee114
Merge pull request #779 from yeatmanlab/fix/roam-test-all-open-admins
Emily-ejag Sep 5, 2024
c6603d1
2.11.10
richford Sep 5, 2024
8f80bc0
initial setup
ksmontville Aug 27, 2024
8bbb899
format
ksmontville Aug 28, 2024
4ebd27d
move app setup to setup.js
ksmontville Aug 28, 2024
cd99319
add plugins.js and mock auth store functions
ksmontville Aug 28, 2024
f024175
clean up the file
ksmontville Aug 28, 2024
1f8efe2
move store creation logic into cypress commands
ksmontville Aug 29, 2024
361daaa
write first component test, and add doc strings to cypress commands
ksmontville Aug 29, 2024
922705c
add ci/cd workflow for component tests
ksmontville Aug 29, 2024
ca27a5e
revert changes to sre and swr tests
ksmontville Aug 29, 2024
1193d0b
rename initApp to mountApp, install cypress-vite for vite preprocessor
ksmontville Aug 30, 2024
66e1f09
Check for TOS agreement on login
ksmontville Aug 30, 2024
54d0550
rename workflow job
ksmontville Aug 30, 2024
3319cc8
modify spec glob
ksmontville Aug 30, 2024
97212d2
add custom npx command to component test workflow
ksmontville Aug 30, 2024
5aed048
set minimum Primevue package to 3.43.0
ksmontville Sep 3, 2024
45dde32
Update cypress/component/components/NavBar.cy.js
ksmontville Sep 5, 2024
23d4027
Update src/components/NavBar.vue
ksmontville Sep 5, 2024
9f75f54
Update src/components/NavBar.vue
ksmontville Sep 5, 2024
2059407
remove unncessary code, create styles.js, create env.test.example
ksmontville Sep 5, 2024
570de6a
add doc strings to commands.js
ksmontville Sep 5, 2024
d1e6a74
rename env example test file
ksmontville Sep 5, 2024
707f728
add top level comments
ksmontville Sep 5, 2024
29d7509
add record flag to component test run command
ksmontville Sep 5, 2024
8c68d3d
adjust component test workflow
ksmontville Sep 5, 2024
cd2b1d8
pass record flag into component test workflow
ksmontville Sep 5, 2024
2f56cc6
relocate env files, remove comments/logs, add new Cypress env variabl…
ksmontville Sep 5, 2024
e85a591
replace string literal with cypress env variable
ksmontville Sep 5, 2024
7ebb503
Merge pull request #767 from yeatmanlab/component-testing
ksmontville Sep 5, 2024
d44af6a
add support for Firebase App Check
ksmontville Aug 14, 2024
c1600e3
remove extra imports
ksmontville Aug 14, 2024
1b0baf9
install latest version of roar-firekit, set site keys in roarConfig (…
ksmontville Aug 16, 2024
5fea3e8
set debug token as .env variable during PR deployment
ksmontville Aug 16, 2024
9913e10
change secret name in workflow
ksmontville Aug 16, 2024
d644df1
modify workflow steps order
ksmontville Aug 16, 2024
8189c3d
remove console logs
ksmontville Aug 16, 2024
d135e42
add function to set debugToken in roarConfig
ksmontville Aug 21, 2024
9d7dec2
add workflow to dynamically whitelist PR preview link on both projects
ksmontville Sep 4, 2024
0e7612d
edit workflow
ksmontville Sep 4, 2024
a6f65b4
modify deploy url output in workflow
ksmontville Sep 4, 2024
5485801
use new workflow syntax for outputting variables
ksmontville Sep 4, 2024
d5cb9e6
split whitelisting job into two jobs
ksmontville Sep 4, 2024
4857393
Format workflow file
ksmontville Sep 4, 2024
63c413c
Comment part of workflow file
ksmontville Sep 4, 2024
62340f2
Restructure workflow file
ksmontville Sep 4, 2024
525a0eb
Restructure workflow file, again
ksmontville Sep 4, 2024
8b0af30
refactor workflow
ksmontville Sep 4, 2024
d967a07
strip url scheme from output deploy url
ksmontville Sep 4, 2024
5a25ae3
update firekit and workflow
ksmontville Sep 4, 2024
130aaef
filter out duplicate domains when whitelisting
ksmontville Sep 4, 2024
e262c1d
add temporary console log
ksmontville Sep 4, 2024
07f31c8
remove console logs
ksmontville Sep 4, 2024
dac24bf
Remove comments
ksmontville Sep 5, 2024
380f331
add option for devs to use their own local debug token, add optional …
ksmontville Sep 5, 2024
b753f01
add fallback to debugToken
ksmontville Sep 5, 2024
4af8397
remove debug token inject from CI
ksmontville Sep 5, 2024
255437b
inject debugToken into env at build time
ksmontville Sep 5, 2024
c9132dc
remove debug token true
ksmontville Sep 5, 2024
8c19a5a
re-enable debug token true
ksmontville Sep 5, 2024
93f0920
add console logs temporarily
ksmontville Sep 5, 2024
e8d66b6
fixing switching optional assigments bug
Emily-ejag Sep 6, 2024
a62389b
Merge pull request #780 from yeatmanlab/fix/test-open-admins
richford Sep 6, 2024
635438a
Update roar-firebase-functions submodule
richford Sep 6, 2024
94c0c36
2.11.11
richford Sep 6, 2024
3fba344
Eliminate use of __dirname
kellyel Sep 6, 2024
f660e7d
Merge pull request #781 from yeatmanlab/fix/pre-release-tests
richford Sep 6, 2024
ef1e516
2.11.12
richford Sep 6, 2024
4e90c0d
set new cypress env var for debug token
ksmontville Sep 6, 2024
f2c41ab
add fallback to debugToken again
ksmontville Sep 6, 2024
aeacabe
remove console logs
ksmontville Sep 6, 2024
b1a3b6d
Update prerelease tests to not use path vars
kellyel Sep 6, 2024
69e48fe
update cleverSignIn test
ksmontville Sep 6, 2024
03edd33
Merge pull request #783 from yeatmanlab/fix/dirname-tests
kellyel Sep 6, 2024
78ff870
checking if the optional switch button exists
Emily-ejag Sep 6, 2024
881987b
Merge pull request #784 from yeatmanlab/fix/test-admins-with-no-optio…
kellyel Sep 6, 2024
9c5bebb
2.11.13
kellyel Sep 6, 2024
c3f26b7
2.11.14
kellyel Sep 6, 2024
5d01eee
Temporarily disable pre-release tests
kellyel Sep 7, 2024
0e5b9e6
2.11.15
kellyel Sep 7, 2024
65953f1
Reenable pre-release tests
kellyel Sep 7, 2024
b08d237
fixing switching optional assigments bug
Emily-ejag Sep 6, 2024
6ad9684
Update roar-firebase-functions submodule
richford Sep 6, 2024
46cda05
2.11.11
richford Sep 6, 2024
33aabd8
Eliminate use of __dirname
kellyel Sep 6, 2024
3a7ec43
2.11.12
richford Sep 6, 2024
a753041
Update prerelease tests to not use path vars
kellyel Sep 6, 2024
6efdaed
checking if the optional switch button exists
Emily-ejag Sep 6, 2024
5fdb3f0
2.11.13
kellyel Sep 6, 2024
4735de1
2.11.14
kellyel Sep 6, 2024
33a35a9
Temporarily disable pre-release tests
kellyel Sep 7, 2024
7dd279a
2.11.15
kellyel Sep 7, 2024
ffc784e
Reenable pre-release tests
kellyel Sep 7, 2024
8c29b95
update roar-firebase-functions
ksmontville Sep 10, 2024
27627a5
change import of NODE_ENV in firebaseRoar.js
ksmontville Sep 10, 2024
00bbea3
Update comments
ksmontville Sep 10, 2024
74dfd76
Merge pull request #743 from yeatmanlab/enh/app-check
ksmontville Sep 10, 2024
07125be
Implement editOrgForm
kellyel Aug 9, 2024
539ca9b
install orgForm on listOrgs
kellyel Aug 9, 2024
60ed808
Move toast vars to constants file
kellyel Sep 5, 2024
51ee824
Import primevue components locally
kellyel Sep 5, 2024
34dcde1
Remove dev console logs
kellyel Sep 5, 2024
9224125
Update error behavior
kellyel Sep 10, 2024
a9b881b
Fix debugToken conditional for Cypress environment
maximilianoertel Sep 10, 2024
994aa05
Merge pull request #792 from yeatmanlab/fix/firebase-roar-config
maximilianoertel Sep 10, 2024
06dbc47
inject debug token into staging and prod builds
ksmontville Sep 10, 2024
f3a488e
update comments
ksmontville Sep 10, 2024
02ab71a
Remove debug token inject
ksmontville Sep 10, 2024
a5fe22d
update roar firekit to its latest version
ksmontville Sep 10, 2024
ae9fcfd
change checks for setting debug token in roar config
ksmontville Sep 10, 2024
258fc11
add comments
ksmontville Sep 10, 2024
93ea621
check window.location.hostname for localhost
ksmontville Sep 11, 2024
a5063bd
update comments
ksmontville Sep 11, 2024
499d854
Merge pull request #788 from yeatmanlab/fix/app-check-debug-token
ksmontville Sep 11, 2024
dd9a07f
Merge pull request #738 from yeatmanlab/enh/edit-orgs
kellyel Sep 11, 2024
18b8c91
Add fallback values before calling the forEach method
richford Sep 11, 2024
337e348
Update firekit
richford Sep 11, 2024
71bc630
Merge pull request #793 from yeatmanlab/enh/for-each-fallback
richford Sep 12, 2024
2806fed
fixing score report headers
Emily-ejag Sep 13, 2024
71a59a0
Merge pull request #798 from yeatmanlab/fix/score-report-heading
richford Sep 16, 2024
c82407d
Update roar-firebase-functions submodule
richford Sep 16, 2024
31f7c0e
Merge branch 'main' of github.com:yeatmanlab/roar-dashboard
richford Sep 16, 2024
abe4982
2.11.16
richford Sep 16, 2024
4e10d43
Update ROAV-Ran version to 1.0.30 (#807)
richford Sep 16, 2024
851a958
Update MEP version to 1.1.22 (#803)
richford Sep 17, 2024
4f4f512
Update ROAV-Crowding version to 1.1.15 (#800)
richford Sep 17, 2024
0de8c15
Add CODEOWNERS file (#808)
richford Sep 17, 2024
f8923fc
2.11.17
richford Sep 17, 2024
b4fa40b
Temporarily disable pre-release tests
kellyel Sep 17, 2024
fa8da77
2.11.18
kellyel Sep 17, 2024
5dc1513
Enable pre-release tests
kellyel Sep 17, 2024
8edd017
Re-enable the password reset email (#817)
kellyel Sep 17, 2024
52ee05a
CU-8689ubqge fix/App Public Names in Reports (#821)
ksmontville Sep 23, 2024
2ad2d9d
Adding Letter Canada to the Dashboard (#825)
Emily-ejag Sep 24, 2024
f114276
remove offline settings/pwa code
lucasxsong Sep 24, 2024
c1de6b0
remove vite pwa
lucasxsong Sep 24, 2024
a70823b
Update ROAV-Crowding version to 1.1.16 (#824)
richford Sep 27, 2024
cc63ab6
adding v-if
Emily-ejag Sep 25, 2024
b3c91af
the button-profile-info no longer for students
Emily-ejag Sep 25, 2024
44f5ca9
Fix incorrect uid references for ClassLink user type check
maximilianoertel Sep 27, 2024
0619297
Update log
maximilianoertel Sep 27, 2024
56db418
Add archived: false to queries for users and orgs (#790)
richford Oct 3, 2024
f139e5f
Remove Firebase App Check (#849)
ksmontville Oct 4, 2024
47c6ac0
Update app launching behavior (#850)
kellyel Oct 4, 2024
f050410
Disable pre-release tests
kellyel Oct 4, 2024
7286f7a
Update roar-firebase-functions submodule
richford Oct 4, 2024
f0faa9d
3.0.0
richford Oct 4, 2024
5d08489
Component Tests for RoarDataTable (#856)
ksmontville Oct 9, 2024
233dbab
Export combination of Score and Progress Report (#765)
Emily-ejag Oct 11, 2024
5a08dfc
Changing Syntax name on game tabs (#858)
Emily-ejag Oct 11, 2024
6ab6a65
going down on levante core tasks for syntax (#874)
Emily-ejag Oct 11, 2024
89bd6e1
E2E for signUp code invitation (#806)
Emily-ejag Oct 11, 2024
af51c79
Update roar-firebase-functions submodule
richford Oct 13, 2024
42b4c00
3.0.1
richford Oct 13, 2024
026b5ec
Wait for userClaims before routing Classlink user (#892)
kellyel Oct 15, 2024
c7880e9
3.0.2
richford Oct 15, 2024
e40b8cc
Migrate TanStack queries to query composables (#748)
maximilianoertel Oct 15, 2024
dc9090f
Replace roam-fluency with roam-apps (#885)
ksmontville Oct 16, 2024
2b79488
Fix 'view by school' distribution graph (#864)
kellyel Oct 17, 2024
6672809
Update Multichoice version to 1.11.4 (#894)
richford Oct 18, 2024
85ed2bc
Fix Score Reports Not Populating Correctly (#895)
ksmontville Oct 21, 2024
858deb0
Add security headers to firebase.json (#903)
richford Oct 21, 2024
b90b0e3
Merge branch 'main' of github.com:yeatmanlab/roar-dashboard into upst…
Zio-4 Oct 21, 2024
48a2a01
changes
Zio-4 Oct 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# App Check Debug Tokens
VITE_APPCHECK_DEBUG_TOKEN='your-app-check-debug-token'

# Auth Session Timeout (Optional)
# Control the session timeout limit and countdown duration before a user is signed out due to inactivity.
VITE_AUTH_SESSION_TIMEOUT_IDLE_THRESHOLD=900000 # 15 minutes in milliseconds
VITE_AUTH_SESSION_TIMEOUT_COUNTDOWN_DURATION=60000 # 1 minute in milliseconds
VITE_AUTH_SESSION_TIMEOUT_IDLE_THRESHOLD=900000# 15 minutes in milliseconds
VITE_AUTH_SESSION_TIMEOUT_COUNTDOWN_DURATION=60000# 1 minute in milliseconds

23 changes: 23 additions & 0 deletions .env.example.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Cypress Environment Variables
CLEVER_USERNAME='your-clever-username'
CLEVER_PASSWORD='your-clever-password'
SUPER_ADMIN_USERNAME='your-super-admin-username'
SUPER_ADMIN_PASSWORD='your-super-admin-password'
SUPER_ADMIN_ID='your-super-admin-id'
PARTNER_ADMIN_USERNAME='your-partner-admin-username'
PARTNER_ADMIN_PASSWORD='your-partner-admin-password'
PARTNER_ADMIN_ID='your-partner-admin-id'
PARTICIPANT_USERNAME='your-participant-username'
PARTICIPANT_PASSWORD='your-participant-password'
PARTICIPANT_UID='your-participant-uid'
PARTICIPANT_EMAIL='your-participant-email'
PARTICIPANT_EMAIL_PASSWORD='your-participant-email-password'

# Parent information for testing
PARENT_FIRST_NAME='your-parent-first-name'
PARENT_LAST_NAME='your-parent-last-name'
PARENT_EMAIL='your-parent-email'
PARENT_PASSWORD='your-parent-password'

# Firebase App Check Tokens
VITE_APPCHECK_DEBUG_TOKEN='your-firebase-app-check-debug-token'
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These owners will be the default owners for everything in the repo. Unless a
# later match takes precedence, these owners will be requested for review when
# someone opens a pull request.
* @yeatmanlab/roar-maintainers
72 changes: 72 additions & 0 deletions .github/workflows/cypress-component-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Run Cypress Component Tests

on:
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
inputs:
pr_branch:
description: 'Checkout this branch from the LEVANTE repository and execute CI/CD tests on it.'
required: true

concurrency:
group: cypress-tests-${{ github.ref }}-3
cancel-in-progress: true

jobs:
cypress-run:
name: Run Cypress Component Tests
runs-on: ubuntu-latest
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
browser: [chromium, edge]
containers: [1, 2]
env:
NODE_OPTIONS: '--max_old_space_size=8192'
NODE_ENV: 'test'
CYPRESS_BASE_URL: 'http://localhost:5173'
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
COMMIT_INFO_MESSAGE: Component Tests for PR ${{ github.event.number }} "${{ github.event.pull_request.title }}" from commit "${{ github.event.pull_request.head.sha }}"
COMMIT_INFO_SHA: ${{ github.event.pull_request.head.sha }}
PARTNER_ADMIN_USERNAME: ${{ secrets.PARTNER_ADMIN_USERNAME }}
PARTNER_ADMIN_PASSWORD: ${{ secrets.PARTNER_ADMIN_PASSWORD }}
PARTNER_ADMIN_ID: ${{ secrets.PARTNER_ADMIN_ID }}
PARTICIPANT_USERNAME: ${{ secrets.PARTICIPANT_USERNAME}}
PARTICIPANT_PASSWORD: ${{ secrets.PARTICIPANT_PASSWORD }}
PARTICIPANT_UID: ${{ secrets.PARTICIPANT_UID }}
PARTICIPANT_EMAIL: ${{ secrets.PARTICIPANT_EMAIL }}
PARTICIPANT_EMAIL_PASSWORD: ${{ secrets.PARTICIPANT_EMAIL_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VITE_APPCHECK_DEBUG_TOKEN: ${{ secrets.VITE_APPCHECK_DEBUG_TOKEN }}
steps:
# For workflows triggered by pull requests
- name: Checkout PR code
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}

# For workflows triggered manually, targeting the LEVANTE dashboard repository specifically
- name: Checkout manual trigger code
if: github.event_name == 'workflow_dispatch'
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.pr_branch }}
repository: levante-framework/levante-dashboard
fetch-depth: 0

- name: Cypress run
uses: cypress-io/github-action@v6
with:
component: true
browser: ${{ matrix.browser }}
build: npm ci && npm run build
start: npm run dev
wait-on: ${{ env.CYPRESS_BASE_URL }}
wait-on-timeout: 120
record: true
parallel: true
spec: 'cypress/component/**/*'
ci-build-id: ${{ github.run_id }}-${{ matrix.browser }}
5 changes: 3 additions & 2 deletions .github/workflows/cypress-participant-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
required: true

concurrency:
group: ci-preview-tests-${{ github.ref }}-3
group: cypress-tests-${{ github.ref }}-2
cancel-in-progress: true

jobs:
Expand All @@ -30,7 +30,7 @@ jobs:
CLEVER_PASSWORD: ${{ secrets.CLEVER_PASSWORD }}
CYPRESS_BASE_URL: 'http://localhost:5173'
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
COMMIT_INFO_MESSAGE: Tests for PR ${{ github.event.number }} "${{ github.event.pull_request.title }}" from commit "${{ github.event.pull_request.head.sha }}"
COMMIT_INFO_MESSAGE: E2E Tests for PR ${{ github.event.number }} "${{ github.event.pull_request.title }}" from commit "${{ github.event.pull_request.head.sha }}"
COMMIT_INFO_SHA: ${{ github.event.pull_request.head.sha }}
PARTNER_ADMIN_USERNAME: ${{ secrets.PARTNER_ADMIN_USERNAME }}
PARTNER_ADMIN_PASSWORD: ${{ secrets.PARTNER_ADMIN_PASSWORD }}
Expand All @@ -40,6 +40,7 @@ jobs:
PARTICIPANT_EMAIL: ${{ secrets.PARTICIPANT_EMAIL }}
PARTICIPANT_EMAIL_PASSWORD: ${{ secrets.PARTICIPANT_EMAIL_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VITE_APPCHECK_DEBUG_TOKEN: ${{ secrets.VITE_APPCHECK_DEBUG_TOKEN }}
steps:
# For workflows triggered by pull requests
- name: Checkout PR code
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/cypress-partner-admin-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
required: true

concurrency:
group: ci-preview-tests-${{ github.ref }}-2
group: cypress-tests-${{ github.ref }}-1
cancel-in-progress: true

jobs:
Expand All @@ -28,7 +28,7 @@ jobs:
NODE_ENV: 'test'
CYPRESS_BASE_URL: 'http://localhost:5173'
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
COMMIT_INFO_MESSAGE: Tests for PR ${{ github.event.number }} "${{ github.event.pull_request.title }}" from commit "${{ github.event.pull_request.head.sha }}"
COMMIT_INFO_MESSAGE: E2E Tests for PR ${{ github.event.number }} "${{ github.event.pull_request.title }}" from commit "${{ github.event.pull_request.head.sha }}"
COMMIT_INFO_SHA: ${{ github.event.pull_request.head.sha }}
PARTNER_ADMIN_USERNAME: ${{ secrets.PARTNER_ADMIN_USERNAME }}
PARTNER_ADMIN_PASSWORD: ${{ secrets.PARTNER_ADMIN_PASSWORD }}
Expand All @@ -37,7 +37,12 @@ jobs:
PARTICIPANT_PASSWORD: ${{ secrets.PARTICIPANT_PASSWORD }}
PARTICIPANT_EMAIL: ${{ secrets.PARTICIPANT_EMAIL }}
PARTICIPANT_EMAIL_PASSWORD: ${{ secrets.PARTICIPANT_EMAIL_PASSWORD }}
PARENT_FIRST_NAME: ${{ secrets.PARENT_FIRST_NAME }}
PARENT_LAST_NAME: ${{ secrets.PARENT_LAST_NAME }}
PARENT_EMAIL: ${{ secrets.PARENT_EMAIL }}
PARENT_PASSWORD: ${{ secrets.PARENT_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VITE_APPCHECK_DEBUG_TOKEN: ${{ secrets.VITE_APPCHECK_DEBUG_TOKEN }}
steps:
# For workflows triggered by pull requests
- name: Checkout PR code
Expand Down
56 changes: 55 additions & 1 deletion .github/workflows/firebase-hosting-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,58 @@ jobs:
- run: echo ${{ fromJson(steps.firebase-deploy.outputs.urls)[0] }}

outputs:
deployUrl: ${{ fromJson(steps.firebase-deploy.outputs.urls)[0] }}
deployUrl: ${{ steps.set-deploy-url.outputs.deployUrl }}

whitelist-pr-domains-roar-admin:
name: Whitelist PR Domains on Firebase App Check for gse-roar-admin
runs-on: ubuntu-latest
needs: build-and-preview

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Authenticate with Google Cloud SDK
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_GSE_ROAR_ADMIN }}

- name: Set up Google Cloud SDK with Firebase Service Account
uses: google-github-actions/setup-gcloud@v2
with:
project_id: gse-roar-admin

- name: Update App Check Domains for gse-roar-admin
run: |
CURRENT_DOMAINS=$(gcloud recaptcha keys describe ${{ secrets.FIREBASE_APPCHECK_SITE_KEY_GSE_ROAR_ADMIN }} --format="value(webSettings.allowedDomains)" | tr ';' '\n')
NEW_DOMAIN=$(echo ${{ needs.build-and-preview.outputs.deployUrl }} | sed 's|https://||')
ALL_DOMAINS=$(echo -e "${CURRENT_DOMAINS}\n${NEW_DOMAIN}")
UPDATED_DOMAINS=$(echo "$ALL_DOMAINS" | sort | uniq | paste -sd ',' -)
gcloud recaptcha keys update ${{ secrets.FIREBASE_APPCHECK_SITE_KEY_GSE_ROAR_ADMIN }} --domains="$UPDATED_DOMAINS" --web

whitelist-pr-domains-roar-assessment:
name: Whitelist PR Domains on Firebase App Check for gse-roar-assessment
runs-on: ubuntu-latest
needs: build-and-preview

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Authenticate with Google Cloud SDK
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_GSE_ROAR_ASSESSMENT }}

- name: Set up Google Cloud SDK for gse-roar-assessment
uses: google-github-actions/setup-gcloud@v2
with:
project_id: gse-roar-assessment

- name: Update App Check Domains for gse-roar-assessment
run: |
CURRENT_DOMAINS=$(gcloud recaptcha keys describe ${{ secrets.FIREBASE_APPCHECK_SITE_KEY_GSE_ROAR_ASSESSMENT }} --format="value(webSettings.allowedDomains)" | tr ';' '\n')
NEW_DOMAIN=$(echo ${{ needs.build-and-preview.outputs.deployUrl }} | sed 's|https://||')
ALL_DOMAINS=$(echo -e "${CURRENT_DOMAINS}\n${NEW_DOMAIN}")
UPDATED_DOMAINS=$(echo "$ALL_DOMAINS" | sort | uniq | paste -sd ',' -)
gcloud recaptcha keys update ${{ secrets.FIREBASE_APPCHECK_SITE_KEY_GSE_ROAR_ASSESSMENT }} --domains="$UPDATED_DOMAINS" --web
Loading
Loading