fix: layout shifts and missing props#3006
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
📝 WalkthroughWalkthroughThis pull request updates the visual state and styling of several dashboard components. It adds an Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
🧰 Additional context used🧬 Code Definitions (2)apps/dashboard/app/(app)/apis/navigation.tsx (1)
apps/dashboard/app/(app)/ratelimits/navigation.tsx (1)
⏰ Context from checks skipped due to timeout of 90000ms (12)
🔇 Additional comments (5)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Thank you for following the naming conventions for pull request titles! 🙏 |
|
A couple of layout shifts I've just noticed and some missing navbar props |
* fix: layout shift * fix: missing active tags
* feat: add usage-insight on the desktop-sidebar * remove console.log * refactor: improve code consistency and formatting across multiple files * fix: keep only the progress circle, remove the particle effect, keep the card always open * refactor: simplify layout and desktop sidebar components, remove unused billing logic * feat(billing): add usage fetching hook and TRPC query for billing usage data * fix: update workspace creation logic to set plan to 'free' and improve error handling * fix: remove unnecessary console log for usage query fetching * refactor: adjust padding and height in usage insights component for improved layout * fix: update plan type in usage insights to handle workspace tier and default to 'Free' * [autofix.ci] apply automated fixes * refactor: improve code readability and formatting in usage insights component * refactor: remove Particles component and relocate useMousePosition hook * refactor: enhance code formatting and readability in desktop sidebar component * fix: remove use-mouse hook * pnpm fmt * pnpm-lock fix * refactor: update usage insights to use 'tier' instead of 'plan' and simplify loading state handling * fix: remove outdated and wrong quota check (#3000) we now have proper quotas, so this check is redundand. If a workspace is disabled, there is already a warning in the root layout to contact us. * Update README.md (#3002) Fix Invalid URL of "Read our blog post" * feat: sidebar (#3003) * feat: add new sidebar * fix: icon * fix: padding issues * feat: add new sidebar * fix: ui issues * chore: clenaup * chore: remove unused button * fix: collapse issue * fix: ui issues * chore: remove unused files * fix: layout shifts and missing props (#3006) * fix: layout shift * fix: missing active tags * refactor: clean up imports and improve layout component structure * pnpm fmt * refactor: simplify usage query options in useFetchUsage hook * pnpm fmt * fix: broken lock * fix: quotas rename to quota This fixes the incorrect usage max issue * fix: refetch usage --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Oğuzhan Olguncu <21091016+ogzhanolguncu@users.noreply.github.com> Co-authored-by: James P <jamesperkins@hey.com> Co-authored-by: Andreas Thomas <dev@chronark.com> Co-authored-by: okuma <49895482+kumachan99@users.noreply.github.com> Co-authored-by: ogzhanolguncu <ogzhan11@gmail.com>
What does this PR do?
Fixes # (issue)
If there is not an issue for this, please create one first. This is used to tracking purposes and also helps use understand why this PR exists
Type of change
How should this be tested?
Checklist
Required
pnpm buildpnpm fmtconsole.logsgit pull origin mainAppreciated
Summary by CodeRabbit