Ui refactor part 2 #183

Merged
itzaname merged 18 commits from feature/Ui-Rework-Pt2 into staging 2025-06-09 00:33:27 +00:00
Owner
  • Added mobile nav
  • Reworked maps page
  • Reworked mapfix/submission pages
  • Reworked submit pages
  • Reworked operation page

Comments should work but there seems to be an API side bug not saving the comment text.

- Added mobile nav - Reworked maps page - Reworked mapfix/submission pages - Reworked submit pages - Reworked operation page Comments should work but there seems to be an API side bug not saving the comment text.
itzaname added the frontend label 2025-06-08 20:20:38 +00:00
itzaname self-assigned this 2025-06-08 20:20:38 +00:00
itzaname added 11 commits 2025-06-08 20:20:38 +00:00
Rework operation page
All checks were successful
continuous-integration/drone/push Build is passing
6c42d0e9b4
Add before/after image, cleanup submission references in mapfix
All checks were successful
continuous-integration/drone/push Build is passing
3b022fe93d
Resolve errors warnings
All checks were successful
continuous-integration/drone/push Build is passing
4645a5b5f4
Pass through profile images
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
76b97292c6
itzaname requested review from Quaternions 2025-06-08 20:20:38 +00:00
Author
Owner
image.png image.png image.png image.png
<img width="1668" alt="image.png" src="attachments/fe3f1bc4-1345-4002-9eae-2833bf33e6d4"> <img width="1674" alt="image.png" src="attachments/2febd32e-412a-4662-bb44-b581e411fa3b"> <img width="1679" alt="image.png" src="attachments/8403a622-e604-4fa5-b2f3-e7d55bbd7ebf"> <img width="1664" alt="image.png" src="attachments/1bcd1f2b-eeb2-479e-a9f2-03dcc68afc47">
Author
Owner
image.png image.png image.png
<img width="1675" alt="image.png" src="attachments/4c214b38-b327-4db6-805f-a775aa1f2f3b"> <img width="1673" alt="image.png" src="attachments/a6f9c4de-99da-4c39-b3f9-d5ce700632a2"> <img width="1677" alt="image.png" src="attachments/2d0e5572-0b3f-4d42-ba1b-93a5d051c47e">
283 KiB
302 KiB
322 KiB
Author
Owner

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.

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.
Author
Owner

Mapfix has a description, I just somehow chose the one that didn't have it set.

image.png
Mapfix has a description, I just somehow chose the one that didn't have it set. <img width="1672" alt="image.png" src="attachments/f4ca6c2d-d9dd-46d9-aa8a-578e90d49fe4">
408 KiB
itzaname added 1 commit 2025-06-08 20:34:37 +00:00
Remove vibe header comments
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
3bf7ed5b12
Author
Owner

Limit feedback to logical errors or actual issues. Minor tweaks or enhancements can happen later.

Limit feedback to logical errors or actual issues. Minor tweaks or enhancements can happen later.
Quaternions requested changes 2025-06-08 22:42:03 +00:00
Dismissed
@@ -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 definition
Owner

latent ai comment

latent ai comment
Author
Owner

I did in fact create the type definition

I did in fact create the type definition
itzaname marked this conversation as resolved
@@ -0,0 +86,4 @@
}
}
if (hasRole(roles, RolesConstants.SubmissionReview)) {
Owner

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.

Action Has Role When Current Status is One of Additional Restructions
Submit Submitter UnderConstruction, ChangesRequested
Reset Submitting Submitter Submitting UpdatedAt is older than 10s
Revoke Submitter Submitted, ChangesRequested
Bypass Submit Review ChangesRequested
Accept Review Submitted
Validate Review Accepted
Reset Validating Review Validating UpdatedAt is older than 10s
Reject Review Submitted
Request Changes Review Validated, Accepted, Submitted
Upload Upload Validated
Reset Uploading Upload Uploading UpdatedAt is older than 10s
Admin Submit Review ChangesRequested Only on Submissions
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. Action | Has Role | When Current Status is One of | Additional Restructions ---------------|-----------|-----------------------|--------- Submit | Submitter | UnderConstruction, ChangesRequested Reset Submitting| Submitter | Submitting | UpdatedAt is older than 10s Revoke | Submitter | Submitted, ChangesRequested Bypass Submit | Review | ChangesRequested Accept | Review | Submitted Validate | Review | Accepted Reset Validating| Review | Validating | UpdatedAt is older than 10s Reject | Review | Submitted Request Changes | Review | Validated, Accepted, Submitted Upload | Upload | Validated Reset Uploading | Upload | Uploading | UpdatedAt is older than 10s Admin Submit | Review | ChangesRequested | Only on Submissions
Quaternions marked this conversation as resolved
@@ -0,0 +41,4 @@
} else if (isMapfix) {
// Fields for Mapfix
fields = [
{ key: 'Submitter', label: 'Submitter' },
Owner

Inconsistent with submission fields label above label: 'Submitter ID'

Inconsistent with submission fields label above `label: 'Submitter ID'`
itzaname marked this conversation as resolved
Owner

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.

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.
itzaname added 1 commit 2025-06-08 22:45:48 +00:00
Remove rogue vibe comment
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
43968e09c5
itzaname added 1 commit 2025-06-08 22:48:39 +00:00
Remove empty game.ts
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
9611f027ca
Owner

Operations should probably show "View mapfix" instead of "View submission" on success when creating a mapfix

Operations should probably show "View mapfix" instead of "View submission" on success when creating a mapfix
itzaname added 1 commit 2025-06-09 00:20:31 +00:00
Fix logic for buttons
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
d32892637d
itzaname added 1 commit 2025-06-09 00:21:36 +00:00
Fix submitter OCD
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
f3a12458c6
itzaname added 1 commit 2025-06-09 00:24:29 +00:00
Update status texts
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
0e3e21b1a0
Owner

We're removing the AdminSubmit action since all new maps have been submitted. Future maps will all be submitted by the creator.

We're removing the AdminSubmit action since all new maps have been submitted. Future maps will all be submitted by the creator.
itzaname requested review from Quaternions 2025-06-09 00:26:00 +00:00
itzaname added 1 commit 2025-06-09 00:29:08 +00:00
Switch operation language to "Next Step"
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
a57e53ade7
Quaternions approved these changes 2025-06-09 00:32:54 +00:00
itzaname merged commit 8f2a0b53e4 into staging 2025-06-09 00:33:27 +00:00
itzaname deleted branch feature/Ui-Rework-Pt2 2025-06-09 00:33:28 +00:00
Sign in to join this conversation.