Implement MVP: Anonymous feedback submission (User Story 1)
Complete implementation of Phase 1-3 (64 tasks): - Phase 1: Project setup with Flask, pytest, configuration - Phase 2: Core infrastructure (auth, models, services, testing) - Phase 3: Anonymous feedback submission with file uploads Features: - Anonymous feedback submission (text and/or up to 3 file attachments) - Multi-language support (any language accepted) - File validation (type, size) and virus scanning (ClamAV) - Product management with active/archived status - File-based storage with YAML metadata - User authentication system (Flask-Login) - CSRF protection and rate limiting - Test coverage: 10 passing tests (contract + integration) Security: - No IP address logging (FR-055 compliance) - File type whitelist and size limits (10MB max) - Virus scanning with graceful degradation - Filename sanitization and secure storage Test Results: - 8 contract tests passed - 2 integration tests passed - End-to-end workflow verified 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Submit Feedback - {{ product.name }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Submit Feedback</h1>
|
||||
<h2>{{ product.name }}</h2>
|
||||
|
||||
<p>We value your feedback. Please share your thoughts, report issues, or suggest improvements below.</p>
|
||||
|
||||
<form method="POST" enctype="multipart/form-data">
|
||||
<div class="form-group">
|
||||
<label for="feedback_text">Your Feedback</label>
|
||||
<textarea id="feedback_text" name="feedback_text"
|
||||
placeholder="Describe your feedback in any language..."></textarea>
|
||||
<p style="font-size: 0.9em; color: #666; margin-top: 5px;">
|
||||
You can write in any language. Optional if you attach files.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="files">Attachments (Optional)</label>
|
||||
<input type="file" id="files" name="files" multiple>
|
||||
<p style="font-size: 0.9em; color: #666; margin-top: 5px;">
|
||||
You can attach up to 3 files (max 10MB each). Allowed types: images (PNG, JPG, GIF),
|
||||
documents (PDF, TXT, DOC, DOCX), spreadsheets (XLS, XLSX, CSV).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div style="background-color: #f8f9fa; padding: 15px; border-radius: 4px; margin: 20px 0;">
|
||||
<h3 style="margin-top: 0; font-size: 1.1em;">Privacy Notice</h3>
|
||||
<ul style="margin: 10px 0; padding-left: 20px; line-height: 1.8;">
|
||||
<li>Your feedback is submitted anonymously</li>
|
||||
<li>We do not collect or store your IP address</li>
|
||||
<li>All files are scanned for malware</li>
|
||||
<li>Please do not include personal information unless necessary</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<button type="submit">Submit Feedback</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user