Zeno Kapitein
3fdd9de08c
Merge branch 'main' into claude/tender-allen-wjt5jb
2026-08-19 11:52:48 +02:00
Zeno Kapitein
195c9e6b84
Apply and remember the ?theme= light/dark override in the docs embed ( #4380 )
...
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com >
2026-08-19 11:07:23 +02:00
Zeno Kapitein
09f39f8300
Vertically center breadcrumb icons ( #4513 )
2026-08-19 08:52:10 +00:00
Peter White
9002f6598a
Fix embed search suggested questions not opening the assistant ( #4514 )
2026-08-18 17:19:25 +02:00
Claude
e3f76571fe
Format preview.test.ts imports (oxfmt)
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01DwxstGi1QSoV6NQBdVDBye
2026-08-18 14:52:05 +00:00
Claude
69193a3717
Scope preview cookie to the preview route, not the site base path (RND-12191)
...
Re-diagnosis after review: app.gitbook.com and sites.gitbook.com are both under
the gitbook.com registrable domain, so the preview iframe is cross-origin but
same-site — a SameSite=Lax host-only cookie was already eligible on in-iframe
navigation, and the earlier SameSite=None change did not address the reported
loss in the default flow. Reverted that.
The real cause is the cookie path. In production the preview is served under
`sites.gitbook.com/preview/<siteId>/...` (url-host mode), but the cookie was
scoped to `siteURLData.siteBasePath`, the site's canonical base path (e.g.
`/docs`), which does not prefix the preview route. The browser therefore
withheld the cookie on the next in-preview navigation, so the override — seeded
on the first page via the `?customization=` query param — was lost.
Scope the cookie to the preview route prefix `<previewBasePath>/<siteId>`,
derived from the request URL, mirroring getVisitorAuthBasePath for proxy
requests. Falls back to siteBasePath for any preview not served under the
standard preview route. Added preview.test.ts cases covering url-host, url, and
the non-preview fallback.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01DwxstGi1QSoV6NQBdVDBye
2026-08-18 14:50:38 +00:00
Zeno Kapitein
01c9b059c6
Require Ctrl/Cmd to zoom Mermaid diagrams with the wheel (RND-12338) ( #4465 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2026-08-18 16:37:49 +02:00
Zeno Kapitein
6d02b8ab72
Fix TS code block comment punctuation color in dark mode (RND-12204) ( #4460 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2026-08-18 16:36:07 +02:00
Peter White
177ef8582a
Fix Docs Embed host actions not reaching the assistant ( #4512 )
2026-08-18 16:33:03 +02:00
Zeno Kapitein
78c589ffba
Align Previous/Next page navigation to opposite edges (RND-11235) ( #4494 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2026-08-18 13:36:08 +02:00
Zeno Kapitein
c7a3c4fd4f
Merge branch 'main' into claude/tender-allen-wjt5jb
2026-08-18 13:29:03 +02:00
Nolann B.
e4b214e6bd
Fix large OpenAPI payload section not being scrollable (RND-12291) ( #4510 )
2026-08-18 13:17:33 +02:00
Tomek
64ce9e180d
Render site-space custom home page at root ( #4475 )
...
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com >
2026-08-18 12:20:52 +02:00
conico974
c64d3a50e8
Refactor CSS compatibility checks ( #4504 )
2026-08-18 10:30:43 +02:00
spastorelli
fd070ce9ca
Redirect to the upstream auth logout URL on ~gitbook/auth/logout ( #4489 )
2026-08-18 10:27:48 +02:00
Tomek
048c4e4c70
Fix tooltip data-popup-open state conflict and AI messages collapsible ( #4509 )
...
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com >
2026-08-18 10:22:47 +02:00
conico974
fb01dc9ecb
Remove unused Cloudflare image resizing function ( #4507 )
2026-08-17 17:26:32 +02:00
Nolann B.
d33e570bc7
Fix the spacebar being swallowed in the search bar (RND-12484) ( #4508 )
2026-08-17 13:21:21 +00:00
Tomek
87fd234d55
Fix dropdown icon rotation by reading dropdown open state ( #4503 )
...
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com >
2026-08-17 14:55:09 +02:00
Claire Chabas
0f32eb17d1
Fix toggle chevron alignment in ToC ( #4505 )
2026-08-17 14:41:44 +02:00
Tomek
3e29680792
Stabilize visual CI tests ( #4506 )
...
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com >
2026-08-17 13:14:47 +02:00
Nolann B.
b3db1c58c8
Migrate headless UI primitives from Radix and react-aria to Base UI ( #4499 )
2026-08-15 21:05:32 +02:00
Nolann B.
0f994016f4
Update OpenAPI customer test URL ( #4498 )
2026-08-13 18:43:33 +02:00
Nolann B.
419094b79d
Stop every DOM change from restyling the whole document ( #4492 )
2026-08-13 17:18:48 +02:00
Greg Bergé
95d23775ce
Migrate repository to Oxlint and Oxfmt ( #4497 )
2026-08-13 13:18:42 +00:00
spastorelli
aa98859560
Detect and pass visitor type for site resolution ( #4490 )
2026-08-13 14:33:10 +02:00
Tomek
ea19801cfa
feat: add greeting customization to AI chat ( #4483 )
2026-08-13 11:17:26 +00:00
Peter White
13059b843c
Fix Docs Embed being stuck on the Search tab (RND-12435) ( #4496 )
2026-08-13 06:57:13 +00:00
Johan Preynat
3db14ad950
Fix search result links for page matches (RND-11916) ( #4488 )
2026-08-12 17:43:57 +02:00
Nolann B.
5fac9e37ee
Move the OpenAPI package from react-aria to Base UI ( #4473 )
2026-08-12 14:53:09 +02:00
Nolann B.
1424c566a0
Load the OpenAPI renderer only on pages that use it ( #4472 )
2026-08-12 14:53:09 +02:00
conico974
65f99eafe5
Reduce bundle size on the server ( #4464 )
2026-08-12 13:22:51 +02:00
Tomek
7594a334d8
Show image thumbnails for file attachments ( #4486 )
...
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com >
2026-08-11 13:09:16 +02:00
conico974
827e4f9856
Fix variant switcher URL for non-default variants ( #4487 )
2026-08-11 13:09:14 +02:00
Peter White
a9a1a609c5
Fix sticky search results when switching the search filter RND-12265 ( #4485 )
2026-08-11 10:15:36 +02:00
Claude
a679eb21b1
Fix customization/theme preview being lost when navigating inside the preview (RND-12191)
...
The site preview runs in a cross-site iframe. The preview cookie that carries
the unsaved customization (and theme) override was set with SameSite=Lax, so the
browser withheld it on in-iframe navigations: the first page reflected the
override (it comes from the ?customization= query param) but clicking to another
page sent no param and no cookie, so the middleware fell back to the saved
settings and the change disappeared.
Send the preview cookie with SameSite=None + Secure in production, mirroring the
visitor cookies that already have to survive this same iframe
(getResponseCookiesForVisitorAuth). Dev stays same-origin so no attributes are
needed there. SameSite=None requires Secure, so both are gated on production.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01DwxstGi1QSoV6NQBdVDBye
2026-08-10 00:22:06 +00:00
conico974
61405a3036
feat: add CSS browser compatibility check for pull requests ( #4478 )
2026-08-07 15:44:52 +02:00
conico974
634a24ff03
Fix text visibility issues on pages with background covers in Firefox and iOS Safari ( #4477 )
2026-08-07 12:46:26 +02:00
Nolann B.
2ccd43ee5e
Lazy-load the Mermaid code block ( #4468 )
2026-08-06 08:59:03 +02:00
Nolann B.
cd506e3f79
Split the Shiki highlighter from the plain token helpers ( #4467 )
2026-08-06 08:59:02 +02:00
Brett Jephson
a6644074cb
Fix: select no longer stored in url ( #4466 )
...
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-05 11:59:56 +01:00
conico974
4be043d96e
Add support for visitor token revalidation without redirection ( #4463 )
2026-08-05 09:50:26 +02:00
Brett Jephson
673f4b6076
RND-11832: button with select slug action ( #4462 )
2026-08-04 14:12:13 +01:00
Brett Jephson
d0a63bab91
Tab - reinstate scroll hash ( #4458 )
...
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-04 14:42:30 +02:00
conico974
ca9a1dd396
Block crawler from using ask endpoint ( #4457 )
2026-08-03 11:47:17 +02:00
claude[bot]
996d7ec021
Scroll to in-page heading even when the URL hash is unchanged (RND-12290) ( #4454 )
...
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: Tomek Gargula <tomasz@gitbook.com >
2026-07-31 10:36:37 +02:00
Brett Jephson
f9ad9b5356
RND-11830: select store URL param ( #4439 )
...
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-07-30 16:05:36 +01:00
Nolann B.
332089eca9
Don't forward cookies through the OpenAPI Scalar proxy ( #4451 )
2026-07-30 10:06:17 +02:00
Zeno Kapitein
6ac4cf4b76
Align card and column breakpoints ( #4449 )
2026-07-29 12:13:25 +00:00
Zeno Kapitein
5c74eef602
Make the table search empty state more prominent ( #4418 )
...
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-28 16:13:02 +02:00