Skip to content

Remove chapter numbers from chapter titles - #1345

Open
ascholerChemeketa wants to merge 3 commits into
RunestoneInteractive:mainfrom
ascholerChemeketa:remove-chapt-numbers
Open

Remove chapter numbers from chapter titles#1345
ascholerChemeketa wants to merge 3 commits into
RunestoneInteractive:mainfrom
ascholerChemeketa:remove-chapt-numbers

Conversation

@ascholerChemeketa

Copy link
Copy Markdown
Contributor

Halts the inclusion of chapter/subchapter numbers into their titles.

Update the assignment builder to show explicit numbers.

(student facing doAssignment page was already updated to use explicit numbers)

Copilot AI lite review requested due to automatic review settings August 4, 2026 18:45

Copilot AI left a comment

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.

🟡 Not ready to approve

There is a verified typo in an aria-label ("Sections to readd") that should be corrected for accessibility.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

This PR removes chapter/subchapter numbers from stored chapter/subchapter titles while still providing explicit numeric fields so the assignment builder UI can display numbering consistently without embedding it into the title text.

Changes:

  • Stop prefixing chapter/subchapter titles with their numeric identifiers during course build/ingest.
  • Extend readings/question payloads with explicit chapter_num, sub_chapter_num, chapter_name, and sub_chapter_name fields.
  • Update the assignment builder readings UI (and tests/styles) to render labels with explicit numeric prefixes.
File summaries
File Description
components/rsptx/db/crud/question.py Adds explicit chapter/subchapter number fields into the readings tree payload.
components/rsptx/build_tools/core.py Removes number prefixes from stored chapter_name / sub_chapter_name values during ingest.
bases/rsptx/assignment_server_api/routers/instructor.py Augments assignment question payload with chapter/subchapter names and numbers from DB joins.
bases/rsptx/assignment_server_api/assignment_builder/src/types/exercises.ts Extends Exercise type with optional chapter/subchapter name/number fields.
bases/rsptx/assignment_server_api/assignment_builder/src/components/routes/AssignmentBuilder/components/reading/ReadingsListView.tsx Updates readings list container (but introduces an aria-label typo).
bases/rsptx/assignment_server_api/assignment_builder/src/components/routes/AssignmentBuilder/components/reading/components/ChooseReadingsButton.tsx Formats tree node labels with explicit numeric prefixes.
bases/rsptx/assignment_server_api/assignment_builder/src/components/routes/AssignmentBuilder/components/reading/components/ChooseReadingsButton.spec.tsx Updates tests to match numbered label rendering.
bases/rsptx/assignment_server_api/assignment_builder/src/components/routes/AssignmentBuilder/components/reading/AssignmentReadingsTable.tsx Renders chapter/section cells using explicit numbering + improved filtering.
bases/rsptx/assignment_server_api/assignment_builder/src/components/routes/AssignmentBuilder/components/reading/AssignmentReadingsTable.spec.tsx Updates table tests to match new display/filter behavior.
bases/rsptx/assignment_server_api/assignment_builder/src/components/routes/AssignmentBuilder/components/reading/AssignmentReadingsTable.module.css Adds styling to support the new chapter cell layout.
Review details
  • Files reviewed: 10/10 changed files
  • Comments generated: 1
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.


return (
<section className={styles.card} aria-label="Sections to read">
<section className={styles.card} aria-label="Sections to readd">
Copilot AI review requested due to automatic review settings August 4, 2026 18:50

Copilot AI left a comment

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.

🟢 Ready to approve

The changes consistently separate numeric identifiers from stored titles and update the API/UI/tests to render numbering explicitly without introducing correctness regressions.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details
  • Files reviewed: 9/9 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

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