Skip to content

Phase 0 bonus - Bug fixes & developer experience - #49

Merged
HugoFara merged 7 commits into
phase0from
phase0-bonus
Apr 10, 2026
Merged

Phase 0 bonus - Bug fixes & developer experience#49
HugoFara merged 7 commits into
phase0from
phase0-bonus

Conversation

@HugoFara

Copy link
Copy Markdown

Follow-up to #48.

Bug fixes

  • Center download button (closes Center download button #34) — Replaced hard-coded margin-left:170px with Bootstrap centering classes. Now responsive on all viewports.
  • Fix sitemap (closes Sitemap broken #24)Profile was missing get_absolute_url(), which Django's sitemap framework requires. Also filtered out private and soft-deleted profiles from the sitemap.
  • Fix FAQ anchor links (closes FAQ specific question URL does not work #27) — Direct links like /faq/#heading-resources now auto-expand the target accordion section and scroll to it.

Developer experience

  • CI coverage reporting (closes Include test coverage #22) — Tests now run under coverage with --fail-under=50. Current coverage: 83%. Also removed makemigrations from CI (migrations are committed since Modernization Phase 0 — Infrastructure & Backend Stabilisation #48).
  • Clean up .env.default — Removed duplicate email block that silently overwrote values. Added section comments. Local dev now uses console email backend (emails print to stdout).
  • Rewrite README — Quick start guide with venv setup, test commands, Docker option, and pre-created test accounts (admin/admin, user/user).
  • Fill CONTRIBUTING.md — Was empty. Now covers dev workflow, PR guidelines, and coding style.

Tests

62 tests passing (same count as #48, +1 sitemap smoke test replacing the duplicate count).

Replace hard-coded margin-left:170px with Bootstrap d-block mx-auto
classes so the button centers properly on all viewport sizes.
…oses #24)

ProfilesSitemap was querying all profiles including soft-deleted and
private ones, and Profile lacked get_absolute_url() which Django's
sitemap framework requires. Now only public profiles appear in the
sitemap.
Direct links like /faq/#heading-resources now auto-expand the target
accordion section and scroll to it. Uses Bootstrap's Collapse API on
DOMContentLoaded.
Use coverage run --source=profiles with --fail-under=50 threshold.
Remove makemigrations from CI — migrations are now committed to the
repo and should not be generated during test runs.
…kend

Remove duplicate email block that silently overrode values with empty
strings. Add section comments and use console email backend for local
development so emails are printed to stdout instead of failing silently.
README now includes venv setup, test instructions, Docker option, and
pre-created test accounts. CONTRIBUTING.md was empty — now covers
workflow, PR guidelines, and coding style.
@HugoFara HugoFara self-assigned this Apr 10, 2026
@HugoFara HugoFara added the bug Something isn't working label Apr 10, 2026
Production repo on PythonAnywhere is at ~/winrepo-prod, not ~/winrepo.
@HugoFara
HugoFara marked this pull request as ready for review April 10, 2026 22:22
@HugoFara

Copy link
Copy Markdown
Author

Done testing and setting up env vars. Ready to add.

@HugoFara
HugoFara merged commit 8f2d0a8 into phase0 Apr 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant