From 7bc513c7703c8538d231f25627ed1d526dada484 Mon Sep 17 00:00:00 2001 From: MananTank Date: Thu, 25 Sep 2025 08:00:13 +0000 Subject: [PATCH] [BLD-328] Portal: Update changelog page layout (#8124) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR focuses on UI improvements and code refactoring across various components in the application, enhancing styling consistency, accessibility, and overall user experience. ### Detailed summary - Updated grid spacing in `Grid.tsx`. - Increased max-width in `layout.tsx`. - Modified border styles in multiple components. - Enhanced button styles and variants in `chat-button.tsx` and `Subscribe.tsx`. - Improved text styles for better readability. - Refactored `AuthMethodsTabs.tsx` to use `Button` component. - Adjusted `DocLayout.tsx` for more responsive design. - Improved date formatting in `RenderData.tsx`. - Added animations to `TableOfContents.tsx`. - Updated feedback dialog in `Feedback.tsx` for better UX. - General styling updates for consistency across components. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` ## Summary by CodeRabbit - Style - Widespread visual refinements: typography, spacing, tighter headings, dashed borders for dividers/images/code, smaller author avatar, absolute dates, wider content container, updated buttons (ghost/outline), adjusted icons and shadows, updated link/inline-code/grid/card styles, tabs and header/menu visual updates. - Footer, sidebar, docs search, subscribe, feedback, and table-of-contents presentational tweaks (including fade-in and conditional hiding). - Refactor - Simplified changelog and post layout to a single-column header-first structure; removed changelog index TOC. --- apps/portal/src/app/Header.tsx | 98 +++++++++---------- .../src/app/changelog/[slug]/layout.tsx | 2 +- apps/portal/src/app/changelog/[slug]/page.tsx | 4 +- .../src/app/changelog/components/Author.tsx | 6 +- .../components/ChangeLogIndexTOC.tsx | 11 --- .../app/changelog/components/RenderData.tsx | 12 +-- apps/portal/src/app/changelog/page.tsx | 87 ++++++++-------- .../src/app/changelog/utils/transform.tsx | 12 ++- apps/portal/src/app/transactions/page.mdx | 86 ++++++++-------- .../src/app/transactions/sponsor/page.mdx | 2 + apps/portal/src/components/AI/chat-button.tsx | 6 +- .../components/Document/AuthMethodsTabs.tsx | 16 +-- apps/portal/src/components/Document/Code.tsx | 2 +- .../src/components/Document/DocImage.tsx | 2 +- .../src/components/Document/DocLink.tsx | 2 +- apps/portal/src/components/Document/Grid.tsx | 2 +- .../src/components/Document/Heading.tsx | 6 +- .../src/components/Document/InlineCode.tsx | 2 +- .../src/components/Document/PageFooter.tsx | 33 ++++--- .../src/components/Document/SDKCard.tsx | 8 +- .../src/components/Layouts/DocLayout.tsx | 4 +- .../src/components/others/DocSearch.tsx | 4 +- .../portal/src/components/others/Feedback.tsx | 44 +++++---- apps/portal/src/components/others/Sidebar.tsx | 29 +++--- .../src/components/others/Subscribe.tsx | 13 +-- .../src/components/others/TableOfContents.tsx | 8 +- apps/portal/src/components/ui/tabs.tsx | 9 +- .../components/code/CodeBlockContainer.tsx | 2 +- 28 files changed, 246 insertions(+), 266 deletions(-) delete mode 100644 apps/portal/src/app/changelog/components/ChangeLogIndexTOC.tsx diff --git a/apps/portal/src/app/Header.tsx b/apps/portal/src/app/Header.tsx index 9445db0c44b..ee7ff7cfeb4 100644 --- a/apps/portal/src/app/Header.tsx +++ b/apps/portal/src/app/Header.tsx @@ -213,7 +213,7 @@ export function Header() { const pathname = usePathname(); return ( -
+
{/* Top row */}
@@ -230,7 +230,7 @@ export function Header() {
-
+
{/* Bottom row - hidden on mobile */} -
+
-
-
- setShowBurgerMenu(false)} - /> -
-
- setShowBurgerMenu(false)} - /> -
-
- setShowBurgerMenu(false)} - /> -
- -
- setShowBurgerMenu(false)} - /> -
+
+ setShowBurgerMenu(false)} + /> + setShowBurgerMenu(false)} + /> + setShowBurgerMenu(false)} + /> -
- setShowBurgerMenu(false)} - /> -
+ setShowBurgerMenu(false)} + /> + setShowBurgerMenu(false)} + /> { setShowBurgerMenu(false); @@ -448,31 +442,29 @@ function DropdownLinks(props: { {props.links.map((info) => { return (
{info.icon && ( - + )} void; icon?: React.FC<{ className?: string }>; + className?: string; }) { const pathname = usePathname(); return ( @@ -534,6 +527,7 @@ function NavLink(props: { ? "text-foreground" : "text-muted-foreground", props.icon ? "flex flex-row gap-3" : "", + props.className, )} href={props.href} onClick={props.onClick} diff --git a/apps/portal/src/app/changelog/[slug]/layout.tsx b/apps/portal/src/app/changelog/[slug]/layout.tsx index c7adb43ecc4..956b55943de 100644 --- a/apps/portal/src/app/changelog/[slug]/layout.tsx +++ b/apps/portal/src/app/changelog/[slug]/layout.tsx @@ -1,6 +1,6 @@ export default function Layout(props: { children: React.ReactNode }) { return ( -
+
{props.children}
); diff --git a/apps/portal/src/app/changelog/[slug]/page.tsx b/apps/portal/src/app/changelog/[slug]/page.tsx index e6eb9be34ef..0e2b2337ab8 100644 --- a/apps/portal/src/app/changelog/[slug]/page.tsx +++ b/apps/portal/src/app/changelog/[slug]/page.tsx @@ -25,7 +25,7 @@ export default async function Page(props: { return (
- diff --git a/apps/portal/src/components/Document/AuthMethodsTabs.tsx b/apps/portal/src/components/Document/AuthMethodsTabs.tsx index b4062389ac8..07fc2d36bab 100644 --- a/apps/portal/src/components/Document/AuthMethodsTabs.tsx +++ b/apps/portal/src/components/Document/AuthMethodsTabs.tsx @@ -16,6 +16,7 @@ import { } from "@/icons"; import { cn } from "@/lib/utils"; import { CodeClient } from "../code/code.client"; +import { Button } from "../ui/button"; type AuthMethod = | "email" @@ -849,16 +850,15 @@ function AuthMethodsTabsContent() {
{authMethods.map((method) => ( - +
{method.label}
+ ))}
diff --git a/apps/portal/src/components/Document/Code.tsx b/apps/portal/src/components/Document/Code.tsx index 5a3eea96788..82c18c70f40 100644 --- a/apps/portal/src/components/Document/Code.tsx +++ b/apps/portal/src/components/Document/Code.tsx @@ -73,8 +73,8 @@ export async function CodeBlock(props: { lang={lang} > diff --git a/apps/portal/src/components/Document/DocImage.tsx b/apps/portal/src/components/Document/DocImage.tsx index c1eb4a23847..b892cc4a3ae 100644 --- a/apps/portal/src/components/Document/DocImage.tsx +++ b/apps/portal/src/components/Document/DocImage.tsx @@ -15,7 +15,7 @@ export function DocImage(props: { return (
diff --git a/apps/portal/src/components/Document/DocLink.tsx b/apps/portal/src/components/Document/DocLink.tsx index f7a402c9861..23359d691da 100644 --- a/apps/portal/src/components/Document/DocLink.tsx +++ b/apps/portal/src/components/Document/DocLink.tsx @@ -10,7 +10,7 @@ export function DocLink(props: { return ( diff --git a/apps/portal/src/components/Document/Heading.tsx b/apps/portal/src/components/Document/Heading.tsx index e845b0cfd5a..8c462c7797e 100644 --- a/apps/portal/src/components/Document/Heading.tsx +++ b/apps/portal/src/components/Document/Heading.tsx @@ -33,7 +33,7 @@ export function Heading(props: { >

@@ -52,7 +52,7 @@ export function Heading(props: { >

@@ -71,7 +71,7 @@ export function Heading(props: { >

diff --git a/apps/portal/src/components/Document/InlineCode.tsx b/apps/portal/src/components/Document/InlineCode.tsx index 163ce7c15a6..a4bb5bda43a 100644 --- a/apps/portal/src/components/Document/InlineCode.tsx +++ b/apps/portal/src/components/Document/InlineCode.tsx @@ -4,7 +4,7 @@ export function InlineCode(props: { code: string; className?: string }) { return ( -
-
- {props.editPageButton && } - {props.sidebarLinks && ( - - )} -
+