Skip to content

Commit f7e9406

Browse files
committed
Refine project edit UI and imagery defaults
Changes: - Update action help texts (reset/close) for clearer, consistent wording. - Shorten project name hint to "Project name cannot be edited". - Remove some explanatory helper paragraphs to reduce redundancy (detailed instructions, team header, imagery label helper). - Rename "Custom Imagery" header to "Imagery JSON Definition" and change section label to "Imagery". - Increase custom imagery textarea rows from 18 to 26 and remove the separate label to favor inline placeholder. - Reword locked settings message and action preview heading for clarity. - In rapid-imagery conversion, change default minZoom from 0 to 12 to avoid overly broad low-zoom defaults when extent zoom is unspecified.
1 parent b6dcdc0 commit f7e9406

3 files changed

Lines changed: 9 additions & 18 deletions

File tree

composables/useProjectEditActions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const PROJECT_EDIT_ACTIONS: ProjectEditActionCard[] = [
3838
confirmationMessage: 'All mapping tasks will be restored to their original unassigned state. This action is permanent and cannot be undone.',
3939
confirmationPrimaryLabel: 'Yes, Reset',
4040
confirmationVariant: 'danger',
41-
helpText: 'Removes all task assignments, resets task progress, and keeps project-level settings and team members.',
41+
helpText: 'Removes all task assignments, Resets task progress to “Not Started”, Keeps uploaded imagery, project settings, and team members',
4242
},
4343
{
4444
id: 'close',
@@ -50,7 +50,7 @@ export const PROJECT_EDIT_ACTIONS: ProjectEditActionCard[] = [
5050
confirmationMessage: 'Closing this project will change its status to Completed. Make sure all tasks are completed before proceeding.',
5151
confirmationPrimaryLabel: 'Yes, Close',
5252
confirmationVariant: 'primary',
53-
helpText: 'This will mark the project as completed. Verify that all tasks have been completed before continuing.',
53+
helpText: 'This will mark the project as Completed. Verify that all tasks have been completed, as the project will be closed once you continue.',
5454
},
5555
{
5656
id: 'delete',

pages/workspace/[id]/projects/[projectId]/edit.vue

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
size="18"
9595
no-margin
9696
/>
97-
<span>Project name is preserved on save and cannot be edited here.</span>
97+
<span>Project name cannot be edited</span>
9898
</p>
9999
</div>
100100

@@ -123,7 +123,6 @@
123123
>
124124
<header class="project-edit-panel-header">
125125
<h2>Detailed Task Instructions</h2>
126-
<p>These instructions are shown to mappers and validators inside the task editor.</p>
127126
</header>
128127

129128
<client-only fallback-tag="div">
@@ -139,23 +138,16 @@
139138
class="project-edit-panel"
140139
>
141140
<header class="project-edit-panel-header">
142-
<h2>Custom Imagery</h2>
143-
<p>Provide one custom imagery JSON object for this project.</p>
141+
<h2>Imagery JSON Definition</h2>
144142
</header>
145143

146144
<div class="project-edit-field">
147-
<label
148-
class="project-edit-label"
149-
for="project-edit-custom-imagery"
150-
>
151-
Imagery configuration
152-
</label>
153145
<textarea
154146
id="project-edit-custom-imagery"
155147
v-model="form.customImagery"
156148
class="form-control project-edit-textarea project-edit-json-textarea"
157149
:class="{ 'is-invalid': imageryError }"
158-
rows="18"
150+
rows="26"
159151
placeholder="Paste one custom imagery JSON object."
160152
:aria-describedby="imageryError ? 'project-edit-custom-imagery-error' : undefined"
161153
:aria-invalid="Boolean(imageryError)"
@@ -184,7 +176,6 @@
184176
>
185177
<header class="project-edit-panel-header">
186178
<h2>Team Members &amp; Assign Roles</h2>
187-
<p>Search workspace users, add them to this project, and change their role.</p>
188179
</header>
189180

190181
<div class="project-edit-search-shell">
@@ -398,7 +389,7 @@
398389

399390
<div class="project-edit-message-copy">
400391
<strong>Settings cannot be changed</strong>
401-
<p>These settings are locked once tasks have been generated for the project.</p>
392+
<p>These settings are currently locked and cannot be modified.</p>
402393
</div>
403394
</article>
404395
</section>
@@ -442,7 +433,7 @@
442433
</div>
443434

444435
<div class="project-edit-message-copy">
445-
<strong>What this action does</strong>
436+
<strong>What this action will do?</strong>
446437
<p>{{ action.helpText }}</p>
447438
</div>
448439
</article>
@@ -528,7 +519,7 @@ const imagerySchemaUrl = import.meta.env.VITE_IMAGERY_SCHEMA;
528519
const sections: ProjectEditSection[] = [
529520
{ id: 'details', label: 'Project details' },
530521
{ id: 'instructions', label: 'Instructions' },
531-
{ id: 'imagery', label: 'Custom Imagery' },
522+
{ id: 'imagery', label: 'Imagery' },
532523
{ id: 'team', label: 'Team Members' },
533524
{ id: 'configuration', label: 'Configuration' },
534525
{ id: 'actions', label: 'Actions' },

util/rapid-imagery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function convertToRapidImagerySource(customImagerySource: ImagerySource |
6868
// this is the bare minimum required configuration.
6969
// Has to be done better.
7070
const extent: unknown = customImagerySource.extent;
71-
const minZoom = isExtentWithZoom(extent) ? (extent.min_zoom ?? 0) : 0;
71+
const minZoom = isExtentWithZoom(extent) ? (extent.min_zoom ?? 12) : 12;
7272
const maxZoom = isExtentWithZoom(extent) ? (extent.max_zoom ?? 22) : 22;
7373
return {
7474
id: customImagerySource.id,

0 commit comments

Comments
 (0)