aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/views/admin.py (follow)
Commit message (Collapse)AuthorAge
* refactor(core)!: standardize application terminologyDennis Fink7 days
| | | | | | | | | | | | | Rename configuration keys, task helpers, forms, network utilities, and view endpoints to make their responsibilities and domains more explicit. Align source-management routes and templates with the new terminology and rename the target-matching module and related task abstractions consistently. BREAKING CHANGE: configuration keys have been renamed and sent-source routes move from `/sent` to `/sources`, with corresponding blueprint endpoint changes.
* refactor(core): use HTTPStatus consistentlyDennis Fink8 days
| | | | | | Replace numeric HTTP response and assertion codes in views and tests with `HTTPStatus` members so status handling is more descriptive and consistent.
* refactor(core): inline admin action validationDennis Fink8 days
| | | | | Remove the single-purpose validation helper and keep each administrative route's form guard local to the action it protects.
* docs(core): standardize reST docstringsDennis Fink8 days
| | | | | | | | | Expand function and method documentation with consistent reST parameter, return, and exception fields while clarifying behavior where additional context is useful. Normalize test and migration docstrings to the same documentation conventions.
* fix(core): reject invalid admin action formsDennis Fink9 days
| | | | | | Centralize administrative form validation so all protected actions return HTTP 400 on invalid submissions instead of allowing the rescan action to fail silently.
* refactor(core): consolidate repeated helper logicDennis Fink9 days
| | | | | | | | | Centralize SQL row counts, hostname parsing, and content-type normalization so tasks, forms, and scanners share consistent implementations. Simplify periodic task registration and admin lookups with table-driven setup and Flask-SQLAlchemy's built-in 404 helper.
* refactor(core): clarify Webmention mutation APIsDennis Fink9 days
| | | | | | | | Make in-place reset and reopen helpers return `None` so callers no longer perform pointless self-reassignment. Split explicit resend behavior into its own method instead of hiding it behind a boolean flag on `reopen`.
* refactor(core): remove redundant abort returnsDennis Fink9 days
| | | | | | Call Flask `abort` directly in view guards since it always raises and never returns, simplifying error branches without changing response behavior.
* fix(core): decouple task imports from app initializationDennis Fink10 days
| | | | | | | | | | Keep stable lazy task handles that register against the active Huey backend so modules can be imported before app creation and survive backend reinitialization. Separate package metadata and the shared blueprint from application startup to remove import-order dependencies and keep build-time version lookup lightweight.
* refactor(core): use lowercase extension namesDennis Fink10 days
| | | | | | Rename shared Flask extension singletons to conventional lowercase names and update imports throughout the application and tests to remove redundant aliases.
* chore(core): enable stricter Ruff lint rulesDennis Fink10 days
| | | | | | | | Expand Ruff checks for bugbear, complexity, pathlib, return statements, simplifications, upgrades, and docstring style. Apply the resulting behavior-neutral cleanup across application and test code.
* refactor(core): split modules by responsibilityDennis Fink10 days
Break up monolithic views, task helpers, networking, CLI, and application extension setup so each module owns a focused concern. Reorganize the test suite around the new boundaries while preserving existing Webmention behavior and coverage.