yeatmanlab / roar-dashboard

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

Make TanStack Query dev tools load conditionally #816

Closed maximilianoertel closed 3 weeks ago

maximilianoertel commented 4 weeks ago

Proposed changes

This PR updates the loading mechanism for the TanStack Query dev tools to ensure they are only loaded by default in the development environment.

For debugging purposes, the dev tools can still be accessed in environments where they were previously enabled (such as staging) by setting the VITE_QUERY_DEVTOOLS_ENABLED environment variable and running window.toggleDevtools() in the console.

Types of changes

Checklist

Justification of missing checklist items

n/a

Further comments

n/a


Ref https://github.com/yeatmanlab/roar/issues/318

github-actions[bot] commented 4 weeks ago

Coverage Report

Status Category Percentage Covered / Total
πŸ”΅ Lines 4.36% 336 / 7702
πŸ”΅ Statements 4.27% 362 / 8469
πŸ”΅ Functions 5.18% 98 / 1890
πŸ”΅ Branches 2.21% 102 / 4601
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/App.vue 0% 0% 0% 0% 33, 33-36, 35, 35, 42-44, 46-47, 49-53, 50-52, 55, 55, 57, 59-85, 87-89, 88, 91-103, 92-101, 95-100, 96-99, 102, 105-116, 106-107, 109-115, 110-115, 112-114, 113
Generated in workflow #455
github-actions[bot] commented 4 weeks ago

Visit the preview URL for this PR (updated for commit 6d9316d):

https://roar-staging--pr816-ref-318-query-compos-ktgilyci.web.app

(expires Tue, 01 Oct 2024 20:31:20 GMT)

πŸ”₯ via Firebase Hosting GitHub Action 🌎

Sign: 2631e9c58fd0104ecbfddd72a62245ddac467460

cypress[bot] commented 4 weeks ago

roar-dashboard-e2e    Run #7235

Run Properties:  status check no tests Notests #7235  •  git commit 6d9316dd5a: Component Tests for PR 816 "Make TanStack Query dev tools load conditionally" fr...
Project roar-dashboard-e2e
Branch Review ref/318/query-composables-dev-tools
Run status status check no tests Notests #7235
Run duration 01m 38s
Commit git commit 6d9316dd5a: Component Tests for PR 816 "Make TanStack Query dev tools load conditionally" fr...
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 1
Tests that passed  Passing 0
View all changes introduced in this branch β†—οΈŽ
richford commented 3 weeks ago

@maximilianoertel , can you rebase to see if that fixes the tests?