Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/EmptyStateCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function EmptyStateCard({
<h2
style={{
color: "var(--text)",
fontSize: "3rem",
fontSize: "1.75rem",
fontWeight: 700,
lineHeight: 1.15,
marginBottom: "18px",
Expand All @@ -61,7 +61,7 @@ export default function EmptyStateCard({
{/* Description */}
<p
style={{
color: "#D4C58A",
color: "var(--text2)",
fontSize: "1rem",
lineHeight: 1.7,
maxWidth: "470px",
Expand Down
4 changes: 3 additions & 1 deletion src/context/AppContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ export function AppProvider({ children }) {
? (pat
? 'GitHub API rate limit reached. Please wait for your quota to refresh.'
: 'GitHub API rate limit reached. Add a PAT in Settings for 5,000 req/hr.')
: err.message)
: err.message.startsWith('HTTP_')
? 'Something went wrong. Please check your connection and try again.'
: err.message)
return false
} finally {
setLoading(false); setLoadMsg('')
Expand Down
8 changes: 4 additions & 4 deletions src/pages/RepositoriesPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default function RepositoriesPage() {
['pushed_at', 'Repository Activity'],
]

const showNoSearchResults = search.trim() && filtered.length === 0
const showNoSearchResults = filtered.length === 0

return (
<div style={{ padding: '32px 24px', maxWidth: 1100, margin: '0 auto' }} className="fade-up">
Expand Down Expand Up @@ -237,9 +237,9 @@ export default function RepositoriesPage() {
<EmptyStateCard
SvgIcon={<FiDatabase size={36} color="var(--accent)" />}
title="No matching repositories"
description="No repositories match your search. Try a different search term."
buttonText="Clear Search"
onButtonClick={() => setSearch('')}
description="No repositories match your current filters. Try adjusting or clearing them."
buttonText="Clear Filters"
onButtonClick={() => { setSearch(''); setActivityClassification('All'); setLang('All Languages'); setOrgFilter('All Organizations') }}
/>
</div>
)}
Expand Down
Loading