Skip to content

Feedback

File Information

  • Path: pages/feedback.vue
  • Route: /feedback
  • Purpose: User feedback submission and management

Overview

The Feedback page allows users to submit feedback, bug reports, feature requests, and suggestions to improve the application. It provides a form for detailed feedback submission.

Key Features

  1. Feedback Form

    • Feedback type selection
    • Subject input
    • Description/body input
    • Priority selection (if applicable)
    • Attachment upload (optional)
  2. Feedback Types

    • Bug report
    • Feature request
    • General feedback
    • Support request
  3. Submission

    • Form validation
    • Feedback submission
    • Confirmation display
    • Email notification
  4. Feedback History

    • View submitted feedback
    • Feedback status
    • Response tracking

Components Used

  • Feedback form components
  • File upload components
  • Validation components
  • Status display components

Data Properties

javascript
{
  form: {
    type: 'general',
    subject: '',
    description: '',
    priority: 'medium',
    attachments: []
  },
  submitting: false,  // Submission state
  submitted: false,   // Submission status
  errors: {},        // Form errors
  feedbackHistory: [] // Previous feedback
}

Computed Properties

isFormValid

Validates form data

canSubmit

Checks if form can be submitted

Methods

submitFeedback()

Submits feedback:

  • Validates form
  • Submits feedback via API
  • Uploads attachments (if any)
  • Shows success message
  • Resets form
  • Handles errors

addAttachment(file)

Adds attachment to feedback:

  • Validates file
  • Adds to attachments array
  • Handles errors

loadFeedbackHistory()

Loads feedback history:

  • Fetches user feedback
  • Updates history list
  • Handles errors

API Endpoints

Submit Feedback

  • Endpoint: POST /feedback/submit
  • Request Body: Feedback data with attachments
  • Response: Feedback submission confirmation

Get Feedback History

  • Endpoint: GET /feedback/history
  • Response: Array of feedback objects

User Flow

  1. User navigates to feedback page
  2. User selects feedback type
  3. User fills out feedback form
  4. User adds attachments (optional)
  5. User submits feedback
  6. Feedback is sent to support team
  7. Confirmation message displayed
  8. User can view feedback history

Notes for Development

  • Page accessible to authenticated users
  • Form validation required
  • Attachments optional
  • Email sent to support team
  • Feedback tracked in system