oliver-zehentleitner / maity

hub + docs: drop the dead render.report_link and .pic rules; §16.9 "A report link" matches report_row

Sign in to report

tsk-9yge4wmbxscp Open

Audit round 3 (tsk-hgnbapyw7hnh), read at 588f911b. Kind: debt (dead code) / docs drift.

What is wrong

  • hub/src/maity_hub/render.py:1248-1254 (report_link) has no caller in hub/ or web/ (all five page kinds called it before the range). Its regex branch render.py:1242-1245 and the rule hub/src/maity_hub/landing_assets/public-pages.css:148 (.stored-page .report-link) are dead with it.
  • The .pic, .pic.none, .pic.none.size-64/128 rules at render.py:278-280 (inline STYLE) and public-pages.css:139-142 are dead: nothing in hub/src emits class="pic" since public_design.face.
  • Pages now carry public_design.report_row (hub/src/maity_hub/public_design.py:303-312): a "Sign in to report" button after the about text and CTA, with no page language. docs/api.md:23825-23840 still describes a link Report "right under their title" that "also says the page's language".

Proposal: delete report_link, its regex branch and both CSS rule sets (check .stored-page .facts, public-pages.css:138, the same way); bring §16.9 in line with report_row, or change report_row to match the contract.

Effort / risk: S. Low risk.