← All entries
Reference

Doc — Leave Tracker Data Model

The cell-fill-colour status map, per-person overrides, and the two automatic paths from spreadsheet or override PR to the live dashboard.

Reference docsleavexlsxcolorsoverridesdata-model

◎ What it solves

Answers “why is this person's leave wrong?” by writing down the one non-obvious rule: status is the cell's fill colour, so the fix is a colour, not text.

⚠ Limitations & Risks

Every catalog entry must acknowledge at least one limitation or risk.

What’s in it

The single most surprising fact about this pipeline, written down: leave status is the cell’s fill colour, not its text. A CSV export of the source spreadsheet is blank. The generator therefore parses fills directly with stdlib zipfile + xml.etree.

The doc covers the full colour → status map (including FF999999 grey meaning weekend, which is skipped), where notes actually live (xl/threadedComments/*, not comments1.xml), how OUT is composed from unavailable + PTO + holiday with “limited” as 0.5, the per-person override files, and the two automatic update paths that carry a spreadsheet edit or a merged override PR through to the live dashboard.

Read it when