Refactor installation page state/layout to fix dynamic TOC, mobile responsiveness, and hydration overhead#38
Draft
Copilot wants to merge 4 commits into
Draft
Conversation
Agent-Logs-Url: https://github.com/SpicyDevs/posterium-frontend/sessions/a3e7a76a-7cdf-4233-a164-1b6ad37bfcfb Co-authored-by: ikrdikhit <155148519+ikrdikhit@users.noreply.github.com>
…ding Agent-Logs-Url: https://github.com/SpicyDevs/posterium-frontend/sessions/a3e7a76a-7cdf-4233-a164-1b6ad37bfcfb Co-authored-by: ikrdikhit <155148519+ikrdikhit@users.noreply.github.com>
Agent-Logs-Url: https://github.com/SpicyDevs/posterium-frontend/sessions/a3e7a76a-7cdf-4233-a164-1b6ad37bfcfb Co-authored-by: ikrdikhit <155148519+ikrdikhit@users.noreply.github.com>
Agent-Logs-Url: https://github.com/SpicyDevs/posterium-frontend/sessions/a3e7a76a-7cdf-4233-a164-1b6ad37bfcfb Co-authored-by: ikrdikhit <155148519+ikrdikhit@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
ikrdikhit
April 5, 2026 12:19
View session
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
posterium-frontend | 2922104 | Commit Preview URL Branch Preview URL |
Apr 05 2026, 12:15 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/installationhad two coupled issues: guide switching was DOM-driven and left TOC state stale (preparedGuides[0]), and heavy inline styling caused brittle responsive behavior. This PR moves guide/TOC coordination into a single client state boundary, removes inline layout styling in favor of Tailwind utilities, and tightens semantics/a11y without changing SEO metadata wiring.Guide state + TOC synchronization
InstallationSidebarClientto ownactiveGuideId(desktop links + mobile select).TableOfContentsClientnow receives active guide context and rebinds to that guide’s headings.IntersectionObserveragainst the currently visible guide article.Responsive layout refactor (Tailwind-first)
src/pages/installation.astro.<select>controlhidden/flex) +aria-hiddeninstead of style mutation.Performance and hydration
MainNavbarhydration on installation page fromclient:load→client:idle.ShowcaseViewerhydration asclient:visible.decoding="async"to showcase images (lazy loading already in place).SEO + accessibility
<PageSEO routeKey="/installation" />andBaseLayoutunchanged.aria-currentusage for active app links and TOC location.CSS.escape(...)for safe DOM queries.