From 6856e3320bdf73a96ebe26a44f8d7e30a04b2311 Mon Sep 17 00:00:00 2001 From: pankaj kumar Date: Thu, 27 Mar 2025 23:48:34 +0530 Subject: [PATCH 01/13] improve UI responsiveness for 'Latest News' section in Community Newsroom --- components/newsroom/Newsroom.tsx | 49 ++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/components/newsroom/Newsroom.tsx b/components/newsroom/Newsroom.tsx index a88c4e2f14cf..acc87cc3d955 100644 --- a/components/newsroom/Newsroom.tsx +++ b/components/newsroom/Newsroom.tsx @@ -52,32 +52,37 @@ export default function Newsroom() {
-
-
- - Latest News - - - Read about what people are
saying about AsyncAPI -
-
- - Follow us on Twitter - - -
+
+
+ + Latest News + + + Read about what people are
saying about AsyncAPI +
+
+ + Follow us on Twitter + +
+
-
-
-
-
- -
-
-
+
+
+
+
+
+
+
+
+
From ac3d9750577f2eef6f0116edbcb940c83fbfa7f2 Mon Sep 17 00:00:00 2001 From: pankaj kumar Date: Fri, 28 Mar 2025 00:09:39 +0530 Subject: [PATCH 02/13] fix the preetier part --- components/newsroom/Newsroom.tsx | 118 ++++++++++++++++++------------- 1 file changed, 70 insertions(+), 48 deletions(-) diff --git a/components/newsroom/Newsroom.tsx b/components/newsroom/Newsroom.tsx index acc87cc3d955..91840f528453 100644 --- a/components/newsroom/Newsroom.tsx +++ b/components/newsroom/Newsroom.tsx @@ -17,35 +17,47 @@ import NewsroomYoutube from './NewsroomYoutube'; export default function Newsroom() { return ( <> -
+
Latest Updates - - Get a glimpse of latest news, events, and blog posts. Want to publish a blog post? We love community - stories.  - + + Get a glimpse of latest news, events, and blog posts. Want to publish + a blog post? We love community stories.  + Submit yours!
-
-
- +
+
+ From the blog - + Check out these articles written by community members -
- +
+ Read all blog posts - +
-
+
@@ -53,55 +65,65 @@ export default function Newsroom() {
-
- - Latest News - - - Read about what people are
saying about AsyncAPI -
-
- - Follow us on Twitter - - +
+ + Latest News + + + Read about what people are
saying about AsyncAPI +
+
+ + Follow us on Twitter + + +
-
-
-
-
-
- -
-
+
+
+
+
+ +
+
+
-
-
-
-
- +
+
+ Video & Live Streams - - Watch our latest videos and live streams on the AsyncAPI YouTube channel + + Watch our latest videos and live streams on the AsyncAPI YouTube + channel -
- +
+ Visit our YouTube channel - +
-
+
From c5d1d2e14fbf93dc69ba4d29edc157499c24e0bf Mon Sep 17 00:00:00 2001 From: pankaj kumar Date: Fri, 28 Mar 2025 00:13:12 +0530 Subject: [PATCH 03/13] refactor: standardize quotation marks in Newsroom component --- components/newsroom/Newsroom.tsx | 67 +++++++++++++++----------------- 1 file changed, 32 insertions(+), 35 deletions(-) diff --git a/components/newsroom/Newsroom.tsx b/components/newsroom/Newsroom.tsx index 91840f528453..cbf42872e3df 100644 --- a/components/newsroom/Newsroom.tsx +++ b/components/newsroom/Newsroom.tsx @@ -17,80 +17,77 @@ import NewsroomYoutube from './NewsroomYoutube'; export default function Newsroom() { return ( <> -
+
Latest Updates Get a glimpse of latest news, events, and blog posts. Want to publish a blog post? We love community stories.  Submit yours!
-
-
+
+
From the blog - + Check out these articles written by community members -
- +
+ Read all blog posts - +
-
+

-
-
+
+
Latest News - + Read about what people are
saying about AsyncAPI
-
+
Follow us on Twitter - +
-
-
-
-
+
+
+
+
@@ -100,30 +97,30 @@ export default function Newsroom() {
-
-
+
+
Video & Live Streams - + Watch our latest videos and live streams on the AsyncAPI YouTube channel -
+
Visit our YouTube channel - +
-
+
From 84d0ac446a83e43a9bf2d952af7a551ebf33423c Mon Sep 17 00:00:00 2001 From: pankaj kumar Date: Fri, 28 Mar 2025 00:21:51 +0530 Subject: [PATCH 04/13] liniting fix --- components/newsroom/Newsroom.tsx | 43 +++++++------------------------- 1 file changed, 9 insertions(+), 34 deletions(-) diff --git a/components/newsroom/Newsroom.tsx b/components/newsroom/Newsroom.tsx index cbf42872e3df..2e45d99d774d 100644 --- a/components/newsroom/Newsroom.tsx +++ b/components/newsroom/Newsroom.tsx @@ -21,16 +21,9 @@ export default function Newsroom() { Latest Updates - - Get a glimpse of latest news, events, and blog posts. Want to publish - a blog post? We love community stories.  - + + Get a glimpse of latest news, events, and blog posts. Want to publish a blog post? We love community stories.  + Submit yours! @@ -38,10 +31,7 @@ export default function Newsroom() {
- + From the blog @@ -63,21 +53,14 @@ export default function Newsroom() {
- + Latest News Read about what people are
saying about AsyncAPI
- + Follow us on Twitter @@ -99,22 +82,14 @@ export default function Newsroom() {
- + Video & Live Streams - Watch our latest videos and live streams on the AsyncAPI YouTube - channel + Watch our latest videos and live streams on the AsyncAPI YouTube channel
- + Visit our YouTube channel From d44a3ee4cd2476c63c39c8c21335dfcccd518cb2 Mon Sep 17 00:00:00 2001 From: pankaj kumar Date: Fri, 28 Mar 2025 13:13:46 +0530 Subject: [PATCH 05/13] lint fix --- components/newsroom/Newsroom.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/newsroom/Newsroom.tsx b/components/newsroom/Newsroom.tsx index 2e45d99d774d..9a3dac827025 100644 --- a/components/newsroom/Newsroom.tsx +++ b/components/newsroom/Newsroom.tsx @@ -22,7 +22,8 @@ export default function Newsroom() { Latest Updates - Get a glimpse of latest news, events, and blog posts. Want to publish a blog post? We love community stories.  + Get a glimpse of latest news, events, and blog posts. Want to publish a blog post? We love community + stories.  Submit yours! @@ -68,7 +69,7 @@ export default function Newsroom() {
-
+
From 6b06895d73f5a8e077a2d2ea105538e9ac1a3495 Mon Sep 17 00:00:00 2001 From: pankaj kumar Date: Fri, 28 Mar 2025 13:13:59 +0530 Subject: [PATCH 06/13] lint fix --- components/newsroom/Newsroom.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/newsroom/Newsroom.tsx b/components/newsroom/Newsroom.tsx index 9a3dac827025..d1201f417577 100644 --- a/components/newsroom/Newsroom.tsx +++ b/components/newsroom/Newsroom.tsx @@ -22,7 +22,7 @@ export default function Newsroom() { Latest Updates - Get a glimpse of latest news, events, and blog posts. Want to publish a blog post? We love community + Get a glimpse of latest news, events, and blog posts. Want to publish a blog post? We love community stories.  Submit yours! From cdf9e26d320fe67e25f59f032857d038331f778e Mon Sep 17 00:00:00 2001 From: pankaj kumar Date: Fri, 28 Mar 2025 14:51:59 +0530 Subject: [PATCH 07/13] fix: correct indentation in Newsroom component --- components/newsroom/Newsroom.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/newsroom/Newsroom.tsx b/components/newsroom/Newsroom.tsx index d1201f417577..9a3dac827025 100644 --- a/components/newsroom/Newsroom.tsx +++ b/components/newsroom/Newsroom.tsx @@ -22,7 +22,7 @@ export default function Newsroom() { Latest Updates - Get a glimpse of latest news, events, and blog posts. Want to publish a blog post? We love community + Get a glimpse of latest news, events, and blog posts. Want to publish a blog post? We love community stories.  Submit yours! From c34ac2d26d7bed377b37849728eb2586dd394d25 Mon Sep 17 00:00:00 2001 From: pankaj kumar Date: Fri, 28 Mar 2025 22:24:26 +0530 Subject: [PATCH 08/13] Remove duplicate tool rendering in ToolsList using Set for unique titles. --- components/tools/ToolsList.tsx | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/components/tools/ToolsList.tsx b/components/tools/ToolsList.tsx index 5ce95974d722..3252375c7021 100644 --- a/components/tools/ToolsList.tsx +++ b/components/tools/ToolsList.tsx @@ -13,7 +13,7 @@ interface ToolsListProp { } /** - * @description This component displays list of tools. + * @description This component displays a list of tools. * * @param {ToolsListProp} props - Props for the ToolsList component. * @param {ToolsListData} props.toolsListData - List of Tools. @@ -22,18 +22,29 @@ export default function ToolsList({ toolsListData }: ToolsListProp) { return (
{Object.keys(toolsListData).map((categoryName, index) => { - if (toolsListData[categoryName].toolsList.length > 0) { + const { toolsList, description, elementRef } = toolsListData[categoryName]; + + // Use a Set to track unique tool titles and avoid duplicates + const uniqueTools = new Set(); + + if (toolsList.length > 0) { return ( -
+
{categoryName} - {toolsListData[categoryName].description} + {description}
- {toolsListData[categoryName].toolsList.map((tool, toolIndex) => ( - - ))} + {toolsList.map((tool, toolIndex) => { + if (!uniqueTools.has(tool.title)) { + uniqueTools.add(tool.title); + + return ; + } + + return null; + })}
); From 247175f41aa063ab5846268ac9c198a8cc5c2f6a Mon Sep 17 00:00:00 2001 From: pankaj kumar Date: Fri, 28 Mar 2025 22:24:37 +0530 Subject: [PATCH 09/13] Remove duplicate tool rendering in ToolsList using Set for unique titles. --- types/components/tools/ToolDataType.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/components/tools/ToolDataType.ts b/types/components/tools/ToolDataType.ts index 3ef659f3c976..f823f2fd0e1f 100644 --- a/types/components/tools/ToolDataType.ts +++ b/types/components/tools/ToolDataType.ts @@ -31,6 +31,7 @@ export interface Filter { } export interface ToolData { + id: number; title: string; description?: string; links?: Link; From 76d8ae47e1d35f20d93d838c9f089aa0e9809a3c Mon Sep 17 00:00:00 2001 From: pankaj kumar Date: Fri, 28 Mar 2025 22:28:23 +0530 Subject: [PATCH 10/13] Refactor ToolsList component to simplify rendering and remove duplicate tool handling --- components/tools/ToolsList.tsx | 25 +++++++------------------ types/components/tools/ToolDataType.ts | 1 - 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/components/tools/ToolsList.tsx b/components/tools/ToolsList.tsx index 3252375c7021..5ce95974d722 100644 --- a/components/tools/ToolsList.tsx +++ b/components/tools/ToolsList.tsx @@ -13,7 +13,7 @@ interface ToolsListProp { } /** - * @description This component displays a list of tools. + * @description This component displays list of tools. * * @param {ToolsListProp} props - Props for the ToolsList component. * @param {ToolsListData} props.toolsListData - List of Tools. @@ -22,29 +22,18 @@ export default function ToolsList({ toolsListData }: ToolsListProp) { return (
{Object.keys(toolsListData).map((categoryName, index) => { - const { toolsList, description, elementRef } = toolsListData[categoryName]; - - // Use a Set to track unique tool titles and avoid duplicates - const uniqueTools = new Set(); - - if (toolsList.length > 0) { + if (toolsListData[categoryName].toolsList.length > 0) { return ( -
+
{categoryName} - {description} + {toolsListData[categoryName].description}
- {toolsList.map((tool, toolIndex) => { - if (!uniqueTools.has(tool.title)) { - uniqueTools.add(tool.title); - - return ; - } - - return null; - })} + {toolsListData[categoryName].toolsList.map((tool, toolIndex) => ( + + ))}
); diff --git a/types/components/tools/ToolDataType.ts b/types/components/tools/ToolDataType.ts index f823f2fd0e1f..3ef659f3c976 100644 --- a/types/components/tools/ToolDataType.ts +++ b/types/components/tools/ToolDataType.ts @@ -31,7 +31,6 @@ export interface Filter { } export interface ToolData { - id: number; title: string; description?: string; links?: Link; From dfadb9501ca4e5348f50a7fff26d26ca1c4ee334 Mon Sep 17 00:00:00 2001 From: pankaj kumar Date: Mon, 7 Apr 2025 11:25:44 +0530 Subject: [PATCH 11/13] removed inline --- components/newsroom/Newsroom.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/newsroom/Newsroom.tsx b/components/newsroom/Newsroom.tsx index 9a3dac827025..f165b3eafb33 100644 --- a/components/newsroom/Newsroom.tsx +++ b/components/newsroom/Newsroom.tsx @@ -61,7 +61,7 @@ export default function Newsroom() { Read about what people are
saying about AsyncAPI
- + Follow us on Twitter From 6bfd6f7a0cc1a8f4ecc32a071ab8795121f1a656 Mon Sep 17 00:00:00 2001 From: pankaj kumar Date: Mon, 7 Apr 2025 11:28:57 +0530 Subject: [PATCH 12/13] fix: correct typo in Twitter link class name --- components/newsroom/Newsroom.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/newsroom/Newsroom.tsx b/components/newsroom/Newsroom.tsx index f165b3eafb33..f4ee14d01b4a 100644 --- a/components/newsroom/Newsroom.tsx +++ b/components/newsroom/Newsroom.tsx @@ -61,7 +61,7 @@ export default function Newsroom() { Read about what people are
saying about AsyncAPI
- + Follow us on Twitter From 944f9058a77ba9e6d388a66f04bc012f6d37aca8 Mon Sep 17 00:00:00 2001 From: pankaj kumar Date: Mon, 7 Apr 2025 11:41:02 +0530 Subject: [PATCH 13/13] fix: adjust width of banner container for better responsiveness --- components/campaigns/AnnouncementHero.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/campaigns/AnnouncementHero.tsx b/components/campaigns/AnnouncementHero.tsx index 3a43761a6bc4..19cea6690953 100644 --- a/components/campaigns/AnnouncementHero.tsx +++ b/components/campaigns/AnnouncementHero.tsx @@ -60,7 +60,7 @@ export default function AnnouncementHero({ className = '', small = false }: IAnn
)} -
+
{visibleBanners.map((banner, index) => { // Only render the active banner