Skip to content

Auto-open single PDF (or maybe regex-based?) in grading panel #12482

Description

@SamsTheNerd

What problem are you trying to solve with Submitty
When grading, the auto open feature only works when files share the same name. If students are not naming their files the same, then you currently have to use the mouse to open up the file, which is mildly annoying when speeding through quick-to-verify problems that can otherwise be graded with just keyboard controls.

Describe the way you'd like to solve this problem
Maybe one of:

  1. special behavior for when there's a single file submitted by the student, have it be automatically opened.
  2. This would require more UI than it's maybe worth, but the ability to open all files whose filepath matches a provided regex could be a more general solution.

I believe for at least the first option it should be a simple implementation somewhere around https://github.com/Submitty/Submitty/blob/cdd26763b6bdf791c8f863e95e938e776601a41f/site/ts/ta-grading-panels-init.ts#L274C33-L278C36 i don't have submitty dev env set up though so can't currently implement and test it myself :/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions