Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
refactor: make showtime slim again (#2509)
Browse files Browse the repository at this point in the history
* refactor: make showtime great again

* refactor: delete more unused files

* refactor: remove nft details screen

* refactor: dead screen

* refactor: deleted components and screens cleanup

* refactor: dead imports

* feat: kill nft-dropdown

* fix: dead component

* feat: kill nft stuff

* refactor: remove create button

* refactor: remove native routes

* refactor: remove further

* fix: cleanup

* feat: remove all notification types but keep channel related

* replace home with trending

* improve Skeleton

* fixes

---------

Co-authored-by: alantoa <[email protected]>
  • Loading branch information
hirbod and alantoa authored Nov 8, 2023
1 parent 8f9415c commit b0d752a
Show file tree
Hide file tree
Showing 184 changed files with 232 additions and 21,079 deletions.

This file was deleted.

30 changes: 0 additions & 30 deletions apps/next/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ import { useHeaderHeight } from "app/lib/react-navigation/elements";
import { Sentry } from "app/lib/sentry";
import { AppProviders } from "app/providers/app-providers";
import { UnlockedChannelScreen } from "app/screens/channel-unlocked";
import { CheckoutScreen } from "app/screens/checkout";
import { CheckoutPaidNFTScreen } from "app/screens/checkout-paid-nft";
import { CheckoutReturnScreen } from "app/screens/checkout-return";
import { CheckoutReturnForPaidNFTScreen } from "app/screens/checkout-return-for-paid-nft";
import { ClaimLimitExplanationScreen } from "app/screens/claim-limit-explanation";
import { CollectorsScreen } from "app/screens/collectors";
import { CommentsScreen } from "app/screens/comments";
import { CreatorChannelsIntroScreen } from "app/screens/creator-channels-intro";
import { CreatorChannelsMembersScreen } from "app/screens/creator-channels-members";
import { CreatorChannelsMessageReactionsScreen } from "app/screens/creator-channels-message-reactions";
Expand All @@ -45,17 +38,9 @@ import { CreatorTokensExplanationScreen } from "app/screens/creator-tokens-expla
import { CreatorTokensSelfServeExplainerScreen } from "app/screens/creator-tokens-self-serve-explainer";
import { CreatorTokensShareModalScreen } from "app/screens/creator-tokens-share";
import { EnterInviteCodeModalScreen } from "app/screens/creatro-tokens-enter-invite-modal";
import { DetailsScreen } from "app/screens/details";
import { DropScreen } from "app/screens/drop";
import { DropEditDetailsScreen } from "app/screens/drop-edit-details";
import { DropImageShareScreen } from "app/screens/drop-image-share";
import { DropViewShareScreen } from "app/screens/drop-view-share";
import { EditProfileScreen } from "app/screens/edit-profile";
import { FollowersScreen } from "app/screens/followers";
import { FollowingScreen } from "app/screens/following";
import { LoginScreen } from "app/screens/login";
import { OnboardingScreen } from "app/screens/onboarding";
import { PayoutsSetupScreen } from "app/screens/payouts/setup";
import { CreatorTokensImportAllowlistScreen } from "app/screens/profile/import-allowlist";
import { CreatorTokensImportAllowlistSuccessScreen } from "app/screens/profile/imported-allowlist-succeeded";
import { QRCodeShareScreen } from "app/screens/qr-code-share";
Expand Down Expand Up @@ -230,30 +215,15 @@ function App({ Component, pageProps, router }: AppProps) {
</Container>

{/* Modals */}
<CommentsScreen />
<DetailsScreen />
<FollowersScreen />
<FollowingScreen />
<DropScreen />
<CreatorTokensExplanationScreen />
<EnterInviteCodeModalScreen />
<CollectorsScreen />
<ClaimLimitExplanationScreen />
<ReportScreen />
<PayoutsSetupScreen />
<CheckoutScreen />
<CheckoutReturnScreen />
<CheckoutReturnForPaidNFTScreen />
<CheckoutPaidNFTScreen />
<QRCodeShareScreen />
<DropImageShareScreen />
<DropViewShareScreen />
<CreatorChannelsIntroScreen />
<CreatorChannelsMembersScreen />
<CreatorChannelsSettingsScreen />
<CreatorChannelsMessageReactionsScreen />
<CreatorChannelsShareScreen />
<DropEditDetailsScreen />
<EditProfileScreen />
<OnboardingScreen />
<AddEmailScreen />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,7 @@ const association = {
details: [
{
appID: `${TEAM_ID}.${BUNDLE_ID}`,
paths: [
"/wsegue",
"/nft/*",
"/channel/*",
"/notifications",
"/t/*",
"/@*",
"/",
],
paths: ["/wsegue", "/channel/*", "/notifications", "/t/*", "/@*", "/"],
},
],
},
Expand Down
25 changes: 0 additions & 25 deletions apps/next/src/pages/apple-music-auth/apple-music-auth.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions apps/next/src/pages/checkout-return-for-paid-nft/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions apps/next/src/pages/checkout-return/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions apps/next/src/pages/checkout/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions apps/next/src/pages/collectors.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions apps/next/src/pages/drop/index.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions apps/next/src/pages/drop/star.tsx

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions apps/next/src/pages/payouts/setup.tsx

This file was deleted.

59 changes: 0 additions & 59 deletions apps/next/src/pages/profile/[username]/[dropSlug].tsx

This file was deleted.

3 changes: 0 additions & 3 deletions apps/next/src/pages/profile/followers.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions apps/next/src/pages/profile/following.tsx

This file was deleted.

19 changes: 0 additions & 19 deletions apps/next/src/pages/spotify-auth/redirect.tsx

This file was deleted.

Binary file modified packages/app/components/assets/st-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 1 addition & 14 deletions packages/app/components/card/avatar-hover-card.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { linkifyDescription } from "app/lib/linkify";
import { Link, TextLink } from "app/navigation/link";
import { getFullSizeCover, getProfileImage, isMobileWeb } from "app/utilities";

import { FollowButton } from "../follow-button";
import { ProfileFollows } from "../profile/profile-follows";
import { AvatarHoverCardProps } from "./avatar-hover-card";

Expand All @@ -38,9 +37,6 @@ export function AvatarHoverCardContent({ username }: AvatarHoverCardProps) {
const bioWithMentions = useMemo(() => linkifyDescription(bio), [bio]);

const isSelf = userId === profileId;
const { onToggleFollow } = useFollow({
username: profileData?.profile.username,
});

return (
<>
Expand Down Expand Up @@ -88,16 +84,7 @@ export function AvatarHoverCardContent({ username }: AvatarHoverCardProps) {
Unblock
</Button>
) : (
profileData?.profile.profile_id &&
!isSelf && (
<FollowButton
name={profileData?.profile.name}
size="regular"
profileId={profileData?.profile.profile_id}
onToggleFollow={onToggleFollow}
tw="mt-2"
/>
)
profileData?.profile.profile_id && !isSelf && null
)}
</View>
{isLoading ? (
Expand Down
Loading

0 comments on commit b0d752a

Please sign in to comment.