-
Couldn't load subscription status.
- Fork 25
Improves sidebar content robustness #2883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📦 Next.js Bundle AnalysisThis analysis was generated by the next.js bundle analysis action 🤖 One Page Changed SizeThe following page changed size from the code in this PR compared to its base branch:
DetailsOnly the gzipped size is provided here based on an expert tip. First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If Any third party scripts you have added directly to your app using the Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. |
Adds error handling and graceful loading states to the tutorial view sidebar component. This prevents crashes and improves the user experience when data is loading or missing, and during rapid navigation changes. It achieves this by wrapping the component in an ErrorBoundary and ensuring the CollectionProgress component always renders its container, which prevents layout shifts.
Refactors the collection progress component to streamline data fetching and rendering logic. Removes an unnecessary condition that always rendered the container, simplifying the component's structure.
6c0dded to
2d443aa
Compare
src/components/tutorials-sidebar/components/tutorial-view-sidebar-content/index.tsx
Show resolved
Hide resolved
...ar/components/tutorial-view-sidebar-content/__tests__/tutorial-view-sidebar-content.test.tsx
Show resolved
Hide resolved
|
Great job on this @Younique98 ! Just added in some questions but this looks good to merge otherwise |
Adds error handling and graceful loading states to the tutorial view sidebar component.
This prevents crashes and improves the user experience when data is loading or missing, and during rapid navigation changes. It achieves this by wrapping the component in an ErrorBoundary and ensuring the CollectionProgress component always renders its container, which prevents layout shifts.
🔗 Relevant links
🗒️ What
🤷 Why
🛠️ How
📸 Design Screenshots
Screen.Recording.2025-10-28.at.12.13.30.PM.mov
🧪 Testing
New tests have been written.
To test:
Go to this page:
https://developer.hashicorp.com/vault/tutorials/secrets-management/azure-secrets
From that page, click on the left nav link “Vault as a KIMP server” the browser displays this error:
Something went wrong.
💭 Anything else?
PCI review checklist
I have documented a clear reason for, and description of, the change I am making.
If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
If applicable, I've documented the impact of any changes to security controls.
Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.