Skip to content

refactor: cut over-engineering from repo-wide audit - #243

Merged
romaintb merged 1 commit into
mainfrom
chore/ponytail-audit-cuts
Sep 7, 2026
Merged

romaintb merged 1 commit into
mainfrom
chore/ponytail-audit-cuts

Conversation

@romaintb

@romaintb romaintb commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Summary

Repo-wide over-engineering audit (ponytail-audit). Complexity cuts only — no behavior changes.

  • delete src/todoist.rs re-export shim — call sites now use todoist_api directly
  • delete dead backends.is_enabled / backends.settings columns (written, never read); SCHEMA_VERSION bumped to 2 so existing caches rebuild automatically
  • stdlib once_cellstd::sync::LazyLock (also drops a pointless Arc around the static)
  • native fern → ~30-line log::Log impl; same in-memory buffer for the logs dialog and same [HH:MM:SS.mmm] file format
  • shrink hand-rolled weekday_name() → chrono's %A strftime

The multi-backend abstraction (Backend trait, factory, registry) was kept deliberately — it's the foundation for future providers.

Config / behavior notes

  • rust-version bumped 1.78 → 1.80 (for LazyLock)
  • Local DB schema version bump: existing caches are dropped and rebuilt on first run (existing discard_stale_schema mechanism)

Verification

  • cargo build, cargo clippy --all-targets, cargo fmt --check clean
  • cargo test: all 54 tests pass

Net: -75 lines, -3 deps (fern, once_cell, + transitive).

@romaintb
romaintb force-pushed the chore/ponytail-audit-cuts branch 2 times, most recently from 898e7f1 to 5ee7d7c Compare September 7, 2026 11:26
- delete todoist re-export shim, import todoist_api directly
- drop dead backends.is_enabled/settings columns (schema v2)
- replace once_cell with std LazyLock (rust-version 1.80)
- replace fern with a ~30-line log::Log impl (same memory buffer
  and file format)
- replace hand-rolled weekday_name with chrono's Weekday Display

Config note: rust-version bumped 1.78 -> 1.80 for LazyLock.
Existing local caches rebuild automatically via the schema version
bump.
@romaintb
romaintb force-pushed the chore/ponytail-audit-cuts branch from 5ee7d7c to ed140ad Compare September 7, 2026 11:29
@romaintb romaintb self-assigned this Sep 7, 2026
@romaintb
romaintb merged commit fcb7908 into main Sep 7, 2026
9 checks passed
@romaintb
romaintb deleted the chore/ponytail-audit-cuts branch September 7, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant