Skip to content

feat(components): embedded technique pages draw numbered cards, and quotes keep their line breaks - #307

Open
sydevs-bot wants to merge 21 commits into
mainfrom
claude/feat-technique-cards-and-quotes
Open

sydevs-bot wants to merge 21 commits into
mainfrom
claude/feat-technique-cards-and-quotes

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

This PR targets main, with main merged in at ea0fdf1.

Summary

  • Visitors: /techniques now shows each technique as a numbered card (01 to 05). Each card has the page's artwork, its "Good for" description and a "Learn More →" button, and the image alternates left and right like the old site. Today the page shows five page names run together on one line as bare links.
  • Visitors: the quote on /i-meditate-to-regenerate is a 40-line poem. Each line now renders on its own, 12px apart as on the legacy site, where today the whole poem is one run-on paragraph.
  • Editors: a blockquote in rich text keeps its bold, links and line breaks, and an empty one no longer draws an empty gradient box. An internal link set to "open in new tab" now opens in a new tab.
  • Editors: only a page tagged technique draws a card. Giving a see-also page a meta image leaves its link alone.
  • Developers:
    • Blockquote takes children instead of text.
    • TechniqueCard gains headingLevel and imageAspectRatio.
    • TechniqueCard's number prop becomes optional.
    • TechniqueCard's buttonText prop and its English default are removed. The label comes from translations.

Preview

  • /techniques — five numbered cards, 01 to 05, each with its artwork, its "Good for" text and a "Learn More →" button, the image alternating sides. main shows five bare links on one line.
  • /i-meditate-to-regenerate — the poem quote, one line per row (42 paragraphs in the <blockquote>, against 3 on main).
  • TechniqueCard story — the card with a 4:3 image through the new imageAspectRatio, and its button label from translations.
  • Blockquote story — children in place of text: bold and line breaks now survive.

What changed and why

TechniqueCard (rich-text relationship to a page)

  • Evidence:
    • The deployed main Worker (https://wemeditate-web.contact-c66.workers.dev/techniques, re-checked today) renders <a href="/kundalini-bandhan">Kundalini/Bandhan</a>, then /footsoaking, /candle-treatment, /ice-pack and /candle-treatment---copy, as five inline links in a row.
    • In SahajCloud, the /techniques content is one paragraph, then five root-level relationship → pages nodes (97, 69, 67, 71, 70), then an empty paragraph.
  • One server change. EMBEDDED_PAGE_SELECT (server/sahajcloud/selects.ts:94) gains tags, which is what tells a technique embed from a see-also link. It already returned everything else a card draws: title, slug, meta.description and meta.image, the image bringing url, alt, width and height through IMAGE_POPULATE.
  • What becomes a card: pageCard (components/organisms/RichText/lexical-helpers.ts:76) decides. A card is a page tagged technique with a title, a non-blank description, a populated image with a url, and a documentHref route. Anything less keeps today's link, so nothing degrades. The relationship converter (components/organisms/RichText/RichText.tsx:182) renders the card.
  • Which pages: the tag decides, not which fields happen to be filled (review follow-up, below). All five pages the live /techniques embeds carry tags: ["technique"], confirmed through the SahajCloud REST API, so the page draws the same five cards.
  • Numbering: cardPlacement (lexical-helpers.ts:154) numbers a card by its position in its run of consecutive cards, as two digits.
    • A paragraph with words starts a new run. A blank paragraph does not (review follow-up, below).
    • A lone card carries no number, because "01" on a single see-also embed means nothing. Its decorative gradient tab stays.
  • Alternation: cards in odd positions put the image on the left, matching legacy /techniques, which started with excerpt--left and alternated.
  • Heading level: cardPlacement picks one level below the nearest heading before the card, or h2 when there is none. On /techniques the cards are therefore h2s under the page h1, where a fixed h3 would skip a level. The visual size stays styleAs="h5". The h2-to-h6 clamp is headingTag (lexical-helpers.ts:120), shared with the heading converter.
  • Image: an image with both dimensions stored uses nearestAspectRatio instead of a square crop. The live 840×660 thumbnails land on 4:3, and a browser check confirmed the watercolours are not cut. One with a dimension missing keeps the component's square default, because nearestAspectRatio falls back to 16:9.
  • Button (components/organisms/TechniqueCard/TechniqueCard.tsx:128-139):
    • The visible label is t('blocks.general.learn_more') ("Learn More →").
    • Each card gets its own aria-label, t('blocks.a11y.learn_more_about', { title }), so five identical buttons each name their page (WCAG 2.4.4).
    • The visible words stay inside the accessible name (WCAG 2.5.3).
    • The de, fr and ru values are generic ("Mehr erfahren →", "En Savoir Plus →", "Подробнее →").
  • Description: the description gets whitespace-pre-line, so "Good for:\n…" keeps its break.
  • Number tab: from md up the number and its gradient hang above the card's other edge, over the text column, away from the image (review follow-up, below). The gradient fades inward from that outer edge, as the legacy one did from its own.
  • Spacing: cards use clear-both my-16 md:mt-40. From md up, the number tab hangs 7rem above the card, and the legacy cards sat about 200 to 280px apart.
  • Tests:
    • RichText.test.tsx › "a page relationship with an image and a description" covers numbering and alternation on the /techniques shape, the 4:3 crop, the heading level, per-run numbering and the lone card, the blank paragraph case, and keeping the link for an incomplete page.
    • TechniqueCard.test.tsx covers the translated label and aria-label, the card with no number, headingLevel, and the pre-line description.
    • lexical-helpers.test.ts unit-tests pageCard, cardPlacement and headingTag.
  • Browser check: the local dev server ran against production SahajCloud. /techniques shows five cards numbered 01 to 05, alternating sides, with h2 headings and 4:3 artwork. Horizontal overflow was 0 at 1280, 768, 375 and 320px.

Review follow-up: a blank paragraph between cards keeps the count (7e48d57)

  • Problem (from the independent review): the run walk ended at any sibling that was not a card. That included the empty paragraph Lexical routinely leaves beside a decorator node; live /techniques ends with one. A stray empty line between two embeds would restart the numbering, or drop it for a lone card, and reset the alternation. Yet that paragraph only draws a <p><br/></p> of extra space. That markup comes from Payload's default paragraph converter, which this repo does not override.
  • Fix: a paragraph with no text is now transparent to the run (isBlankParagraph, lexical-helpers.ts:137). A paragraph with words still starts a new run.
  • Tests: lexical-helpers.test.ts › "runs on across a blank paragraph between two cards" covers an empty paragraph and a linebreak-only one. RichText.test.tsx › "keeps counting across a blank paragraph left between two cards" covers the rendered page. Both fail on the previous run walk.

Review follow-up: the number sits away from the image (649c41b)

  • Ask (Ardnived, 2026-11-25): switch the counter and its gradient to the opposite side, away from the image.
  • Before: the tab hung above the image column, on the same side the image is on — -left-4 at align="left", -right-4 at align="right", positioned against the image wrapper.
  • Now: the tab is a child of the card and takes the card's other edge — -right-4 at align="left", -left-4 at align="right" — so it sits above the text column. The gradient direction flips with it, still fading inward from the outer edge, and the number stays at that outer edge. relative leaves the image wrapper, which holds nothing absolute any more.
  • Legacy, for the record: the old site put .excerpt__index and its :after gradient on the image's side. This is a deliberate departure, asked for in review.
  • Tests: TechniqueCard.test.tsx › "hangs the tab on the edge the image is not on" pins the anchor and the gradient direction for both alignments, and "positions the tab against the card, not against the image column" pins the containing block. Both fail on the previous layout.
  • Browser check: the Ladle RichText story, which renders the cards inside the real max-w-4xl container. At 1280, 1024 and 768 the tab sits above the text column on the side opposite the image. Document scroll width equals client width at 1280, 1024, 768 and 375 on the TechniqueCard story.

Review follow-up: the 2026-11-21 review (6d39ecc to 88463f9)

  • A card is a page tagged technique (85a6c66). A card was inferred from which fields happened to be filled, so an editor who gave a see-also page a meta image turned its link into a numbered card, with no way to ask the link back. EMBEDDED_PAGE_SELECT now returns tags, and pageCard requires technique. Three tests cover it, and all three fail without the guard.
  • One helper reads a card's placement (8630c17). cardRun and cardHeadingLevel walked the same siblings from the same index to fill three props of one component. cardPlacement walks them once and answers all three, with the heading walk continuing past the end of the run.
  • The heading clamp has one copy (03a891a). headingTag owns the h2-to-h6 clamp the heading converter applied inline, and has its own unit test.
  • The embedded page shape comes from the schema (e57a0e0). EmbeddedPage and EmbeddedImage restated fields Page and Image already carry; pageCard narrows with Partial<Page> and Partial<Image> instead. PopulatedImage in RichText.tsx stays: it belongs to the upload converter, which this PR does not touch and fix(image): print image credits, and draw gallery tiles and uploads uncropped #312 is rewriting, so replacing it would only add a conflict.
  • A card image crops only at a known ratio (88463f9). nearestAspectRatio answers 16:9 when either dimension is missing, so an image with no stored size drew a wide crop. The card's own square default fits better.
  • slugify is imported from its own module (6d39ecc). The re-export had one importer in the same folder, and its comment's claim that the table-of-contents block shared it was false.

Quote block line breaks (HeroQuote)

  • Evidence:
    • Through the SahajCloud REST API (re-checked today), the quote on /i-meditate-to-regenerate holds 40 lines separated by 39 CRLF breaks, with no blank lines. The deployed page renders it as one paragraph.
    • The legacy markup is cb-text-textbox--hero with one <br /> per line, styled .cb-text-textbox__text br { display:block; margin-bottom:12px }.
  • Change: components/molecules/blocks/HeroQuote/HeroQuote.tsx:89 renders toParagraphs(text), the helper in lib/content/paragraphs.ts that fix(components): text boxes keep paragraph breaks and non-Latin headings get ToC anchors #304 added and main now carries. Each line becomes a <p>, and every line after the first gets mt-3 (12px, the legacy gap). A one-line quote renders byte-identical markup to before.
  • Tests: the new HeroQuote.test.tsx pins the exact single-line markup and checks that the CRLF poem renders separate <p>s. The second test fails on the old HeroQuote. The HeroQuote story gains a "Line Breaks" section.

A rich-text quote node renders its children

  • Change:
    • The Blockquote atom takes children: ReactNode instead of text: string. Its only production caller is the RichText converter. Its stories are converted, with an "Inline Content" row added.
    • The quote converter (RichText.tsx:122) passes nodesToJSX({ nodes: node.children }), so bold, italic, links and line breaks survive.
  • Empty quotes: a quote with no text now renders nothing. The one live quote node, on /terms-conditions, is empty, and today it draws an empty floated gradient box.
  • Tests: "keeps the bold, links and line breaks inside a lexical blockquote" and "renders nothing for a lexical blockquote with no text" (empty and linebreak-only). Both fail on the base.

An internal link honours newTab

  • Change: the internal-link branch (RichText.tsx:143) passes external={Boolean(fields.newTab)} to Link, as custom links and autolinks (:162) already did. That adds target="_blank", rel and the new-tab announcement. Link still locale-prefixes the href.
  • Live data: no internal link has newTab: true today.
  • Test: "opens an internal link in a new tab when the editor asked for one" checks that /about gets target="_blank" and /faq does not. It fails on the base.

Not in this PR

  • A dedicated translation key for the technique button (optional upstream follow-up). This PR reuses blocks.general.learn_more ("Learn More →") and blocks.a11y.learn_more_about ("Learn more about %{title}"). Upstream describes both as chakra and channel links. A technique is a treatment of the chakras and channels, and the legacy button said the same words. Optional in sydevs/SahajCloud, either:

    • widen both descriptions to "a chakra, channel or technique", or
    • add blocks.general.technique_cta = "Learn more" (no arrow) for TechniqueCard's button.

    This PR needs no new key.

  • The /candle-treatment---copy link 404s. Page 70 ("Hand massage with oil") has a slug that slugSchema rejects, because of its consecutive hyphens. This is a data issue, and today's bare link is already dead. An editor needs to rename the slug in SahajCloud. The fifth card links there.

  • HTML entities stored in quote text (&amp;, &nbsp;). This is an import artifact in 4 quote blocks, for example the poem on /i-meditate-to-regenerate. React escapes the entities correctly, so the fix belongs in the data.

  • The quote node's AlignFeature. Center, justify and right all float right, and the injected style is dropped. It has 0 live uses and is not among this bundle's quote items.

  • Blockquote gradient contrast (pre-existing). At the gradient's darkest stop (#e3f0ef), gray-700 body text measures 4.18:1 and a teal-600 link 4.17:1, both under 4.5:1. The body text already failed the same way before this change. It needs a design decision, a lighter tint or darker text, in components/atoms/Blockquote/Blockquote.tsx.

  • pnpm build was not run. This PR changes no dependency, CSS config, bundling or CI. The only new classes are standard Tailwind utilities: whitespace-pre-line, mt-3, md:mt-40 and aspect-[4/3].

Reconciled with open PRs

Re-run today at 649c41b: git merge-tree --write-tree against each of the 12 other open PR branches, and each conflicting branch against origin/main as well, to tell a real conflict from its own.

Test results

  • Lean gate (.claude/skills/pr-prep/check.sh on 649c41b):
    • lint: clean at --max-warnings 0, plus prettier --check.
    • tsc --noEmit: clean.
    • vitest: 175 files, 1839/1839 tests passed.
  • Each behavioural test fails without its fix:
    • Restoring the base RichText.tsx and HeroQuote.tsx gives 9 failures.
    • Dropping the technique tag requirement gives 3 failures.
    • Restoring nearestAspectRatio for an image with no dimensions gives 1 failure.
  • Security review: run when the diff first touched server/. No findings — the added select key returns a fixed public enum, and the new rendering paths carry no dangerouslySetInnerHTML and reach an anchor only through the Link scheme gate.
  • pnpm build: not run. This PR changes no dependency, CSS config, bundling or CI.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw

…ts no anchor

`slugify` kept only a-z and 0-9, so every heading in a non-Latin script
collapsed to '': the RichText heading converter emitted no `id`, and the
table of contents linked each such entry to `href="#"`, which scrolls to
the top. Of the 121 non-Latin headings live in SahajCloud today (bg, el,
hy, ru, uk), 112 had no anchor at all and nine kept only their digits.

Letters, marks and digits of any other script now stay in the anchor,
lowercased, with everything else collapsing to "-". A Latin letter still
folds its diacritics (é becomes e); a letter of another script keeps its
marks (й stays й, ά stays ά), recomposed with NFC. Armenian writes its
question, exclamation and emphasis marks inside the word (Ի՞նչ), so those
drop rather than split it.

Latin output is unchanged on purpose: an anchor already in a shared link
or an editor's `#` link has to keep resolving. Latin and script-neutral
characters outside a-z and 0-9 still separate, so ß, ı, œ and ł split a
word exactly as before. Across all 2,924 Latin headings live in
SahajCloud the old and new anchors are byte-identical, and the new spec
pins a sample of them.

Two equal headings still share one id; that is #266, which waits on the
upstream `occurrence` field.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
The `textbox` block reaches one of three organisms, and they treated a
paragraph break three ways. OrnateTextBox split its text into one <p>
per paragraph; ContentTextBox and ContentOverlay rendered the whole
string in a single <p>, so the breaks SahajCloud stores collapsed into
one run of text. ContentOverlay could already render an array of
paragraphs, but the converter hands it a string.

OrnateTextBox's split moves to `lib/paragraphs.ts` and all three render
through it, so a break reads the same whichever style an editor picks.
Every run of line breaks starts a paragraph, not only a blank line: that
is the rule OrnateTextBox already shipped, and the one live text that
uses a single break (/mooladhara-chakra's overlay) uses it to start each
tip. ContentTextBox's paragraphs sit directly in its gap-6 column, which
spaces them at 1.5rem, prose-lg's paragraph margin for this text size.

Single-paragraph text renders byte-identical: of the 40 English text
boxes live in SahajCloud, 37 render exactly as before. The other three
are /mooladhara-chakra's multi-paragraph overlay, and two overlays with
no text, which lose an empty <p class=""> that drew nothing. An empty
description no longer leaves an empty <p> in ContentTextBox's column
either (no live side box has one).

The ContentTextBox story gains a two-paragraph example.

Closes #286.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
…it was

Keeping a non-Latin letter's marks let every other combining mark
through as well. Only U+0300-036F was handled, and the separator never
matches a mark, so an emoji's variation selector or keycap and a mark
such as U+20D7 after a Latin letter stayed in the id: "We ❤️ meditation"
became "we-<U+FE0F>-meditation", an emoji-only heading got an invisible
id instead of none, and "🧘‍♀️ Yoga" an id that starts with U+FE0F. The
script check also ran after NFKD, so µ and ℵ were already Greek and
Hebrew letters and stayed in a Latin heading's anchor.

Each Latin or script-neutral character now folds on its own before the
text decomposes, exactly as every anchor was spelled before. A run of
marks is kept only after a letter of another script, and otherwise
folds the same way. Over every string made only of Latin, Common and
Inherited code points (each one alone and in context, plus 300,000
random strings), the result equals origin/main's. Over all 3,046 live
headings and ToC entries in 19 locales, no anchor differs from the
previous commit's, and none of the 121 non-Latin headings is empty.

The ohm sign (U+2126) is Greek script in Unicode, so it stays as ω like
any other Greek letter.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
The quote block's text is a textarea, and HeroQuote drew it as one <p>, so
the browser folded every line break into a space. The one live block with
breaks, the 39-line poem on /i-meditate-to-regenerate, rendered as a single
run-on paragraph; the legacy site drew each line apart, with a 12px gap
(`.cb-text-textbox__text br { display: block; margin-bottom: 12px }`).

HeroQuote now splits the text with `toParagraphs`, the helper #286 gave the
three text-box organisms, so a break means the same thing in every box an
editor can pick. Each line after the first takes `mt-3`, the legacy gap. A
one-line quote renders exactly the markup it always had, and a spec pins it.

The `&amp;` and `&nbsp;` some quotes show are stored that way upstream (an
import artifact) and are not touched here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
…ws a technique card

/techniques is five consecutive `relationship` nodes to pages, and the
relationship converter drew each as a bare inline link, so the deployed page
showed "Kundalini/BandhanFootsoakingCandle treatment..." run together. The
title, `meta.description` ("Good for: ...") and `meta.image` of all five were
already in the read: EMBEDDED_PAGE_SELECT selects them, and the live request
populates them.

The legacy /techniques list drew each treatment as an excerpt: a number from
01, the image, the title, the text and a "Learn more" button, alternating
sides from the left. TechniqueCard is that excerpt and had no caller.

The rule, in `pageCard`, `cardRun` and `cardHeadingLevel`
(components/organisms/RichText/lexical-helpers.ts):
- A `pages` relationship whose page has a title, a non-blank description, a
  populated image with a url and a route draws a card. Anything less (a bare
  id, no description, an image left as an id) stays the link it was.
- Cards number within their run of consecutive card siblings, so a paragraph
  between two lists restarts the count, and a lone card carries no number:
  a sequence number on one embed means nothing. Odd positions put the image
  on the left, as the legacy list did.
- The card heading sits one level below the nearest heading before it, h2
  under none: the card's fixed h3 skipped a level under the page h1 on
  /techniques, which has no h2.
- The image keeps the ratio nearest its own (840x660 lands on 4:3) rather
  than TechniqueCard's square default, which cut into the watercolours.

TechniqueCard itself: the button reads `blocks.general.learn_more` and is
named by `blocks.a11y.learn_more_about`, so five identical buttons each say
where they go; the English `buttonText = 'Learn more'` default and the prop
are gone. The description keeps its "Good for:" line break, and `number`,
`headingLevel` and `imageAspectRatio` are new optional props.

Both keys are described upstream as chakra and channel links. A technique
is a treatment of exactly those, and the legacy label was the same words, so
they are reused here rather than a new key being added.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
…e breaks

The editor's blockquote (BlockquoteFeature, distinct from the quote block)
rendered through the Blockquote atom from `getNodeText`, which flattens the
node: bold and italic were lost, a link became plain words, and a line break
disappeared. The atom now takes `children` instead of a `text` string, and
the converter hands it the node's own converted children.

A blockquote with no text renders nothing. The one live node, on
/terms-conditions, is empty, and drew an empty floated gradient box beside
the copy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
… asks

LinkFeature's `newTab` was honoured for a custom URL, which passes it to
`Link` as `external`, but the internal-link branch dropped it, so an editor
who ticked "open in new tab" on a link to one of our own pages got the same
tab. It now passes `external` the same way, which also brings the new-tab
announcement and `rel` the atom adds. No live link sets it today (61 false,
3 unset).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
…count

Lexical routinely leaves an empty paragraph beside a decorator node (live
/techniques ends with one after its five embeds). cardRun ended a run at
any sibling that was not a card, so one stray empty line between two
embeds restarted the numbering, or dropped it for a lone card, and reset
the alternation, although the paragraph draws only a little extra space
inside the cards' gap. A paragraph with no text is now transparent to the
run; a paragraph with words still starts a new one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZcE8bs5uRJ6dsg6kw
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

This PR is stacked on claude/fix-text-box-paragraphs-and-anchors. Merge it into that branch, or retarget it to main: the loop does not work stacked PRs, so nothing runs here until then.

🤖 sydevs dispatcher

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
wemeditate-web 649c41b Commit Preview URL

Branch Preview URL
Nov 25 2026, 08:35 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
wemeditate-design 649c41b Commit Preview URL

Branch Preview URL
Nov 25 2026, 08:35 PM

Base automatically changed from claude/fix-text-box-paragraphs-and-anchors to main November 20, 2026 00:55
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 20, 2026
@sydevs-bot

sydevs-bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

recent dispatches
  • 20:25Z address-review · attempt 1 · session · done
  • 20:25Z address-review · attempt 1 · session
  • 19:05Z resolve-conflicts · attempt 1 · session · done
  • 19:05Z resolve-conflicts · attempt 1 · session
  • 17:47Z resolve-conflicts · attempt 1 · session · done

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 20, 2026
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Nov 20, 2026
@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 20, 2026
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Nov 20, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

The session for resolve-conflicts did not finish after 3 attempts. I have stopped retrying. A mention (@sydevs-bot) or a push from you starts me again.

🤖 sydevs dispatcher

@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 20, 2026
A card was inferred from which fields happened to be filled, so adding a
meta image to a see-also page turned its link into a numbered card and
the editor had no way to ask for the link back. EMBEDDED_PAGE_SELECT now
returns `tags`, and the converter requires `technique`.

All five pages the live /techniques embeds carry the tag, so the page
renders the same five cards.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjWY7kKp49hsXbQG3ok
pageCard requires only a url, and nearestAspectRatio answers 16:9 when
either dimension is missing, so a portrait watercolour with no stored
size drew a wide crop. The card's own square default fits better.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjWY7kKp49hsXbQG3ok
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Seven review threads addressed and resolved, one commit each. Pushed to 88463f9. Lean gate clean: lint, tsc, 1737/1737. Security review ran on the server/ change: no findings.

Adopted

The five pages live /techniques embeds carry tags: ["technique"], so the page draws the same five cards.

Rebutted in part: PopulatedImage stays — the upload converter's, and #312 edits those lines.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 21, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 21, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 22, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 22, 2026
#327's repo-wide reorg (5d6cbd9) landed on main ahead of this branch, so
every conflict was an import path.

- Each conflicted import block takes main's `@/` spelling, and this branch's
  own imports follow their modules: lib/paragraphs -> lib/content/paragraphs,
  lib/document-routes -> lib/urls/document-routes, lib/cloudflare-images ->
  lib/media/cloudflare-images, lib/i18n -> lib/i18n/i18n,
  server/sahajcloud-types -> types/sahajcloud.
- server/sahajcloud-client.ts is gone on main, split into server/sahajcloud/.
  This branch's one key, `tags` in EMBEDDED_PAGE_SELECT, moves to
  server/sahajcloud/selects.ts with its comment.
- lexical-helpers.ts keeps this branch's removal of the `slugify` re-export,
  and RichText.tsx imports it from @/lib/urls/slugify. RichText.tsx was the
  re-export's only reader on both sides.
- Blockquote.stories.tsx's `../Link` becomes @/components/atoms/Link, because
  the reorg makes `../*` a lint error.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjUsZj1TrG6xTM3FrzD
#327 made an import that leaves its own folder a lint error, and this story's
`../Link` was written while the branch still used relative paths.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjUsZj1TrG6xTM3FrzD
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Conflicts resolved. #327's reorg (5d6cbd9) landed on main first, so every hunk was an import path.

  • Each conflicted import block takes main's @/ spelling, and this branch's own imports follow their moved modules — paragraphs, document-routes, cloudflare-images, i18n, sahajcloud-types.
  • server/sahajcloud-client.ts is gone on main, split into server/sahajcloud/. This branch's one key, tags in EMBEDDED_PAGE_SELECT, moves to server/sahajcloud/selects.ts with its comment.
  • lexical-helpers.ts keeps this branch's removal of the slugify re-export. RichText.tsx was its only reader on either side, and now imports from @/lib/urls/slugify.
  • The Blockquote story's ../Link becomes @/components/atoms/Link: the reorg makes ../* a lint error.

Lean gate on the merge: lint clean, tsc --noEmit clean, 1749/1749 tests in 171 files.

The body's "Reconciled with open PRs" section predates #327 landing.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 22, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 22, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 25, 2026
Both conflicts were import lines where main reached this branch's own
conclusion by another route.

RichText.tsx: #341 added `import { slugify } from '@/lib/urls/slugify'`,
which 6d39ecc had already added higher up. Kept this branch's import
block, dropped the duplicate.

lexical-helpers.ts: #341 deleted the `slugify` re-export, which 6d39ecc
had also deleted. Kept this branch's `Image`/`Page` type import.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjW3VocbMjDB2WnN81x
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Merged main (e7ae48a) in. Both conflicts were import lines, and both resolved the only way they could.

Neither file now differs from this branch's own version: main reached the same place by another route.

Two things the diff does not show:

Lean gate on the merge: lint and tsc --noEmit clean, 1838/1838 vitest tests passing across 175 files.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 25, 2026
The number and its gradient hung above the image, on the same side the
image is on. They now take the card's other edge, above the text column,
and the gradient still fades inward from that outer edge.

The tab is a child of the card rather than of the image column, so it is
positioned against the card's own box; `relative` leaves the image
wrapper, which no longer holds anything absolute.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjVc7KXe1d9fCtKnqxK
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

One thread, adopted. Pushed to 649c41b.

Adopted

  • 649c41b — the number sits away from the image. The counter and its gradient take the card's other edge, above the text column: top right at align="left", top left at align="right". The gradient flips with them and still fades inward from the outer edge. Two tests pin the anchor, the gradient direction and the containing block, and both fail on the previous layout.

The review body was empty, so the thread was the whole ask.

Merged main (80154b8) in first, clean. Lean gate on the result: lint and tsc --noEmit clean, 1839/1839 tests across 175 files.

The body's Reconciled with open PRs and Test results are re-run at 649c41b. #312 is the one genuine conflict now, on RichText.tsx as well as its test; #317's eleven are its own against main.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants