Skip to content

Commit be3845f

Browse files
authored
refactor: remove "Why is Hiero Open Source?" section from UI and tests (#347)
Signed-off-by: vidhhya1 <vidya2005varshini@gmail.com>
1 parent 9e9217a commit be3845f

File tree

5 files changed

+6
-43
lines changed

5 files changed

+6
-43
lines changed

content/_index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ section_what_is_hiero_heading = "What is Hiero?"
1010
section_what_is_hiero_text = '''
1111
Hiero, a <a href="http://www.lfdecentralizedtrust.org/" target="_blank" rel="noreferrer noopener">Linux Foundation Decentralized Trust</a> project, is an open-source, vendor-neutral distributed ledger technology. Hiero is used to build the <a href="https://hedera.com/" target="_blank" rel="noreferrer noopener">Hedera</a> public ledger.'''
1212

13-
section_why_open_source_heading = "Why is Hiero Open Source?"
14-
section_why_open_source_text = "The main goal of Hiero is to create a diverse community of developers, dreamers, and builders working to make the world more fair, fast, and secure. To achieve that goal it is critical that everyone can access the source of Hiero and move the project forward. A decentralized network that is used by enterprises and critical infrastructure around the world must be vendor-neutral and fully auditable."
13+
1514

1615
section_what_parts_open_source_heading = "What parts of Hiero are Open Source?"
1716
section_what_parts_open_source_text = '''

src/app/page.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Divider from "@/components/Divider";
44
import MeetSection from "@/components/MeetSection";
55
import ReposGrid from "@/components/ReposGrid";
66
import IssueJumpSection from "@/components/IssueJumpSection";
7-
import OpenSourceSection from "@/components/OpenSourceSection";
87
import QuotesCarousel from "@/components/QuotesCarousel";
98

109
const heroData = {
@@ -305,15 +304,6 @@ const issueJumpData = {
305304
],
306305
};
307306

308-
const openSourceData = {
309-
whyHeading: "Why is Hiero Open Source?",
310-
whyText:
311-
"The goal of Hiero is to build a diverse community of developers and innovators making the world fairer, faster, and more secure. Hiero's source is accessible so anyone can advance the project. As a decentralized network used by enterprises and critical infrastructure, it must remain vendor-neutral and fully auditable.",
312-
whatHeading: "What parts of Hiero are Open Source?",
313-
whatText:
314-
"Hiero is fully open source. While its transition to Linux Foundation Decentralized Trust continues, additional contributions are available in [Hedera’s GitHub organization](https://github.com/hashgraph). The technical steering committee (TSC) of Hiero will initially oversee adding projects needed for an enterprise-ready decentralized network to a new Hiero GitHub organization. See the roadmap for more details.",
315-
};
316-
317307
const quotesData = [
318308
{
319309
quote:
@@ -388,8 +378,6 @@ export default function Home() {
388378
<ReposGrid data={reposData} />
389379
<Divider />
390380

391-
<OpenSourceSection data={openSourceData} />
392-
<Divider />
393381
<QuotesCarousel data={quotesData} />
394382
</>
395383
);

src/components/OpenSourceSection/__tests__/OpenSourceSection.test.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@ describe("OpenSourceSection", () => {
77
render(
88
<OpenSourceSection
99
data={{
10-
whyHeading: "Why open source",
11-
whyText: "It keeps governance transparent.",
1210
whatHeading: "What contributors do",
1311
whatText: "Read the [guide](/guide) and start contributing.",
1412
}}
1513
/>,
1614
);
1715

18-
expect(
19-
screen.getByRole("heading", { name: "Why open source" }),
20-
).toBeInTheDocument();
2116
expect(
2217
screen.getByRole("heading", { name: "What contributors do" }),
2318
).toBeInTheDocument();
19+
2420
expect(screen.getByRole("link", { name: "guide" })).toHaveAttribute(
2521
"href",
2622
"/guide",

src/components/OpenSourceSection/index.tsx

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import Image from "next/image";
22
import RichText from "@/components/RichText";
33

44
interface OpenSourceData {
5-
whyHeading: string;
6-
whyText: string;
75
whatHeading: string;
86
whatText: string;
97
}
@@ -15,27 +13,7 @@ interface OpenSourceSectionProps {
1513
export default function OpenSourceSection({ data }: OpenSourceSectionProps) {
1614
return (
1715
<div className="bg-white">
18-
<div className="container pt-[40px] pb-[40px] sm:pt-[92px] sm:pb-[154px] grid grid-cols-1 sm:grid-cols-2 gap-[80px] sm:gap-10 relative">
19-
{/* eslint-disable-next-line @next/next/no-img-element */}
20-
<img
21-
src="/images/Hiero-Logo-Outline.svg"
22-
alt=""
23-
className="sm:absolute w-full h-full sm:top-[50%] sm:left-[50%] sm:-translate-x-[50%] sm:-translate-y-[50%] pointer-events-none"
24-
loading="lazy"
25-
/>
26-
<div id="open-source" className="anchor anchor--open-source relative">
27-
<div className="h-14 w-14 mb-5">
28-
<Image
29-
src="/images/Hiero-Icon-Heart.svg"
30-
alt=""
31-
width={56}
32-
height={56}
33-
loading="lazy"
34-
/>
35-
</div>
36-
<h2 className="text-2xl font-medium mb-5">{data.whyHeading}</h2>
37-
<p className="text-base max-w-[565px]">{data.whyText}</p>
38-
</div>
16+
<div className="container mx-auto pt-[40px] pb-[40px] sm:pt-[92px] sm:pb-[154px] grid grid-cols-1 gap-[40px]">
3917
<div className="relative">
4018
<div className="h-14 w-14 mb-5">
4119
<Image
@@ -46,7 +24,9 @@ export default function OpenSourceSection({ data }: OpenSourceSectionProps) {
4624
loading="lazy"
4725
/>
4826
</div>
27+
4928
<h2 className="text-2xl font-medium mb-5">{data.whatHeading}</h2>
29+
5030
<RichText
5131
inline
5232
markdown={data.whatText}

src/data/repository_stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"hiero-consensus-node": { "stars": 384 },
2+
"hiero-consensus-node": { "stars": 385 },
33
"hiero-local-node": { "stars": 266 },
44
"hiero-mirror-node": { "stars": 180 },
55
"hiero-improvement-proposals": { "stars": 176 },

0 commit comments

Comments
 (0)