Skip to content

Commit 78e8279

Browse files
committed
feat: add filter bar component with multi-select dropdowns
Implement a new filter bar component that allows users to filter data by date range, username, models, and organizations. The filter bar includes a multi-select dropdown for models and organizations, enhancing user experience by providing a more interactive way to manage filters. Additionally, integrate loading state in the app component to improve data fetching feedback.
1 parent 5a5e333 commit 78e8279

5 files changed

Lines changed: 741 additions & 123 deletions

File tree

src/App.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function Dashboard({
131131
}
132132

133133
export default function App() {
134-
const { data, saveData, clearData } = useSessionData();
134+
const { data, saveData, clearData, loading } = useSessionData();
135135

136136
const usernames = useMemo(() => {
137137
if (!data) return [];
@@ -140,6 +140,14 @@ export default function App() {
140140

141141
const { profiles, loading: profilesLoading, resolve } = useGitHubProfiles(usernames);
142142

143+
if (loading) {
144+
return (
145+
<div className="min-h-screen flex items-center justify-center p-4">
146+
<div className="animate-pulse-soft text-muted-foreground text-sm">Loading data…</div>
147+
</div>
148+
);
149+
}
150+
143151
if (!data) {
144152
return (
145153
<div className="min-h-screen flex items-center justify-center p-4">

0 commit comments

Comments
 (0)