Skip to content

Redesign My Assignments page #1283

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

Merged
merged 12 commits into from
Jan 29, 2025
Merged

Redesign My Assignments page #1283

merged 12 commits into from
Jan 29, 2025

Conversation

jacbn
Copy link
Contributor

@jacbn jacbn commented Jan 27, 2025

Points of note:

  • "x days ago" logic (DateString.ts) is worth a particular look. Are there any edge cases here?
  • Do we think the "x% Attempted/Correct" divs look okay without a background? It's more noticably offset, but adding more colour might look worse.
  • I haven't changed this at all, but is the ordering of results worth looking into? Should the most imminently due assignments show first as they do for My Tests?

Any other design feedback welcome. There's not much to go off, so be as opinionated as you'd like.

const [limit, setLimit] = useState(INITIAL_NO_ASSIGNMENTS);

const pageHelp = <span>
Any {siteSpecific("assignments", "quizzes")} you have been set will appear here.<br />
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'm leaving the siteSpecifics in here for now as I have a feeling we'll be merging these back again eventually.

Copy link

codecov bot commented Jan 28, 2025

Codecov Report

Attention: Patch coverage is 18.69919% with 100 lines in your changes missing coverage. Please review.

Project coverage is 36.18%. Comparing base (2e101ab) to head (55c0cfa).
Report is 14 commits behind head on redesign-2024.

Files with missing lines Patch % Lines
src/app/components/elements/Assignments.tsx 8.33% 33 Missing ⚠️
...c/app/components/elements/layout/SidebarLayout.tsx 16.21% 31 Missing ⚠️
src/app/components/pages/MyAssignments.tsx 20.83% 19 Missing ⚠️
src/app/components/elements/DateString.ts 17.64% 14 Missing ⚠️
src/app/components/elements/HoverableTooltip.tsx 60.00% 2 Missing ⚠️
.../components/elements/modals/ExtendDueDateModal.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##           redesign-2024    #1283      +/-   ##
=================================================
- Coverage          36.27%   36.18%   -0.10%     
=================================================
  Files                468      469       +1     
  Lines              20386    20477      +91     
  Branches            6688     6017     -671     
=================================================
+ Hits                7396     7410      +14     
- Misses             12329    13029     +700     
+ Partials             661       38     -623     

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

Copy link
Contributor

@axlewin axlewin left a comment

Choose a reason for hiding this comment

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

Looks good - I've made a couple of (very) minor suggestions, but I like the overall feel.

In terms of code neatness I'm wondering if the student dashboard assignment cards ought to be refactored to use some of the scss you've added here to avoid duplication, but that doesn't affect this PR.

To address your comments: I think the "% attempted/complete" look fine as they are, adding more colour here might be overwhelming. I do think ordering of assignments by due dates is a good idea, especially since we already do this for tests.

jacbn added 6 commits January 29, 2025 10:55
Any date fields in an `AssignmentDTO`s can be of type `number`. We were usually getting around this with `.valueOf`, but we ought to fix the type so we can't introduce errors.
@axlewin axlewin merged commit 061bff9 into redesign-2024 Jan 29, 2025
8 checks passed
@axlewin axlewin deleted the redesign/my-assignments branch January 29, 2025 13:17
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.

2 participants