Skip to content

Conversation

zenoachtig
Copy link
Contributor

@zenoachtig zenoachtig commented Sep 18, 2025

This PR restyles the site section group items and adds support for multiple section groups within a section group.

Restyle site section group items

Before

CleanShot 2025-09-18 at 15 25 11@2x

After

CleanShot 2025-09-18 at 13 55 34@2x

Improved column support

Before

CleanShot 2025-09-18 at 13 56 35@2x

After
CleanShot 2025-09-18 at 13 56 10@2x

Support nested section groups

In Tabs

CleanShot 2025-09-18 at 14 35 52@2x

Sidebar list also supported

CleanShot 2025-09-18 at 14 28 55@2x

Copy link

linear bot commented Sep 18, 2025

Copy link

changeset-bot bot commented Sep 18, 2025

🦋 Changeset detected

Latest commit: 7120605

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
gitbook Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for nested site section groups by restructuring the data model from a flat sections array to a hierarchical children structure, and updates the UI components to handle multiple levels of nesting in both tab and sidebar list views.

  • Refactors site section groups to use children instead of sections for hierarchical structure
  • Updates UI components to recursively render nested section groups
  • Improves styling for section group tiles with better visual hierarchy

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/gitbook/src/lib/sites.ts Adds recursive flattening utilities and updates site structure traversal logic
packages/gitbook/src/components/SiteSections/encodeClientSiteSections.ts Changes data model from sections to children and adds recursive encoding
packages/gitbook/src/components/SiteSections/SiteSectionTabs.tsx Updates tab component to handle nested groups with improved styling and layout
packages/gitbook/src/components/SiteSections/SiteSectionList.tsx Updates sidebar list to support nested groups with proper indentation
package.json Updates @gitbook/api dependency version
.changeset/fluffy-clouds-tap.md Adds changeset entry for the feature

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

argos-ci bot commented Sep 18, 2025

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v2 (Inspect) 👍 Changes approved 8 changed Sep 18, 2025, 1:20 PM
v2-cloudflare (Inspect) 👍 Changes approved 1 changed Sep 18, 2025, 1:24 PM
v2-vercel (Inspect) ✅ No changes detected - Sep 18, 2025, 1:23 PM

@zenoachtig zenoachtig merged commit e434442 into main Sep 18, 2025
16 checks passed
@zenoachtig zenoachtig deleted the zeno/rnd-8060-add-headers-to-site-section-groups branch September 18, 2025 13:28
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.

2 participants