Cal-CS-61A-Staff / cs61a-apps

All CS 61A apps go here!
MIT License
13 stars 9 forks source link

feat(howamidoing): add custom display fn #397

Closed chrononyan closed 3 years ago

chrononyan commented 3 years ago

Allows config.js to optionally override the displayed name or score of an assignment, or add some description text. Feels a bit hacky, suggestions welcome.

Sample:

Topic("Homework", [
  Assignment(`Homework 1`, 2, (props) => ({ name: `${props.name} (dropped)` })),
  ...range(2, 11).map((i) => Assignment(`Homework ${i}`, 2)),
], Infinity, null, () => ({ description: `Remaining slip days: 1` }))
image
pusherbot commented 3 years ago

All PR builds shut down.