mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(board): hide feed footer on flash table
This commit is contained in:
@@ -629,6 +629,8 @@ describe('Board', () => {
|
|||||||
expect(table).toBeTruthy();
|
expect(table).toBeTruthy();
|
||||||
expect(container.querySelector('[data-testid="post"]')).toBeNull();
|
expect(container.querySelector('[data-testid="post"]')).toBeNull();
|
||||||
expect(table?.textContent).toContain('no posts');
|
expect(table?.textContent).toContain('no posts');
|
||||||
|
expect(container.textContent).not.toContain('no_threads');
|
||||||
|
expect(container.querySelector('[data-testid="board-pagination"]')).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('keeps the flash table in loading state until the empty board feed finishes syncing', async () => {
|
it('keeps the flash table in loading state until the empty board feed finishes syncing', async () => {
|
||||||
@@ -660,6 +662,7 @@ describe('Board', () => {
|
|||||||
expect(table).toBeTruthy();
|
expect(table).toBeTruthy();
|
||||||
expect(table?.textContent).not.toContain('no posts');
|
expect(table?.textContent).not.toContain('no posts');
|
||||||
expect(table?.querySelector('[data-testid="loading-ellipsis"]')?.textContent).toBe('downloading_board');
|
expect(table?.querySelector('[data-testid="loading-ellipsis"]')?.textContent).toBe('downloading_board');
|
||||||
|
expect(container.querySelectorAll('[data-testid="loading-ellipsis"]').length).toBe(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('inserts a nonoko pending account comment after pinned posts on the redirected board index', async () => {
|
it('inserts a nonoko pending account comment after pinned posts on the redirected board index', async () => {
|
||||||
|
|||||||
+20
-18
@@ -459,24 +459,26 @@ const Board = ({ feedCacheKey, viewType, boardIdentifier: boardIdentifierProp, t
|
|||||||
() => ({
|
() => ({
|
||||||
Footer: () => (
|
Footer: () => (
|
||||||
<>
|
<>
|
||||||
<BoardFooter
|
{shouldUseFlashTable ? null : (
|
||||||
communityAddresses={communityAddresses}
|
<BoardFooter
|
||||||
hasMore={hasMore}
|
communityAddresses={communityAddresses}
|
||||||
feedState={feedState}
|
hasMore={hasMore}
|
||||||
combinedFeedLength={combinedFeed.length}
|
feedState={feedState}
|
||||||
isSingleCommunityBoard={!isInAllView && !isInSubscriptionsView && !isInModView}
|
combinedFeedLength={combinedFeed.length}
|
||||||
isInSubscriptionsView={isInSubscriptionsView}
|
isSingleCommunityBoard={!isInAllView && !isInSubscriptionsView && !isInModView}
|
||||||
isInModView={isInModView}
|
isInSubscriptionsView={isInSubscriptionsView}
|
||||||
currentTimeFilterName={currentTimeFilterName}
|
isInModView={isInModView}
|
||||||
moreThreadsSuggestion={moreThreadsSuggestion}
|
currentTimeFilterName={currentTimeFilterName}
|
||||||
moreThreadsSuggestionPathname={moreThreadsSuggestionPathname}
|
moreThreadsSuggestion={moreThreadsSuggestion}
|
||||||
moreThreadsSuggestionSearch={routerLocation.search}
|
moreThreadsSuggestionPathname={moreThreadsSuggestionPathname}
|
||||||
onExpandTimeWindow={expandSuggestionTimeWindow}
|
moreThreadsSuggestionSearch={routerLocation.search}
|
||||||
communityState={communityState}
|
onExpandTimeWindow={expandSuggestionTimeWindow}
|
||||||
subscriptionsLength={subscriptions?.length || 0}
|
communityState={communityState}
|
||||||
accountCommunityAddressesLength={accountCommunityAddresses?.length || 0}
|
subscriptionsLength={subscriptions?.length || 0}
|
||||||
showLoadingEllipsis={effectiveInfiniteScroll || combinedFeed.length === 0}
|
accountCommunityAddressesLength={accountCommunityAddresses?.length || 0}
|
||||||
/>
|
showLoadingEllipsis={effectiveInfiniteScroll || combinedFeed.length === 0}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<PageFooterDesktop
|
<PageFooterDesktop
|
||||||
firstRow={
|
firstRow={
|
||||||
<BoardPagination
|
<BoardPagination
|
||||||
|
|||||||
Reference in New Issue
Block a user