- feedback.py: add GET /feedback/status endpoint (returns {enabled: bool})
so frontend can probe on mount instead of optimistic-enable; remove
unused get_db import
- FeedbackButton.vue: probe /feedback/status on mount, start hidden;
drop redundant 503-hide path (status probe makes it redundant)
- pyproject.toml: declare requests>=2.31 (used by feedback.py Forgejo calls)
- tests/api/test_feedback.py: 7 tests — status endpoint (no-token, token,
demo mode), POST 503/403, happy path with mocked Forgejo, 502 on error
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| export.py | ||
| feedback.py | ||
| health.py | ||
| inventory.py | ||
| ocr.py | ||
| receipts.py | ||
| recipes.py | ||
| settings.py | ||
| staples.py | ||