# Domain glossary Repo-specific language for `icat_app`. Defines the terms, the aliases to avoid, and the key relationships an agent needs before touching this codebase. Satisfies checklist item **C12** (domain-language artifacts versioned in-repo). If a monorepo with multiple domains ever emerges, add a `CONTEXT-MAP.md`; today `icat_app` is a single-domain app, so this one glossary is sufficient. ## What this app is `icat_app` is a Streamlit web application bundling **8 brand-asset tools** used by DECODE. It runs on Hugging Face Spaces (Python 3.12, Streamlit 1.32.2) and deploys automatically on push to `main`. It is **not** the IcAt PPTX report generator — that is a separate codebase. The shared "IcAt" prefix refers to the same DECODE product family (Iconic Asset Test), but this repo only handles asset preparation, not report charting. ## Core terms | Term | Meaning | |---|---| | **IcAt** | Iconic Asset Test — DECODE's product family for testing brand assets. Here it names the toolbox, not a single test. | | **Tool / Tab** | One self-contained feature. One tool = one tab = one file (`tab1.py`–`tab8.py`). | | **Asset** | A brand image/graphic processed by the tools (logo, pack shot, key visual). | | **Stim** (stimulus) | An asset prepared for use in a study/survey. "Name Stims by Block" labels stims by their study block. | | **Block** | A grouping unit in a study; stims are named/numbered per block, with a sub-block letter. | | **Canvas** | The fixed-size backing area an asset is placed on. "Place on Canvas" centers/fits an asset; "Canvas White to Transparent" removes a white background. | | **Re-run Matrix** | The tool that regenerates the asset comparison matrix. | | **HF Space** | The Hugging Face Space `DecodeMarketing/decode_tools` where the app is hosted and which redeploys on push to `main`. | ## The 8 tools (canonical order = tab order) 1. **Extract Images from Excel** — pull embedded images out of an Excel file. 2. **Name Assets by Brand** — rename asset files by brand. 3. **Canvas White to Transparent** — make a white background transparent. 4. **Asset Overview (PDF)** — produce a PDF contact-sheet of assets. 5. **Name Stims by Block** — name stims by study block + sub-block letter. 6. **Re-run Matrix** — regenerate the asset matrix. 7. **Resize** — resize assets to target dimensions. 8. **Place on Canvas** — center/fit an asset onto a fixed canvas. ## Aliases to avoid - Do **not** call a tab a "page" — Streamlit "pages" are a different multi-page construct this app does not use. Use **tool** or **tab**. - Do **not** call `helper.py` a "library" or "package" — it is a single shared utility module (~1.3k lines) imported by the tabs. - Do **not** conflate **Stim** with **Asset**: every stim is an asset, but an asset only becomes a stim once it is prepared/named for a study. - "Deploy" here always means **the HF Space redeploy triggered by push to `main`** — there is no separate release step. ## Key relationships ``` app.py ──imports──> tab1.py … tab8.py ──import──> helper.py │ └── push to main ──> Hugging Face Space "DecodeMarketing/decode_tools" (auto-deploy) ``` See [`../architecture/repository-erd.md`](../architecture/repository-erd.md) for the full topology and [`../architecture/active-surface.md`](../architecture/active-surface.md) for which helpers each tab consumes.