Skip to content

Teacher onboarding overview #1559

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

Open
wants to merge 16 commits into
base: redesign-2024
Choose a base branch
from
Open

Conversation

mwtrew
Copy link
Contributor

@mwtrew mwtrew commented Jun 30, 2025

Adds a new Overview page, which teachers are directed to after sign-in. Also adds this to the navbar.

Copy link

codecov bot commented Jun 30, 2025

Codecov Report

Attention: Patch coverage is 44.44444% with 20 lines in your changes missing coverage. Please review.

Project coverage is 40.27%. Comparing base (23dd441) to head (174cf85).
Report is 214 commits behind head on redesign-2024.

Files with missing lines Patch % Lines
src/app/components/pages/Overview.tsx 45.45% 12 Missing ⚠️
src/test/pages/Overview.cy.tsx 0.00% 6 Missing and 1 partial ⚠️
src/app/state/actions/index.tsx 83.33% 1 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##           redesign-2024    #1559      +/-   ##
=================================================
- Coverage          40.42%   40.27%   -0.15%     
=================================================
  Files                503      511       +8     
  Lines              22484    22706     +222     
  Branches            7438     7527      +89     
=================================================
+ Hits                9089     9145      +56     
- Misses             12761    12931     +170     
+ Partials             634      630       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mwtrew
Copy link
Contributor Author

mwtrew commented Jul 8, 2025

I'm going to put off fixing these tests until we have a decision on how navigation will work.

@mwtrew mwtrew marked this pull request as ready for review July 15, 2025 15:50
Copy link
Contributor

@sjd210 sjd210 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of very minor things, but otherwise this all looks good and solid

@@ -411,7 +411,7 @@ export const logInUser = (provider: AuthenticationProvider, credentials: Credent
// requestCurrentUser gives us extra information like auth settings, preferences and time until session expiry
dispatch(requestCurrentUser() as any);
dispatch({type: ACTION_TYPE.USER_LOG_IN_RESPONSE_SUCCESS, user: result.data});
history.replace(persistence.pop(KEY.AFTER_AUTH_PATH) || "/");
history.replace(getAfterAuthPath(result.data));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we should be doing this for MFA users too (but currently don't as they return from the function early). Particularly assuming that at some point in the future we want to open MFA beyond just admin accounts.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, also made me realise we're not doing the right thing for initial signup. I'll address that!

<Container className="overview-padding mw-1600">
<div id={"page-title"} className={"py-3"}>
<PageTitle currentPageTitle={"Overview"} />
</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that I think this is very important given that other pages don't have this anyway, but the designs include a horizontal bar here. I think it vaguely helps distinguish the heading from subheading. Is it intentionally not included now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed we removed the <hr /> from pages on Ada CS in general a while ago, so that's why I didn't include it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants