Spaces:
Sleeping
Merge dev into main: Asset Overview file-type docs + earlier tab/stim fixes (#29)
Browse files* ci: add CODEOWNERS for restructure
* docs: add github-security-posture per decode-ai-standards
* Refresh CODEOWNERS + posture doc to match current branch-protection model (#6)
* Refresh .github/CODEOWNERS to match current branch-protection model
* Refresh docs/github-security-posture.md to match current branch-protection model
* [ai-standards][slice-2] structure and dependency reproducibility (#8)
* [ai-standards][slice-1] orientation and deploy boundary (#7)
Adds docs-only governance artifacts per the shrunken slice-1 plan
(post hardening commits 1878a50..c7599a7). No changes to app code,
requirements, devcontainer, .streamlit, existing workflows, existing
.claude/.githooks, or CLAUDE.md. README.md changes are additive only.
Artifacts:
- AGENTS.md (thin entrypoint -> CLAUDE.md + docs/INDEX.md)
- SECURITY.md (HF_TOKEN handling, deploy boundary)
- docs/ (INDEX, architecture, reference, guides, progress)
- .github/pull_request_template.md (deploy-boundary checklist)
- scripts/repo_validate.py (py_compile sweep + requirements parse)
- .github/workflows/repo_validate.yml (PR-only, parallel to gate.yml)
- README.md: additive Verification + Branch & Deploy + Architecture sections
Refs decode-ai-standards@81c3f17.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* [ai-standards][slice-2] structure and dependency reproducibility
Adds dependency reproducibility artifacts and policy/runbook documentation
per the shrunken slice-2 plan (workflow hardening deferred to a later slice
on user instruction to keep deploy risk at zero for this slice).
Artifacts:
- pyproject.toml (PEP 621 metadata; no [project.dependencies] to avoid
drift; requirements.txt remains the source of truth consumed by HF Spaces)
- requirements.lock (47 packages, autogenerated by
`uv pip compile --python-version=3.12 requirements.txt`)
- .python-version (3.12; matches runtime.txt and HF Spaces)
- .env.example (comment-only; declares no local env vars; documents
HF_TOKEN as a GitHub Actions secret consumed only by main.yml)
- docs/policies/naming-conventions.md (tab<N>.py rule, helper.py role,
what we explicitly do NOT do)
- docs/policies/root-artifact-policy.md (what is tracked at root, what is
gitignored, what is tolerated locally)
- docs/runbooks/local-setup.md (Windows / macOS / Linux setup walkthrough,
troubleshooting table)
- docs/INDEX.md (link the three new docs under new ## policies and
## runbooks sections; remove their entries from the "planned" stub)
Out of scope (deferred):
- Workflow SHA pinning + permissions blocks on main.yml, gate.yml,
check-file-size.yml — deferred to a later slice because main.yml is the
HF deploy pipeline and deserves its own focused PR + verification cycle
- .gitignore additions for .ruff_cache/, .venv/, .pytest_cache/ — deferred
No changes to app code (app.py, helper.py, tab1.py-tab8.py), requirements.txt,
runtime.txt, .streamlit/, .devcontainer/, existing workflows, existing
.githooks/, existing .claude/, CLAUDE.md, or .gitignore. HF Spaces deploy
is a no-op for this slice because no runtime file is touched.
Refs decode-ai-standards@81c3f17.
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(tab5): carry lowercase sub-block letter into stim labels and reports
Block folders briefed as <NN><lowercase-letter><Category> (e.g. 05cColours)
encode a sub-block. The previous logic stripped every non-digit from the
folder name, dropping the letter, so stims were labelled 01B05whisper... instead
of 01B05cwhisper... A new parse_block() helper extracts the block number and the
optional single lowercase letter (uppercase = start of category name, so 05Colours
has no letter). Applied at every block-ID construction site used by the
'Name stims by block' tool (tab5) and the Asset Overview PDF (tab4).
tab6 (Rerun Matrix): rebuild the brand index from the Excel 'factor' column and
the leading brand number instead of regex-parsing the brand out of the ID, since
the optional sub-block letter makes ID-based brand parsing ambiguous.
tab5 instructions updated to document the lowercase-letter naming convention.
* fix(app): swap Resize / Place on Canvas tab handlers to match labels
The 'Resize' tab (tab7) was calling center_on_canvas_tool() and the
'Place on Canvas' tab (tab8) was calling resize_with_transparent_canvas_tool().
Swap the two calls so each tab runs the tool its label names, matching the
documented tool order (7 = Resize, 8 = Place on Canvas).
* chore: fix ruff lint errors in app/helper/tab5/tab6 (green language-gate)
Resolve the ruff findings the DECODE language-gate flags on these files:
remove unused imports and locals, replace bare 'except:' with 'except Exception:',
drop unused 'as e' bindings, and remove f-prefixes from placeholder-less strings.
No behavior change; verified with py_compile and an end-to-end process_files run.
* chore: fix ruff lint errors in tab1-tab4 (repo-wide green language-gate)
Remove unused imports (A4, getSampleStyleSheet, tempfile, get_files_by_marke),
remove unused locals (dateien_pro_marke, total_files), replace bare except with
except Exception, and drop an f-prefix from a placeholder-less string. The unused
'Overwrite original files' checkbox keeps rendering; only its dead binding is dropped.
No behavior change; verified with ruff, py_compile, and import of all modules.
* docs(tab4): expand Asset Overview supported file-types list to match tab5
Update the on-screen instructions in the Asset Overview tab to advertise the
full range of file types already handled by the shared ALL_ALLOWED_EXTENSIONS
whitelist (images, video, audio, documents). Wording kept identical to the
Advanced Brand Processor (tab5) for consistency. Documentation-only change; no
code paths affected.
[override-reviewer: doc-only text change, intentional wording parity with tab5 per user request]
---------
Co-authored-by: FloWeinert <weinert@decodemarketing.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
@@ -140,7 +140,10 @@ def pdf_generator_tool():
|
|
| 140 |
- The tool will extract brand names from filenames automatically
|
| 141 |
- Generates two-section PDF report: Section 1 (by Asset Type/Block) and Section 2 (by Brand)
|
| 142 |
|
| 143 |
-
**Supported file types:**
|
| 144 |
-
- **Images:**
|
| 145 |
-
- **
|
|
|
|
|
|
|
|
|
|
| 146 |
""")
|
|
|
|
| 140 |
- The tool will extract brand names from filenames automatically
|
| 141 |
- Generates two-section PDF report: Section 1 (by Asset Type/Block) and Section 2 (by Brand)
|
| 142 |
|
| 143 |
+
**Supported file types:** All extensions are supported including:
|
| 144 |
+
- **Images:** .png, .jpg, .jpeg, .gif, .bmp, .svg, .webp
|
| 145 |
+
- **Videos:** .mp4, .avi, .mov, .mkv, .webm
|
| 146 |
+
- **Audio:** .mp3, .wav, .ogg, .flac, .m4a
|
| 147 |
+
- **Documents:** .pdf, .doc, .docx, .txt, .xlsx
|
| 148 |
+
- And any other file type!
|
| 149 |
""")
|