VNOI-Admin / OJ

A modern open-source online judge and contest platform system.
https://oj.vnoi.info
GNU Affero General Public License v3.0
153 stars 67 forks source link

Preselect the default categories when creating organization problems #372

Closed jalsol closed 7 months ago

jalsol commented 7 months ago

Description

Type of change: Refactor

What

image

Preselect the default category for problem group and problem types. It will select "Uncategorized" (or the first category by ID if "Uncategorized" does not exist).

Why

Reduce repetitive manual work for users.

How Has This Been Tested?

Tested on local version of VNOJ.

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

By submitting this pull request, I confirm that my contribution is made under the terms of the AGPL-3.0 License.