Skip to content

My Ada dashboard – student#2026

Merged
sjd210 merged 19 commits intomainfrom
feature/my-ada-dashboard-student
Mar 24, 2026
Merged

My Ada dashboard – student#2026
sjd210 merged 19 commits intomainfrom
feature/my-ada-dashboard-student

Conversation

@jacbn
Copy link
Copy Markdown
Contributor

@jacbn jacbn commented Mar 12, 2026

Adds an Overview page for students. Everything should still be behind FeatureFlag.ENABLE_ADA_SIDEBARS.

The next plan is to overhaul the notifications, so please ignore any issues / oddities with the notification counter and where it should/n't be for now.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 18, 2026

Codecov Report

❌ Patch coverage is 70.58824% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.08%. Comparing base (66208ca) to head (eb46a0e).
⚠️ Report is 43 commits behind head on main.

Files with missing lines Patch % Lines
src/test/pages/Overview.cy.tsx 0.00% 3 Missing ⚠️
src/app/components/pages/Overview.tsx 85.71% 1 Missing ⚠️
src/test/pages/TeacherOnboardingModal.cy.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2026      +/-   ##
==========================================
- Coverage   43.12%   43.08%   -0.05%     
==========================================
  Files         578      579       +1     
  Lines       24902    24917      +15     
  Branches     8258     8230      -28     
==========================================
- Hits        10740    10735       -5     
- Misses      14112    14125      +13     
- Partials       50       57       +7     

☔ 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.

@jacbn jacbn mentioned this pull request Mar 23, 2026
Copy link
Copy Markdown
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.

Perhaps just a url change, but also a question about Tutor support

Comment thread src/app/components/pages/Overview.tsx Outdated
title: "Teacher mentoring",
icon: {name: "icon-group", color: "secondary"},
bodyText: "Participate in live sessions with an experienced Ada CS mentor to get advice on teaching core topics.",
clickUrl: "/mentoring",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this be /teacher_mentoring? This doesn't currently lead anywhere


export const Overview = () => {
const user = useAppSelector(selectors.user.orNull);
return isTeacherOrAbove(user) ? <TeacherOverview /> : <StudentOverview />;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

On MyAdaSidebar you've added support for tutors, however here the links exist assuming that a tutor would have a student sidebar. This creates some strange discongruency (e.g. clicking a link and staying in the My Ada section, but not being in one of the sidebar locations).

Tutors aren't really supported on Ada anyway, right? If there are plans to enable support (which I didn't think was the case - but you coding a case for it makes me doubt that?), this should probably be fixed so tutors also have a fitting overview. Otherwise, it's not a big deal.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I needed this because the tests assume tutor accounts exist, and the header navigation (now sidebar navigation) for tutors is being tested on Ada despite them not really existing; there is no distinct tutor overview page, however, because tutors don't really exist on Ada. It's a mess. I don't want to go to the effort of building a tutor page for it never to be used, so perhaps we just change this to isTutorOrAbove for consistency's sake and just deal with tests being shown to tutors, even though they can't really access them.

Copy link
Copy Markdown
Contributor Author

@jacbn jacbn Mar 23, 2026

Choose a reason for hiding this comment

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

Regardless, I've realised that tests need to run with all (non-_TEST_FEATURE_FLAG) feature flags off, which this branch wasn't doing. I'll need to revert that, which includes the tutor changes.

When we remove the flag, I'll re-apply these changes and set the above fn to isTutorOrAbove.

@sjd210 sjd210 merged commit a5d0727 into main Mar 24, 2026
10 checks passed
@sjd210 sjd210 deleted the feature/my-ada-dashboard-student branch March 24, 2026 10:10
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