Skip to content

Fixing The Spacing of The Parent ul in Honeycomb Mesh - #8117

Closed
tanav29 wants to merge 6 commits into
layer5io:masterfrom
tanav29:fix/spacing-after-mesh
Closed

tanav29 wants to merge 6 commits into
layer5io:masterfrom
tanav29:fix/spacing-after-mesh

Conversation

@tanav29

@tanav29 tanav29 commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

This PR fixes #8116

screenrecording-2026-09-23_15-32-53.mp4

Description

Root-caused and fixed the empty gap under the honeycomb integrations mesh:

  • layer5/src/sections/Meshery/Meshery-integrations/Honeycomb/Honeycomb.js: the real bug — the grid's height was predicted analytically (estimating hexagons-per-row from viewport width with hardcoded fudge constants), which overestimated the row count and reserved more vertical space than the hexagons actually filled, leaving a blank gap below the mesh. Replaced that prediction with a measure-then-fit approach:
    • Temporarily grows the grid tall enough for every hexagon to wrap into place (safe because the shape-outside repeating pattern is height-independent).
    • Measures the actual bottom edge of the rendered hexagons via getBoundingClientRect.
    • Shrinks the grid to that exact measured height.
    • Runs in useLayoutEffect (with an SSR-safe fallback to useEffect during Gatsby's build) so there's no visible flash, and re-measures on window resize.

Signed commits

  • Yes, I signed my commits.

Summary by CodeRabbit

  • Bug Fixes
    • Honeycomb integration grids now size their height based on the displayed items and update when the window is resized, improving layout across different screen sizes and when no items are shown.
    • Integration titles now use theme-aware colors, improving readability across light and dark themes.

Signed-off-by: Tanav Poswal <tanavposwal939@gmail.com>
@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: c7ed34b9-a46b-4bee-971b-673f55ed0aeb

📥 Commits

Reviewing files that changed from the base of the PR and between fd9b083 and 2e5a073.

📒 Files selected for processing (1)
  • src/sections/Meshery/Meshery-integrations/Integration.style.js

Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The Honeycomb grid now sets its height from rendered item positions and runs layout when items change or the window resizes. Its styling removes the fixed height offset and sets the grid margin to zero. The integration title color now uses the theme’s whiteToBlack value.

Changes

Integration page layout

Layer / File(s) Summary
Measure grid height and update integration styling
src/sections/Meshery/Meshery-integrations/Honeycomb/Honeycomb.js, src/sections/Meshery/Meshery-integrations/Honeycomb/Honeycomb.style.js, src/sections/Meshery/Meshery-integrations/Integration.style.js
The Honeycomb component measures rendered item positions and updates the grid height when items change or the window resizes. The grid style uses that height without the previous fixed offset and sets the margin to zero. The integration title color changes to theme.whiteToBlack.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: vedant21-ctr

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Out of Scope Changes check ⚠️ Warning The Integration.style.js change replaces the integration title color with theme.whiteToBlack. The linked issue concerns spacing below the mesh and does not require a title-color change. The Honeyc… Remove the unrelated Integration.style.js color change, or provide a direct coding dependency that connects it to issue #8116.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the primary change: fixing excess spacing caused by the parent ul in the Honeycomb mesh.
Linked Issues check ✅ Passed Issue #8116 requires removal of the unnecessary space below the integrations mesh. Honeycomb.js measures the rendered bottom edge of each mesh item and updates the grid height. Honeycomb.style.js …
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 4…
Full details: Out of Scope Changes check

Explanation

The Integration.style.js change replaces the integration title color with theme.whiteToBlack. The linked issue concerns spacing below the mesh and does not require a title-color change. The Honeycomb changes are in scope.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

Warning

Some tools did not complete. Review the errors below.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

src/sections/Meshery/Meshery-integrations/Integration.style.js

Parsing error: [BABEL] /src/sections/Meshery/Meshery-integrations/Integration.style.js: babel-preset-gatsby has been loaded, which consumes config generated by the Gatsby CLI. Set NODE_ENV=test to bypass, or run gatsby build first. (While processing: "/node_modules/babel-preset-gatsby/index.js")


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Cause: commit 89c867c commented out brand sections with //, which is
invalid inside JSX children — it produced react/jsx-no-comment-textnodes
errors plus react/jsx-no-undef for the now-unimported brands, and left
stray </div> closers.
Changes in src/sections/Company/Brand/index.js:
- Lines ~233-242: replaced the three broken // <div...> blocks with one
  proper JSX comment {/* <div id="meshery"...> ... <div
  id="meshery-operator"...> ... */}, preserving the intent to hide
  Meshery / MeshSync / Meshery Operator kits.
- scrollTo:52: added if (!element) return; guard so clicking those nav
  links while their sections are commented out no-ops instead of
  throwing on null.offsetTop.

Signed-off-by: Tanav Poswal <tanavposwal939@gmail.com>
Signed-off-by: Tanav Poswal <tanavposwal939@gmail.com>
@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for PR #8117 removed.

This PR preview was automatically pruned because we keep only the 3 most recently updated previews on GitHub Pages to stay within deployment size limits.

If needed, push a new commit to this PR to generate a fresh preview.

@vedant21-ctr vedant21-ctr left a comment

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.

One concern: Brand/index.js now hides the Meshery, MeshSync, and Meshery Operator sections, but their sidebar links are still present and now do nothing.
Could you confirm whether hiding these sections was intentional? If yes, the corresponding navigation links should probably be removed/disabled as well.
Other than that, the Honeycomb changes look good.

@tanav29

tanav29 commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Good catch - hiding was intentional. My change only converted the comments to valid JSX to fix lint issue in npm run lint and added a null-guard so those nav clicks no-op instead of throwing. Happy to also comment out the 3 sidebar links in a follow-up if we want to fully remove them. @vedant21-ctr

@tanav29 tanav29 closed this Sep 24, 2026
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.

UI Issue with unnecessary spacing after integrations mesh

2 participants