Skip to content

Refactor logic for component macros#224

Open
OCopping wants to merge 9 commits into
mainfrom
refactor-logic-for-component-macros
Open

Refactor logic for component macros#224
OCopping wants to merge 9 commits into
mainfrom
refactor-logic-for-component-macros

Conversation

@OCopping
Copy link
Copy Markdown
Collaborator

@OCopping OCopping commented May 21, 2026

This changes the logic so the macros to store from the entity in ioc.yaml are fetched from the corresponding support module entry in techui-support.yaml. This means that techui-support.yaml is the 'ground truth' of what to extract, instead of hard-coding thing inside of techui-builder like what was previously done (i.e. P, M and R). This opens up the possibilty of having other variables names in support modules. Also, the prefix structure is fetched from techui-support.yaml along with the macros, which are used to now Jinja substitute in to the prefix.

OCopping added 7 commits May 27, 2026 12:22
Includes new SupportEntity for structure in techui-support.yaml
…etween ioc.yaml and techui-support.yaml files

This changes the logic so the macros to store from the entity in
ioc.yaml are fetched from the corresponding support module entry in
techui-support.yaml. This means that techui-support.yaml is the 'ground
truth' of what to extract, instead of hard-coding thing inside of
techui-builder like what was previously done (i.e. P, M and R). This
opens up the possibilty of having other variable names in support
modules. Also, the prefix structure is fetched from techui-support.yaml
along with the macros, which are used to now Jinja substitute in to the
prefix.
@OCopping OCopping force-pushed the refactor-logic-for-component-macros branch from 8cc25d2 to db75bf4 Compare May 27, 2026 12:25
@OCopping OCopping force-pushed the refactor-logic-for-component-macros branch from db75bf4 to d3cea89 Compare May 27, 2026 13:39
@codecov
Copy link
Copy Markdown

codecov Bot commented May 27, 2026

Codecov Report

❌ Patch coverage is 96.15385% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.14%. Comparing base (135097f) to head (d3cea89).

Files with missing lines Patch % Lines
src/techui_builder/builder.py 83.33% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #224      +/-   ##
==========================================
- Coverage   95.28%   95.14%   -0.14%     
==========================================
  Files          10       10              
  Lines         890      886       -4     
==========================================
- Hits          848      843       -5     
- Misses         42       43       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@OCopping OCopping mentioned this pull request May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant