yeatmanlab / roar-dashboard

A dashboard to administer ROAR assessments
https://roar.education
Other
4 stars 4 forks source link

Extend `useUserType` with super admin capability check #778

Closed maximilianoertel closed 1 month ago

maximilianoertel commented 1 month ago

Proposed changes

This PR extends the useUserType composable introduced in #751 with the capability to check for super admin status.

Types of changes

Checklist

Justification of missing checklist items

n/a

Further comments

n/a

github-actions[bot] commented 1 month ago

Coverage Report

Status Category Percentage Covered / Total
šŸ”µ Lines 1.19% 92 / 7689
šŸ”µ Statements 1.19% 98 / 8196
šŸ”µ Functions 0.98% 20 / 2034
šŸ”µ Branches 0.71% 31 / 4318
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/composables/useUserType.js 100% 87.5% 100% 100%
src/constants/auth.js 100% 100% 100% 100%
src/pages/HomeSelector.vue 0% 0% 0% 0% 36, 36-37, 37-38, 38, 40-42, 44-45, 47-53, 48-53, 51-52, 55-56, 58, 60-63, 61, 61-62, 65-67, 66, 66, 69-71, 73-75, 77, 79, 79-80, 80, 82-88, 83-87, 84, 86, 89-91, 94-97, 95-96, 101, 105-108, 107, 111-129, 112-114, 116-120, 117-119, 122-123, 123, 125-128, 126-127, 133-135, 138-150, 139-142, 140-141, 143, 143-149, 145-148, 147, 3, 5
Generated in workflow #189
github-actions[bot] commented 1 month ago

Visit the preview URL for this PR (updated for commit 4ae9f60):

https://roar-staging--pr778-enh-318-extend-usert-6klxmx4n.web.app

(expires Thu, 12 Sep 2024 15:43:16 GMT)

šŸ”„ via Firebase Hosting GitHub Action šŸŒŽ

Sign: 2631e9c58fd0104ecbfddd72a62245ddac467460

ROAR
cypress[bot] commented 1 month ago

roar-dashboard-e2e    Run #5707

Run Properties:  status check passed Passed #5707  •  git commit 4ae9f601ab: Tests for PR 778 "Enh/318/extend usertype composable" from commit "4ae9f601abd12...
Project roar-dashboard-e2e
Branch Review enh/318/extend-usertype-composable
Run status status check passed Passed #5707
Run duration 04m 31s
Commit git commit 4ae9f601ab: Tests for PR 778 "Enh/318/extend usertype composable" from commit "4ae9f601abd12...
Committer Maximilian Oertel
View all properties for this run ā†—ļøŽ

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 26
View all changes introduced in this branch ā†—ļøŽ