Skip to content

Fix parent component inspection - #50

Merged
jadefish merged 5 commits into
betafrom
b/fix-parent-component-inspection
Dec 8, 2023
Merged

Fix parent component inspection#50
jadefish merged 5 commits into
betafrom
b/fix-parent-component-inspection

Conversation

@jadefish

@jadefish jadefish commented Dec 1, 2023

Copy link
Copy Markdown
Contributor

fix(web_client): Fix ERB inspection of parents

The web client's API application loses POM hierarchy when inflating JSON to POM. This causes components which rely on checking their parent (or an ancestor) for an attribute to exhibit different behavior and render differently than the web client's view-rendering (non-API) application.

This change allows templates to pass down local variables (as one expects to do with ERB), and updates the places relying on the above behavior to use locals instead.

Miscellaneous

  • chore: Upgrade test gems
  • chore: Run tests when PRs are opened
    • Also stop running semantic release for PRs.
  • chore: Remove CircleCI configuration file

@jadefish
jadefish requested a review from a team December 1, 2023 18:55
@jadefish
jadefish force-pushed the b/fix-parent-component-inspection branch from bd5d772 to 5434398 Compare December 1, 2023 18:56
@jadefish jadefish added bug Something isn't working web client Relates to the MDC web client labels Dec 1, 2023
@jadefish
jadefish force-pushed the b/fix-parent-component-inspection branch 2 times, most recently from 9b0477e to ed114dd Compare December 5, 2023 19:28
The web client's API application loses POM hierarchy when inflating JSON
to POM. This causes components which rely on checking their parent (or
an ancestor) for an attribute to exhibit different behavior and render
differently than the web client's view-rendering (non-API) application.

This change allows templates to pass down local variables (as one
expects to do with ERB), and updates the places relying on the above
behavior to use locals instead.
Also stop running semantic release for PRs.
@jadefish
jadefish force-pushed the b/fix-parent-component-inspection branch from ed114dd to f97127e Compare December 8, 2023 13:47
DSL components inflated from JSON can end up with strings instead of
symbols for attribute values. This change coerces icon positions to
strings to standardize comparison of icon positions.
@jadefish
jadefish merged commit ec755ae into beta Dec 8, 2023
@jadefish
jadefish deleted the b/fix-parent-component-inspection branch December 8, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working web client Relates to the MDC web client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants