Skip to content

feat(lemula): replace partner banners with Lemula house ads (BLD-502) - #25

Merged
dani-polani merged 3 commits into
mainfrom
feat/bld-502-lemula-banners
Nov 11, 2026
Merged

dani-polani merged 3 commits into
mainfrom
feat/bld-502-lemula-banners

Conversation

@dani-polani

@dani-polani dani-polani commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

What

The partner banners (Preply, Railway, Cursor, Wise) are replaced with Lemula house ads from the set prepared in BLD-501 (marketing/aligner-banners/ in the Lemula repo).

  • Editor strip. A calm card next to a bold one, using the pairs from the banner README (card-history + bold-sentence, card-glossed + bold-morph, card-compound + bold-tree, card-borrowing + bold-rule). The next pair shows every UTC hour; the home page is server-rendered per request, so it rotates. Narrow screens show the calm card only. Collapsed, the strip shows the bar block beside the expand button. The "Partner offers" label is gone, and the strip is now an <aside aria-label="Lemula banners">.
  • Example pages and About. The feature block. About's "Partner links" section becomes "Lemula" with a one-line intro.
  • Tracking. The call-to-action link gets affiliate-link, data-partner="lemula" and data-product=<block> when rendered, so the existing affiliate_click GA event reports it. The links keep their UTM tags for Lemula's analytics.
  • Removed. Partner components, partner rotation, the "why is this here" tooltip text.

How the assets are wired

lib/components/lemula/ holds the blocks, CSS and fonts copied verbatim (excluded from prettier, so a later update is a copy). LemulaBlock imports the CSS as a global stylesheet (Svelte's scoping would strip the plain-HTML blocks of their styles) and renders the block markup. Vite bundles the CSS and hashes the fonts; the mono font loads only on cards that use it.

Dependencies

The CI audit failed on a new high advisory in vite. npm audit fix without breaking changes: vite 8.0.16 → 8.3.7 (with rolldown), @sveltejs/kit 2.70.4, vite-plugin-svelte 7.3.1, eslint 10.14, typescript-eslint 8.72. npm 11.19 dropped a nested flowbite@2.5.2 from the lock file, which npm ci rejected; npm install restored it, and npm ci --dry-run passes on npm 10 and 11. SvelteKit advisories that need kit 3 remain, below the CI threshold.

On the updated dependencies, a local production build matches prod for all 22 gallery renders and 20 of 22 editor examples; the other two are Japanese examples whose CJK web font loads at different times (each matched prod on a rerun).

Verification

Local dev server and production build, headless Chromium:

  • Desktop strip, light and dark: cards 515×144, as the README's slot sizes. All four pairs checked in the slot (515×141 each).
  • Phone (375px): one calm card, link under the example.
  • Collapsed: bar with the expand button; clicking the bar opens Lemula and reports affiliate_click (partner: lemula, product: bar); clicking a card reports its block name.
  • Example page and About: feature at 720×311, light and dark.
  • No console errors.

svelte-check, prettier, eslint, vitest (213) and vite build are clean.

Not changed

  • /terms still says the tool "may show partner or affiliate links". It is worded as a possibility, so it stays accurate.
  • docs/partner-affiliate-portable-spec.md still describes the partner banner system.

🤖 Generated with Claude Code

dani-polani and others added 3 commits November 11, 2026 02:22
The editor strip, example pages and the About page showed Preply,
Railway, Cursor and Wise. They now show Lemula banners from the set
prepared in BLD-501, copied verbatim into lib/components/lemula.

- Editor strip: a calm card next to a bold one, the next pair every
  UTC hour; one calm card on narrow screens. Collapsed, it shows the
  `bar` block beside the expand button. "Partner offers" is gone.
- Example pages and About: the `feature` block. About's "Partner links"
  section becomes "Lemula".
- Clicks report the existing `affiliate_click` event with
  partner "lemula" and the block name as product.

The banner CSS is imported as a global stylesheet, since Svelte's
scoping would strip the plain-HTML blocks of their styles; Vite bundles
it with the fonts. The partner components, rotation and "why is this
here" tooltip are removed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
`npm audit fix` without breaking changes, so the high-level CI audit
passes again: vite 8.0.16 -> 8.3.7 (with rolldown), @sveltejs/kit
2.70.4, vite-plugin-svelte 7.3.1, eslint 10.14, typescript-eslint 8.72
and transitive bumps. SvelteKit advisories that need kit 3 remain;
they are below the CI threshold.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
`npm audit fix` (npm 11.19) removed flowbite-datepicker's nested
flowbite@2.5.2, leaving a lock file `npm ci` rejects. `npm install`
puts it back; `npm ci --dry-run` passes on npm 10 and 11.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@dani-polani
dani-polani merged commit 72598b7 into main Nov 11, 2026
2 checks passed
@dani-polani
dani-polani deleted the feat/bld-502-lemula-banners branch November 11, 2026 00:53
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