Ui refactor part 2 #183
Reference in New Issue
Block a user
Delete Branch "feature/Ui-Rework-Pt2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Comments should work but there seems to be an API side bug not saving the comment text.
I didn't really check the submission flow because I didn't have any models that would pass the initial submit stage. Lot of this was written in a haze so logic could be screwed up.
Mapfix has a description, I just somehow chose the one that didn't have it set.
Limit feedback to logical errors or actual issues. Minor tweaks or enhancements can happen later.
@@ -0,0 +2,4 @@import { Button, Stack } from '@mui/material';import {MapfixInfo } from "@/app/ts/Mapfix";import {hasRole, Roles, RolesConstants} from "@/app/ts/Roles";import {SubmissionInfo, SubmissionStatus} from "@/app/ts/Submission"; // You'll need to create this type definitionlatent ai comment
I did in fact create the type definition
@@ -0,0 +86,4 @@}}if (hasRole(roles, RolesConstants.SubmissionReview)) {SubmissionReview and MapfixReview are separate permissions: the logic and availability of certain actions are different on Mapfixes and Submissions. So Reviewer means SubmissionReview for submissions and MapfixReview for mapfixes, same with Upload permission.
Here's my best shot at a complete table:
When is each button visible?
Multiple buttons can be visible at once.
@@ -0,0 +41,4 @@} else if (isMapfix) {// Fields for Mapfixfields = [{ key: 'Submitter', label: 'Submitter' },Inconsistent with submission fields label above
label: 'Submitter ID'There's also a dangling empty file located at
maps-service/web/src/app/ts/Game.ts, but I couldn't leave a review comment.Operations should probably show "View mapfix" instead of "View submission" on success when creating a mapfix
We're removing the AdminSubmit action since all new maps have been submitted. Future maps will all be submitted by the creator.