Skip to content

Feat/improve empty search#205

Open
dristicg wants to merge 9 commits into
nensii21:mainfrom
dristicg:feat/improve-empty-search
Open

Feat/improve empty search#205
dristicg wants to merge 9 commits into
nensii21:mainfrom
dristicg:feat/improve-empty-search

Conversation

@dristicg

@dristicg dristicg commented Jul 7, 2026

Copy link
Copy Markdown

feat(search): implement responsive EmptySearchState fallback for project search (#142)

Description
This PR fixes the empty directory layout bug on the Project Search view (/projects). When a user types a query or toggles status filters that return zero results, the app now displays a polished, context-aware empty state rather than a blank space. It also provides a quick reset action to instantly clear active search filters and inputs.

Linked Issue
Closes #142

Screenshots
for this i don't have previous image
Screenshot 2026-07-07 134957
Screenshot 2026-07-07 135037

Testing Performed
Zero State Trigger: Verified that renders only when the filtered project list array length reaches exactly zero.

Filter Reset Action: Tested the "Clear Filters" button callback to ensure it resets both the text query input (q) and active drop-down filters simultaneously, bringing the full project grid back immediately.

Responsiveness: Verified mobile layout behavior using Chrome DevTools across responsive breakpoints.

Build Verification: Ran npm run lint and npm run build locally in the frontend workspace folder to guarantee zero TypeScript or bundle check failures.

@nensii21

nensii21 commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Some of the required CI checks is currently failing. Please take a look at the workflow logs, identify the cause, and push a fix. Once all required checks pass, I'll review and proceed with the PR.

dristi2006 added 7 commits July 8, 2026 00:04
- Add working-directory: frontend to frontend-ci.yml (was running npm ci from root)
- Fix cache-dependency-path to frontend/package-lock.json
- Regenerate package-lock.json via npm install for consistency
- Remove all __pycache__ files from git tracking
- Add __pycache__/ and *.pyc to root .gitignore
lottie-react's Lottie component doesn't properly fill aspect-ratio
containers. Replaced aspect-square with explicit h-* classes matching
the w-* breakpoints so the container has a definite height.
lottie-react's Lottie component wasn't rendering. Switched to
lottie-web directly via useEffect + ref for reliable control.
Same fix as _app.tsx — lottie-react Lottie wrapper wasn't rendering.
Switched to lottie-web via useEffect + ref for reliable animation.
lottie-web was only a transitive dep of lottie-react, which could
cause Vite dep pre-bundling issues. Install it directly so Vite
always optimizes and resolves it properly.
- Remove -mt-2 negative margin from heading, replace with mt-6 for
  more space between animation and text
- Add bg-background and [&_svg]:bg-transparent to animation container
  so background matches the page
- Add active:scale-95 + transition-transform to buttons for click
  feedback animation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve Empty Search State

2 participants