Skip to content

feat(frontend-report-form): Add image validation and zoom functionality#287

Merged
durante-stephanie merged 3 commits intodevelopfrom
feature/report-form
Jan 9, 2026
Merged

feat(frontend-report-form): Add image validation and zoom functionality#287
durante-stephanie merged 3 commits intodevelopfrom
feature/report-form

Conversation

@durante-stephanie
Copy link
Copy Markdown
Contributor

Enhance the item report form with image validation to ensure at least one photo is uploaded. Implement zoom functionality for images in the detail modal, improving user experience when viewing images.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ AI Code Analysis: I found some potential issues for you to review.


<div class="zoom-content">
<img [src]="currentImageUrl()"
class="zoomed-image"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Review: Indentation for multi-line element attributes should be at least a double tab to indicate continuation, as per AppDev Coding Guidelines.

           class="zoomed-image" 

<div class="zoom-content">
<img [src]="currentImageUrl()"
class="zoomed-image"
alt="Zoomed Item"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Review: Indentation for multi-line element attributes should be at least a double tab to indicate continuation, as per AppDev Coding Guidelines.

           alt="Zoomed Item"

<img [src]="currentImageUrl()"
class="zoomed-image"
alt="Zoomed Item"
(click)="$event.stopPropagation()">
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Review: Indentation for multi-line element attributes should be at least a double tab to indicate continuation, as per AppDev Coding Guidelines.

           (click)="$event.stopPropagation()">

<label>Upload Photo:
<small>(Upload if available, max 5 photos)</small></label>
<label>Upload Photo <span class="required-asterisk">*</span>:
<small>(Required, max 5 photos)</small>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Review: Indentation for multi-line elements should be at least a double tab to indicate continuation, as per AppDev Coding Guidelines.

    <small>(Required, max 5 photos)</small>

[disabled]="isSubmitting || reportForm.invalid"
[title]="reportForm.invalid
[disabled]="isSubmitting"
[title]="reportForm.invalid || imageError
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Review: Indentation for multi-line element attributes should be at least a double tab to indicate continuation, as per AppDev Coding Guidelines.

      [title]="reportForm.invalid || imageError


onSubmit(): void {
const totalImages = this.selectedFiles.length
+ this.photoUrlsFormArray.length;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Review: Indentation for multi-line variable declarations should be at least a double tab to indicate continuation, as per AppDev Coding Guidelines.

        + this.photoUrlsFormArray.length;

@durante-stephanie durante-stephanie merged commit f7b77a5 into develop Jan 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants