Skip to content

feat: threadline theme#240

Merged
Kinfe123 merged 8 commits into
mainfrom
feat/thereadline-theme
Jun 4, 2026
Merged

feat: threadline theme#240
Kinfe123 merged 8 commits into
mainfrom
feat/thereadline-theme

Conversation

@Kinfe123
Copy link
Copy Markdown
Member

@Kinfe123 Kinfe123 commented Jun 3, 2026

Summary by cubic

Adds the new @farming-labs/theme/threadline preset: a compact, neutral docs shell with a TOC rail for page actions and small back/forward title controls. Examples and docs now use the theme, including a new Threadline docs page.

  • New Features
    • Preset threadline() plus defaults threadlinePageActions (TOC rail: Copy page, View as Markdown, Edit on GitHub, Ask AI).
    • Page actions: new position: "toc" and variant: "rail", smarter Copy Markdown (fetches .md first), Open Docs resolves to .md (root → /index.md), Ask AI trigger.
    • Client layout: portals actions into the TOC rail, injects compact back/forward controls after the title, improves TOC host detection.
    • Exports/CSS/Types: @farming-labs/theme/threadline and @farming-labs/theme/threadline/css; root re-export in @farming-labs/fumadocs; adds "toc" to PageActionsConfig.
    • Examples/docs: switch to threadline() with threadlinePageActions, theme toggle default to light, lastUpdated off; suppressHydrationWarning, Next devIndicators: false; new docs at /docs/themes/threadline and themes index updated.

Written for commit cb0ec80. Summary will update on new commits.

Review in cubic

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs-website Ready Ready Preview, Comment Jun 4, 2026 12:23am
farming-labs-docs-docs-cloud Error Error Jun 4, 2026 12:23am

Request Review

Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@vercel vercel Bot temporarily deployed to Preview – farming-labs-docs-docs-cloud June 3, 2026 19:37 Inactive
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jun 3, 2026

Open in StackBlitz

@farming-labs/astro

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/astro@240

@farming-labs/astro-theme

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/astro-theme@240

@farming-labs/docs

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/docs@240

@farming-labs/theme

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/theme@240

@farming-labs/next

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/next@240

@farming-labs/nuxt

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/nuxt@240

@farming-labs/nuxt-theme

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/nuxt-theme@240

@farming-labs/svelte

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/svelte@240

@farming-labs/svelte-theme

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/svelte-theme@240

@farming-labs/tanstack-start

pnpm add https://pkg.pr.new/farming-labs/docs/@farming-labs/tanstack-start@240

commit: cb0ec80

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 8 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="website/app/themes/page.tsx">

<violation number="1" location="website/app/themes/page.tsx:116">
P2: Assistant UI example snippet is incomplete: it enables `assistantUIPageActions` but omits required `github.url`, so the GitHub page action won’t work when users copy this config.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread website/app/themes/page.tsx Outdated
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5 issues found across 15 files (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="packages/fumadocs/package.json">

<violation number="1" location="packages/fumadocs/package.json:91">
P2: Public package entrypoints were renamed without keeping aliases, introducing a breaking API change for existing `assistant-ui` imports.</violation>
</file>

<file name="packages/fumadocs/src/page-actions.tsx">

<violation number="1" location="packages/fumadocs/src/page-actions.tsx:190">
P2: `markdownHref` generation produces `/.md` for root routes, breaking the new rail "View as Markdown" link on site-root docs pages.</violation>

<violation number="2" location="packages/fumadocs/src/page-actions.tsx:291">
P2: Ask AI analytics are emitted even when no AI trigger is found, causing false-positive action metrics for a no-op click.</violation>

<violation number="3" location="packages/fumadocs/src/page-actions.tsx:353">
P1: Early return before variant check silently prevents the rail variant from rendering when `copyMarkdown` and `openDocs` are both false, dropping the unconditional Ask AI button</violation>
</file>

<file name="website/app/themes/page.tsx">

<violation number="1" location="website/app/themes/page.tsx:116">
P2: Threadline usage snippet enables `threadlinePageActions` without `github.url`, which leaves the GitHub page action misconfigured in copied setups.</violation>
</file>

Tip: Review your code locally with the cubic CLI to iterate faster.

Re-trigger cubic

Comment thread packages/fumadocs/src/page-actions.tsx
"import": "./dist/ledger/index.mjs",
"default": "./dist/ledger/index.mjs"
},
"./threadline": {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Public package entrypoints were renamed without keeping aliases, introducing a breaking API change for existing assistant-ui imports.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/fumadocs/package.json, line 91:

<comment>Public package entrypoints were renamed without keeping aliases, introducing a breaking API change for existing `assistant-ui` imports.</comment>

<file context>
@@ -88,10 +88,10 @@
-      "types": "./dist/assistant-ui/index.d.mts",
-      "import": "./dist/assistant-ui/index.mjs",
-      "default": "./dist/assistant-ui/index.mjs"
+    "./threadline": {
+      "types": "./dist/threadline/index.d.mts",
+      "import": "./dist/threadline/index.mjs",
</file context>

Comment thread packages/fumadocs/src/page-actions.tsx Outdated
Comment thread packages/fumadocs/src/page-actions.tsx Outdated
Comment thread website/app/themes/page.tsx
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="packages/fumadocs/package.json">

<violation number="1" location="packages/fumadocs/package.json:91">
P2: Public package entrypoints were renamed without keeping aliases, introducing a breaking API change for existing `assistant-ui` imports.</violation>
</file>

<file name="packages/fumadocs/styles/threadline.css">

<violation number="1" location="packages/fumadocs/styles/threadline.css:224">
P2: Theme-toggle exclusion selector is ineffective: CSS excludes `[data-theme-toggle]`, but sidebar theme-toggle markup does not provide that attribute.</violation>
</file>

Tip: Review your code locally with the cubic CLI to iterate faster.

Re-trigger cubic

}

:is(aside#nd-sidebar, aside#nd-sidebar-mobile, .fd-sidebar)
:is(a, button):not([data-sidebar-control]):not([data-theme-toggle]) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Theme-toggle exclusion selector is ineffective: CSS excludes [data-theme-toggle], but sidebar theme-toggle markup does not provide that attribute.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/fumadocs/styles/threadline.css, line 224:

<comment>Theme-toggle exclusion selector is ineffective: CSS excludes `[data-theme-toggle]`, but sidebar theme-toggle markup does not provide that attribute.</comment>

<file context>
@@ -216,7 +221,7 @@ aside#nd-sidebar-mobile .fd-sidebar {
 
 :is(aside#nd-sidebar, aside#nd-sidebar-mobile, .fd-sidebar)
-  :is(a, button):not([data-sidebar-control]) {
+  :is(a, button):not([data-sidebar-control]):not([data-theme-toggle]) {
   border-radius: 0.375rem !important;
   background: transparent !important;
</file context>

@Kinfe123 Kinfe123 merged commit af1273a into main Jun 4, 2026
9 of 11 checks passed
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