Skip to content

Commit 5edbe8a

Browse files
authored
Merge pull request #2 from sourcifyeth/staging
Release
2 parents d39826e + fc137fe commit 5edbe8a

File tree

4 files changed

+76
-59
lines changed

4 files changed

+76
-59
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
env:
4747
NEXT_PUBLIC_OPENCHAIN_API_URL: ${{ vars.NEXT_PUBLIC_OPENCHAIN_API_URL }}
4848
NEXT_PUBLIC_UMAMI_WEBSITE_ID: ${{ vars.NEXT_PUBLIC_UMAMI_WEBSITE_ID }}
49+
NEXT_PUBLIC_ENVIRONMENT: ${{ env.NEXT_PUBLIC_ENVIRONMENT }}
4950

5051
- name: "setup-gcloud"
5152
uses: "google-github-actions/setup-gcloud@v2"

src/app/import/page.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"use client";
22

33
import { useState } from "react";
4-
import { FaUpload } from "react-icons/fa";
4+
import { FaUpload, FaArrowLeft } from "react-icons/fa";
55
import { ethers } from "ethers";
6+
import Link from "next/link";
67

78
// Example data
89
const examples = {
@@ -320,6 +321,16 @@ export default function ImportPage() {
320321
<div className="min-h-screen">
321322
{/* Main Content */}
322323
<main className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
324+
{/* Back Button */}
325+
<div className="mb-6">
326+
<Link
327+
href="/"
328+
className="inline-flex items-center gap-2 text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium"
329+
>
330+
<FaArrowLeft className="w-4 h-4" />
331+
Back to Search
332+
</Link>
333+
</div>
323334
{/* Alert Messages */}
324335
{alertMessage && (
325336
<div className="mb-6 bg-green-50 border border-green-200 rounded-lg p-4">

src/app/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ function SearchInterface() {
306306
/>
307307
</div>
308308
<div className="space-y-1">
309-
{stats.function !== undefined && <div>{stats.function.toLocaleString()} functions</div>}
310-
{stats.event !== undefined && <div>{stats.event.toLocaleString()} events</div>}
311-
{stats.error !== undefined && <div>{stats.error.toLocaleString()} errors</div>}
309+
{stats.function !== undefined && <div>{stats.function.toLocaleString()} function signatures</div>}
310+
{stats.event !== undefined && <div>{stats.event.toLocaleString()} event signatures</div>}
311+
{stats.error !== undefined && <div>{stats.error.toLocaleString()} error signatures</div>}
312312
</div>
313313
</div>
314314
<div className="bg-white border border-gray-200 rounded-lg p-4 text-center hover:border-cerulean-blue-400 hover:shadow-md transition-all duration-200">
@@ -489,7 +489,7 @@ function SearchInterface() {
489489
<FaBan
490490
className="w-4 h-4 text-gray-400 cursor-help flex-shrink-0"
491491
data-tooltip-id="spam-badge-tooltip"
492-
data-tooltip-content="This signature has been flagged as potential spam"
492+
data-tooltip-content="This signature is a hash collision and flagged as potential spam"
493493
/>
494494
)}
495495
<span

src/components/Header.tsx

Lines changed: 59 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -72,68 +72,73 @@ export default function Header() {
7272
<div className="bg-cerulean-blue-600 text-white py-3 px-4 text-center">
7373
<div className="max-w-[100rem] mx-auto">
7474
<p className="text-sm md:text-base">
75-
📢 <strong>Migration Notice:</strong> Sourcify is overtaking openchain.xyz and its APIs.
76-
Please switch to <strong>api.4byte.sourcify.dev</strong> domain (same API endpoints).
75+
📢 <strong>Migration Notice:</strong> Sourcify is taking over{" "}
76+
<a
77+
href="https://openchain.xyz"
78+
target="_blank"
79+
rel="noopener noreferrer"
80+
className="text-white hover:text-cerulean-blue-200 underline"
81+
>
82+
openchain.xyz
83+
</a>{" "}
84+
API . Please switch to <strong>api.4byte.sourcify.dev</strong> (same API).
7785
</p>
7886
</div>
7987
</div>
8088

8189
<header className="shadow-sm relative">
8290
<div className="mx-auto py-4 flex items-center justify-between w-full max-w-[100rem] px-6 md:px-12 lg:px-12 xl:px-24">
83-
<Link href="/" className="flex items-center">
84-
<Image src="/sourcify.png" alt="Sourcify Logo" className="h-10 w-auto mr-3" width={32} height={32} />
85-
<span className="text-gray-700 font-vt323 text-2xl">sourcify.eth</span>
86-
</Link>
87-
88-
{/* Desktop Menu */}
89-
<div className="hidden md:flex items-center gap-8">
90-
<Link
91-
href="/import"
92-
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium"
93-
>
94-
Import/Submit Signatures
95-
</Link>
96-
<Link
97-
href="https://sourcify.dev"
98-
target="_blank"
99-
rel="noopener noreferrer"
100-
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium flex items-center gap-1"
101-
>
102-
sourcify.dev
103-
<FiExternalLink className="w-3 h-3" />
104-
</Link>
105-
<Link
106-
href="https://docs.sourcify.dev/docs/api/"
107-
target="_blank"
108-
rel="noopener noreferrer"
109-
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium flex items-center gap-1"
110-
>
111-
API
112-
<FiExternalLink className="w-3 h-3" />
91+
<Link href="https://sourcify.dev" target="_blank" rel="noopener" className="flex items-center">
92+
<Image src="/sourcify.png" alt="Sourcify Logo" className="h-10 w-auto mr-3" width={32} height={32} />
93+
<span className="text-gray-700 font-vt323 text-2xl">sourcify.eth</span>
11394
</Link>
114-
<Link
115-
href="https://docs.sourcify.dev/docs/repository/signature-database"
116-
target="_blank"
117-
rel="noopener noreferrer"
118-
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium flex items-center gap-1"
119-
>
120-
Docs
121-
<FiExternalLink className="w-3 h-3" />
122-
</Link>
123-
<Link
124-
href="https://github.com/sourcifyeth/4byte.sourcify.dev"
125-
target="_blank"
126-
rel="noopener noreferrer"
127-
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors"
128-
>
129-
<FaGithub className="w-6 h-6" />
130-
</Link>
131-
</div>
13295

133-
{/* Mobile Menu */}
134-
<MobileMenu />
135-
</div>
136-
</header>
96+
{/* Desktop Menu */}
97+
<div className="hidden md:flex items-center gap-8">
98+
<Link href="/import" className="text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium">
99+
Import/Submit Signatures
100+
</Link>
101+
<Link
102+
href="https://sourcify.dev"
103+
target="_blank"
104+
rel="noopener noreferrer"
105+
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium flex items-center gap-1"
106+
>
107+
sourcify.dev
108+
<FiExternalLink className="w-3 h-3" />
109+
</Link>
110+
<Link
111+
href="https://docs.sourcify.dev/docs/api/"
112+
target="_blank"
113+
rel="noopener noreferrer"
114+
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium flex items-center gap-1"
115+
>
116+
API
117+
<FiExternalLink className="w-3 h-3" />
118+
</Link>
119+
<Link
120+
href="https://docs.sourcify.dev/docs/repository/signature-database"
121+
target="_blank"
122+
rel="noopener noreferrer"
123+
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium flex items-center gap-1"
124+
>
125+
Docs
126+
<FiExternalLink className="w-3 h-3" />
127+
</Link>
128+
<Link
129+
href="https://github.com/sourcifyeth/4byte.sourcify.dev"
130+
target="_blank"
131+
rel="noopener noreferrer"
132+
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors"
133+
>
134+
<FaGithub className="w-6 h-6" />
135+
</Link>
136+
</div>
137+
138+
{/* Mobile Menu */}
139+
<MobileMenu />
140+
</div>
141+
</header>
137142
</>
138143
);
139144
}

0 commit comments

Comments
 (0)