Skip to content

refactor: remap deprecated Contentful theme values to approved themes - #7199

Merged
eddieferrer merged 1 commit into
mainfrom
CIT-4445_remap_deprecated_themes
Aug 28, 2026
Merged

refactor: remap deprecated Contentful theme values to approved themes#7199
eddieferrer merged 1 commit into
mainfrom
CIT-4445_remap_deprecated_themes

Conversation

@eddieferrer

@eddieferrer eddieferrer commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Ticket: https://kiva.atlassian.net/browse/CIT-4445

Summary

  • Points the legacy kivaClassicMint, kivaClassicGreen, kivaClassicDark, kivaClassicDarkStone, kivaDarkMint, imageCard, and ecoStoneDark Contentful values at their closest approved theme in Contentful/StoryCard.vue and Contentful/SectionWithBackgroundClassic.vue. kivaClassicMint goes to greenLightTheme; the dark variants all go to greenDarkTheme, the only approved dark theme. The values stay accepted, so no Contentful content has to move for this to ship.
  • Swaps darkGreenTheme for greenDarkTheme in pages/MonthlyGood/HowItWorks.vue. Despite the near-identical names these are different themes — dark-green vs green-dark — so this one does change how that section looks. See below.
  • Adds the missing kivaClassicDarkStone mapping. ui had no entry for it and silently fell back to defaultTheme while CPS rendered it dark stone, so 7 published cards (the success-story-* set) looked different between the two apps.
  • Fixes the kivaCLassicLight typo (capital L) in StoryCard.vue, which made that key unreachable. No behavior change since the fallback already landed on defaultTheme.

Expected visual changes

/monthlygood — How It Works section. The only change in this PR that is not Contentful-driven, and the most visible. darkGreenTheme and greenDarkTheme are different themes, not two spellings of one:

darkGreenTheme (before) greenDarkTheme (after)
--bg-primary #2AA967 bright Kiva green #223829 dark green
--text-primary #F5F5F5 #EDF4F1
--text-action #2B7C5F #78C79F

The section wrapper carries tw-bg-primary, so its background goes from bright green to dark green. Confirmed against production, which currently serves --bg-primary:42, 169, 103 on that band. Text stays near-white and remains legible; links get lighter. This is a deliberate move onto the approved theme, but it is a real design change and the only production-visible change in this PR — worth a look before merge.

