Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove trending widget #4226

Merged
merged 1 commit into from
Dec 13, 2023
Merged
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
6 changes: 1 addition & 5 deletions apps/web/src/components/Bookmarks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@ import type { NextPage } from 'next';

import MetaTags from '@components/Common/MetaTags';
import RecommendedProfiles from '@components/Home/Sidebar/RecommendedProfiles';
import Trending from '@components/Home/Trending';
import FeedFocusType from '@components/Shared/FeedFocusType';
import Footer from '@components/Shared/Footer';
import NotLoggedIn from '@components/Shared/NotLoggedIn';
import { APP_NAME } from '@hey/data/constants';
import { FeatureFlag } from '@hey/data/feature-flags';
import { PAGEVIEW } from '@hey/data/tracking';
import { GridItemEight, GridItemFour, GridLayout } from '@hey/ui';
import isFeatureEnabled from '@lib/isFeatureEnabled';
import { Leafwatch } from '@lib/leafwatch';
import { useState } from 'react';
import useProfileStore from 'src/store/persisted/useProfileStore';
Expand Down Expand Up @@ -39,8 +36,7 @@ const Bookmarks: NextPage = () => {
<Feed focus={focus} />
</GridItemEight>
<GridItemFour>
{isFeatureEnabled(FeatureFlag.LensMember) && <Trending />}
{currentProfile ? <RecommendedProfiles /> : null}
<RecommendedProfiles />
<Footer />
</GridItemFour>
</GridLayout>
Expand Down
4 changes: 0 additions & 4 deletions apps/web/src/components/Explore/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@ import type { NextPage } from 'next';

import MetaTags from '@components/Common/MetaTags';
import RecommendedProfiles from '@components/Home/Sidebar/RecommendedProfiles';
import Trending from '@components/Home/Trending';
import FeedFocusType from '@components/Shared/FeedFocusType';
import Footer from '@components/Shared/Footer';
import { Tab } from '@headlessui/react';
import { APP_NAME } from '@hey/data/constants';
import { FeatureFlag } from '@hey/data/feature-flags';
import { EXPLORE, PAGEVIEW } from '@hey/data/tracking';
import { ExplorePublicationsOrderByType } from '@hey/lens';
import { GridItemEight, GridItemFour, GridLayout } from '@hey/ui';
import cn from '@hey/ui/cn';
import isFeatureEnabled from '@lib/isFeatureEnabled';
import { Leafwatch } from '@lib/leafwatch';
import { useRouter } from 'next/router';
import { useState } from 'react';
Expand Down Expand Up @@ -93,7 +90,6 @@ const Explore: NextPage = () => {
</Tab.Group>
</GridItemEight>
<GridItemFour>
{isFeatureEnabled(FeatureFlag.LensMember) ? <Trending /> : null}
{currentProfile ? <RecommendedProfiles /> : null}
<Footer />
</GridItemFour>
Expand Down
82 changes: 0 additions & 82 deletions apps/web/src/components/Home/Trending.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions apps/web/src/components/Shared/Shimmer/TrendingTagShimmer.tsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/data/tracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ export const MISCELLANEOUS = {
OPEN_GITCOIN: 'Open Gitcoin',
OPEN_LENS_WAITLIST: 'Open Lens waitlist',
OPEN_RECOMMENDED_PROFILES: 'Open recommended profiles modal',
OPEN_TRENDING_TAG: 'Open trending tag',
SELECT_LOCALE: 'Select locale'
};

Expand Down
8 changes: 0 additions & 8 deletions packages/lens/documents/queries/PublicationsTags.graphql

This file was deleted.

88 changes: 0 additions & 88 deletions packages/lens/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235630,18 +235630,6 @@ export type PublicationsQuery = {
};
};

export type PublicationsTagsQueryVariables = Exact<{
request: PublicationsTagsRequest;
}>;

export type PublicationsTagsQuery = {
__typename?: 'Query';
publicationsTags: {
__typename?: 'PaginatedPublicationsTagsResult';
items: Array<{ __typename?: 'TagResult'; tag: string; total: number }>;
};
};

export type SearchProfilesQueryVariables = Exact<{
request: ProfileSearchRequest;
}>;
Expand Down Expand Up @@ -293619,82 +293607,6 @@ export type PublicationsQueryResult = Apollo.QueryResult<
PublicationsQuery,
PublicationsQueryVariables
>;
export const PublicationsTagsDocument = gql`
query PublicationsTags($request: PublicationsTagsRequest!) {
publicationsTags(request: $request) {
items {
tag
total
}
}
}
`;

/**
* __usePublicationsTagsQuery__
*
* To run a query within a React component, call `usePublicationsTagsQuery` and pass it any options that fit your needs.
* When your component renders, `usePublicationsTagsQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = usePublicationsTagsQuery({
* variables: {
* request: // value for 'request'
* },
* });
*/
export function usePublicationsTagsQuery(
baseOptions: Apollo.QueryHookOptions<
PublicationsTagsQuery,
PublicationsTagsQueryVariables
>
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useQuery<PublicationsTagsQuery, PublicationsTagsQueryVariables>(
PublicationsTagsDocument,
options
);
}
export function usePublicationsTagsLazyQuery(
baseOptions?: Apollo.LazyQueryHookOptions<
PublicationsTagsQuery,
PublicationsTagsQueryVariables
>
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useLazyQuery<
PublicationsTagsQuery,
PublicationsTagsQueryVariables
>(PublicationsTagsDocument, options);
}
export function usePublicationsTagsSuspenseQuery(
baseOptions?: Apollo.SuspenseQueryHookOptions<
PublicationsTagsQuery,
PublicationsTagsQueryVariables
>
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useSuspenseQuery<
PublicationsTagsQuery,
PublicationsTagsQueryVariables
>(PublicationsTagsDocument, options);
}
export type PublicationsTagsQueryHookResult = ReturnType<
typeof usePublicationsTagsQuery
>;
export type PublicationsTagsLazyQueryHookResult = ReturnType<
typeof usePublicationsTagsLazyQuery
>;
export type PublicationsTagsSuspenseQueryHookResult = ReturnType<
typeof usePublicationsTagsSuspenseQuery
>;
export type PublicationsTagsQueryResult = Apollo.QueryResult<
PublicationsTagsQuery,
PublicationsTagsQueryVariables
>;
export const SearchProfilesDocument = gql`
query SearchProfiles($request: ProfileSearchRequest!) {
searchProfiles(request: $request) {
Expand Down
Loading