Skip to content

reverted EmptySearchResult, copied newest develop branch, formatted S… - #951

Merged
Thenlie merged 2 commits into
Thenlie:developfrom
lifeeeDEV:develop-ux-ui
Jun 12, 2024
Merged

reverted EmptySearchResult, copied newest develop branch, formatted S…#951
Thenlie merged 2 commits into
Thenlie:developfrom
lifeeeDEV:develop-ux-ui

Conversation

@lifeeeDEV

Copy link
Copy Markdown
Contributor

Description

Reverted other documents such as EmptySearchResult. Formatted LoadingIndicator into LF. no lint problems checked with npm run lint. Removed src/tests/screens/SearchResultsScreen.test.tsx -> Test for Load More Button

Checklist

  • Screenshots added for any UX changes
  • Demos attached for animations/interactions
  • Pointed at proper branch (develop not main)
  • Assigned PR to yourself
  • Requested review from code owners
  • Relevant labels added (feature, documentation, etc.)
  • Closes #<issue-number> added if this resolves a GitHub issue
  • Branch is up to date with develop, ran git rebase develop if necessary
  • All GitHub Actions are passing
  • npm run todo-ci ran if any todo comments were created

…earchResultsScreen.tsx and added LoadingIndicator
@vercel

vercel Bot commented May 29, 2024

Copy link
Copy Markdown

@lifeeeDEV is attempting to deploy a commit to the Streamability Team on Vercel.

A member of the Team first needs to authorize it.

@lifeeeDEV lifeeeDEV changed the title reverted EmptySearchResult, copied newest develop branch, fomratted S… reverted EmptySearchResult, copied newest develop branch, formatted S… May 29, 2024
Comment thread .env.template

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this deleted?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was by accident, I am sorry.

Comment on lines -84 to -97
it('a clickable "Load More" button is displayed when `moreToFetch` is true', async () => {
vi.mocked(usePaginatedData).mockReturnValue({
data: TRENDING_DATA,
setData: () => {},
loading: false,
moreToFetch: true,
refetch: () => {},
});

render(<RouterProvider router={router} />);

await screen.findByTestId('search-results-screen');
expect(screen.getByText('Load More')).toBeInTheDocument();
expect(screen.getByText('Load More')).not.toHaveAttribute('disabled');

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we could test for the loading spinner, but I think I am fine to break that out into a new issue as it might be difficult.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the tests for the Load More Button since it was replaced with the LoafingIndicator

@Thenlie Thenlie left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The loading indicator itself looks good! Just a couple questions about the deleted file and test.

@vercel

vercel Bot commented Jun 12, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
streamability ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2024 5:24pm

Comment thread .env.example
@@ -1,7 +1,7 @@
# Create .env file and add these environment variables.
# Use `npm run db-spart-env` to auto-generate the supabase keys.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch XD

@Thenlie Thenlie left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks for the contribution and welcome to the Stream Team! 🥳

@Thenlie
Thenlie merged commit ddb3aa0 into Thenlie:develop Jun 12, 2024
@Thenlie Thenlie mentioned this pull request Jun 22, 2024
10 tasks
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.

2 participants