The Contentful components in this repo are largely not exercised in production. Contentful landing pages are served by cms-page-server, which has its own copies of StoryCard and SectionWithBackgroundClassic. In this repo the /lp/:dynamicRoute route that fed ContentfulPage is commented out (// Preserved for cms-page-server rollout, will remove after validation), leaving /hp/:dynamicRoute, /cc/:dynamicRoute (corporate campaign) and /categories. Cross-checking the audit: no affected page key starts with hp/, and no affected page has pageType: corporate-campaign. I sampled 14 of the audited paths against production and every one is CPS-rendered, with none containing background-color:rgb(var(--bg-primary)) — the fallback unique to this repo's section component.

So the Contentful mapper changes here are correctness work to keep this code compiling and consistent with CPS, not a production visual change. The equivalent CPS change is kiva/cms-page-server#3264, and the visible Contentful-driven changes are described there.

Residual unknown: /categories pulls a themed FrequentlyAskedQuestions group by key rather than through a page entry, so it would not appear in a page-keyed audit. Worth a spot check.

Six previously distinct looks now collapse onto greenDark, since it is the only approved dark theme. CIT-5073 carries the full audit and the design decision on whether some should land on marigoldLight or stoneLight instead.

Why now

kv-ui-elements PR #885 removes the mintTheme, darkTheme, darkGreenTheme, darkMintTheme, darkStoneTheme, and stoneDarkTheme exports from kv-tokens. This repo imported five of them, so it needs to be off those names before a kv-tokens version carrying that change is picked up here.

Retiring the legacy values in Contentful and dropping these transitional mapper keys is tracked in CIT-5073, which carries the full audit: 238 published entries sit on a deprecated value, 145 of them reachable from a published page, spanning 85 pages.

Points the legacy kivaClassic*, kivaDarkMint, imageCard, and ecoStoneDark
values at their closest approved design system theme so Contentful content
keeps rendering once kv-tokens stops exporting the deprecated themes. The
values stay accepted, so no content has to move yet.

Adds the missing kivaClassicDarkStone mapping, which ui silently fell back
to the default theme for while CPS rendered it dark stone, and fixes the
kivaCLassicLight typo that left that key unreachable.
@eddieferrer
eddieferrer marked this pull request as ready for review August 27, 2026 20:55
@eddieferrer
eddieferrer requested a review from a team August 27, 2026 21:54
@eddieferrer
eddieferrer merged commit a9e6de8 into main Aug 28, 2026
8 checks passed
@eddieferrer
eddieferrer deleted the CIT-4445_remap_deprecated_themes branch August 28, 2026 01:03
kiva-robot added a commit that referenced this pull request Sep 1, 2026
## [3.91.0-rc.1](v3.90.0...v3.91.0-rc.1) (2026-09-01)

### 🎉 New Features

* **live-loan:** render compact bundle card as transparent PNG ([#7204](#7204)) ([131e350](131e350))

### 🐛 Bugfixes

* avoid firing close event on set 2027 goal cta ([2f6a85d](2f6a85d))
* **header:** sync ESI CSS variables for the new header states ([c1da5ba](c1da5ba))
* mykiva initial loading performance improvements ([#7203](#7203)) ([5e836e2](5e836e2))
* opt the header into the ESI avatar ([5f9b4c4](5f9b4c4))
* release withdraw page migration ([#7210](#7210)) ([68a8429](68a8429))
* update kv-components with latest esi support for user avatar ([a54da72](a54da72))

### 🪚 Refactors

* remap deprecated Contentful theme values to approved themes ([#7199](#7199)) ([a9e6de8](a9e6de8))
* remove legacy contentful theme mappings ([#7208](#7208)) ([4fd6d12](4fd6d12))

### 🧹 Chores

* update kv-components with latest KvWwwHeaderBasic fixes ([28d6e96](28d6e96))
* upgrade kv-tokens to 5 and kv-components to 9 ([#7205](#7205)) ([c708e64](c708e64))
@kiva-robot

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 3.91.0-rc.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

kiva-robot added a commit that referenced this pull request Sep 1, 2026
## [3.91.0](v3.90.0...v3.91.0) (2026-09-01)

### 🎉 New Features

* **live-loan:** render compact bundle card as transparent PNG ([#7204](#7204)) ([131e350](131e350))

### 🐛 Bugfixes

* avoid firing close event on set 2027 goal cta ([2f6a85d](2f6a85d))
* **header:** sync ESI CSS variables for the new header states ([c1da5ba](c1da5ba))
* mykiva initial loading performance improvements ([#7203](#7203)) ([5e836e2](5e836e2))
* opt the header into the ESI avatar ([5f9b4c4](5f9b4c4))
* release withdraw page migration ([#7210](#7210)) ([68a8429](68a8429))
* update kv-components with latest esi support for user avatar ([a54da72](a54da72))

### 🪚 Refactors

* remap deprecated Contentful theme values to approved themes ([#7199](#7199)) ([a9e6de8](a9e6de8))
* remove legacy contentful theme mappings ([#7208](#7208)) ([4fd6d12](4fd6d12))

### 🧹 Chores

* **release:** 3.91.0-rc.1 [skip ci] ([8170347](8170347)), closes [#7204](#7204) [#7203](#7203) [#7210](#7210) [#7199](#7199) [#7208](#7208) [#7205](#7205)
* update kv-components with latest KvWwwHeaderBasic fixes ([28d6e96](28d6e96))
* upgrade kv-tokens to 5 and kv-components to 9 ([#7205](#7205)) ([c708e64](c708e64))
@kiva-robot

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 3.91.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants