Skip to content

Feature/editor layout - #2

Open
ango-dev wants to merge 2 commits into
BridgeSuite:mainfrom
ango-dev:feature/editor-layout
Open

ango-dev wants to merge 2 commits into
BridgeSuite:mainfrom
ango-dev:feature/editor-layout

Conversation

@ango-dev

Copy link
Copy Markdown

Pull Request: Tidier editor

Builds on the UC Davis theme PR. Until that is merged, its commit also shows in this diff.

Description

What does this PR do?
Cuts the scrolling and clutter in the editor:

  • One card per part:
    • label, name, a narrow points box and delete on one row;
    • one strip for answer type, grading, answer lines and sketch;
    • the private rubric below.
  • TA note: when the AI rubric is primary, the optional TA note folds away until it's needed. When a person grades, it stays open.
  • Toolbar: points, exports and Finalize move to one toolbar; Save and Cancel stay in the header; Delete moves to the bottom.
  • Look: one pill style replaces the purple and amber variants, and the LaTeX preview is a slim line instead of a boxed copy.

Type of Change

  • New feature (non-breaking change that adds functionality)

Educator/Student Impact

  • Educators creating assignments

JSON Format Changes

  • No changes to JSON format

Testing

I have tested this on:

  • Chrome (Chromium), with the handwritten fixture
  • Firefox
  • Safari
  • Edge

npm test: 20 of 20 suites pass, including the instructor-UI, no-dialog and export hash suites.

PDF Generation / Gradescope Compatibility

  • No changes to PDF generation
  • No impact on Gradescope

Breaking Changes

  • No

Additional Notes

Changes were made with an AI coding assistant (Claude) and reviewed by me.

- The academic scale is re-coloured with the brand tokens ucdavis.edu
  declares (--ucd-blue #022851, --brand-primary-*), so every screen follows;
  aggie-500 (#13639e) for page titles and the header band, and Aggie Gold
  (#ffbf00) as the accent.
- Header: the site's #13639e band with a gold wordmark (Target, pts and the
  Finalize help circle drawn in white on it); footer #14447a. Page titles are
  heavy blue with the site's row of gold dots.
- Buttons as on the site: 5px corners, bold; navy for ordinary actions, a new
  gold `accent` variant for the one that finishes the job (Export on the
  dashboard, Save in the editor). Cards are 12px.
- Type: Figtree replaces Inter and Merriweather. It is the free (OFL) face
  closest to UC Davis's licensed Proxima Nova, self-hosted with its notice;
  proxima-nova is named first for computers that have it. Headings are the
  same face at a heavy weight, as on the site.
- bundle-tests and the README follow the new palette ends and the one face.
  The exports are unchanged: the export hash tests are byte-identical.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JxJ2SDjshGhT77PBwFrVVJ
… toolbar)

- Each part is one card: its label, name, a narrow points box and delete on
  one row; the description under it; one strip for how it is answered and
  graded (Answer, Graded by, Answer lines, Sketch, pages); the private
  rubric and grader note below. One pill style replaces the purple and
  amber variants, and the help sentence repeated on every part is one short
  hint beside the rubric.
- When the AI rubric is primary, the optional TA note is folded behind
  "Add a TA note" until it is wanted or has text. When a person grades, the
  note is the guidance and is always open.
- The header keeps Cancel and Save. Points, the exports and Finalize move to a
  toolbar at the top of the page in three groups; Delete moves to the foot.
- The LaTeX preview is a slim line under its field instead of a boxed copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JxJ2SDjshGhT77PBwFrVVJ

This branch has not been deployed

No deployments
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