You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
oabrivard 04819aa926 Simplify code: deduplicate patterns, fix captcha field name bug
Bug fix:
- Fix frontend sending captcha_token instead of turnstile_token in
  login/register requests (would cause 422 errors on auth)

Backend simplifications:
- Deduplicate VALID_PROVIDERS constant (provider.rs is now the single source)
- Extract validate_display_name/validate_models helpers in provider model
- Add From<UserSettings> for SettingsResponse, From<User> for AdminUserResponse
- Consolidate Resend API call pattern into shared send_via_resend()
- Extract do_bulk_import() for sources bulk/CSV import
- Use idiomatic range.contains() for rate limit validation

Frontend simplifications:
- Consolidate file download logic (exportCsv reuses shared fetchFile/triggerDownload)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 months ago
..
db Phase 5: Generation pipeline with SSE progress, syntheses CRUD 3 months ago
handlers Simplify code: deduplicate patterns, fix captcha field name bug 3 months ago
middleware Finished phase 1 3 months ago
models Simplify code: deduplicate patterns, fix captcha field name bug 3 months ago
services Simplify code: deduplicate patterns, fix captcha field name bug 3 months ago
util Finished phase 1 3 months ago
app_state.rs Phase 5: Generation pipeline with SSE progress, syntheses CRUD 3 months ago
cli.rs Finished phase 1 3 months ago
config.rs Finished phase 1 3 months ago
errors.rs Finished phase 1 3 months ago
lib.rs Finished phase 1 3 months ago
main.rs Phase 3: Admin module with provider/model curation, rate limits, user management 3 months ago
router.rs Phase 7: Email sending via Resend + Markdown/PDF export 3 months ago