Skip to content

Commit

Permalink
refactor: remove storybook settings users etc
Browse files Browse the repository at this point in the history
  • Loading branch information
ddaoxuan committed Oct 31, 2024
1 parent 43e96f5 commit 8040e56
Show file tree
Hide file tree
Showing 36 changed files with 117 additions and 5,433 deletions.
93 changes: 0 additions & 93 deletions starters/shopify-algolia/components/modals/login-modal.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions starters/shopify-algolia/components/modals/modals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import React from "react"
import { type Modal, useModalStore } from "stores/modal-store"
import { ReviewModal } from "./review-modal"

const LoginModal = dynamic(() => import("./login-modal").then((m) => m.LoginModal), { loading: Placeholder })
const SignupModal = dynamic(() => import("./signup-modal").then((m) => m.SignupModal), { loading: Placeholder })
const SearchModal = dynamic(() => import("./search-modal").then((m) => m.SearchModal), { loading: Placeholder })

export function Modals() {
Expand All @@ -23,10 +21,6 @@ export function Modals() {

function ModalsFactory({ type }: { type: Modal }) {
switch (type) {
case "login":
return <LoginModal />
case "signup":
return <SignupModal />
case "search":
return <SearchModal />
case "review":
Expand Down
92 changes: 0 additions & 92 deletions starters/shopify-algolia/components/modals/signup-modal.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion starters/shopify-algolia/stores/modal-store.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { create } from "zustand"

export type Modal = "login" | "signup" | "search" | "facets-mobile" | "review"
export type Modal = "search" | "facets-mobile" | "review"

interface ModalStore {
modals: Partial<Record<Modal, boolean>>
Expand Down
2 changes: 1 addition & 1 deletion starters/shopify-meilisearch/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
React: true,
JSX: true,
},
extends: ["next", "prettier", "react-app", "react-app/jest", "plugin:storybook/recommended", "plugin:tailwindcss/recommended"],
extends: ["next", "prettier", "react-app", "react-app/jest", "plugin:tailwindcss/recommended"],
parserOptions: {
babelOptions: {
presets: [require.resolve("next/babel")],
Expand Down
30 changes: 0 additions & 30 deletions starters/shopify-meilisearch/.storybook/main.ts

This file was deleted.

17 changes: 0 additions & 17 deletions starters/shopify-meilisearch/.storybook/preview.ts

This file was deleted.

1 change: 0 additions & 1 deletion starters/shopify-meilisearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ $ yarn create commerce
- Highly Scalable SEO Redirects ([Bloom Filters](https://nextjs.org/docs/app/building-your-application/routing/redirecting#managing-redirects-at-scale-advanced))
- Easy migration - migrate your existing solution in minutes
- Playwright - write end-to-end tests like a pro
- Storybook - create, test, and showcase your components
- T3 Env - manage your environment variables with ease
- Patch-package - fix external dependencies without losing your mind
- Components coupling and cohesion graph - a tool for managing component relationships
Expand Down
13 changes: 0 additions & 13 deletions starters/shopify-meilisearch/app/access-denied/page.tsx

This file was deleted.

34 changes: 0 additions & 34 deletions starters/shopify-meilisearch/app/actions/user.actions.ts

This file was deleted.

5 changes: 0 additions & 5 deletions starters/shopify-meilisearch/app/settings/page.tsx

This file was deleted.

16 changes: 1 addition & 15 deletions starters/shopify-meilisearch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
"lint:fix": "next lint --fix",
"prettier": "prettier --check \"**/*.{js,jsx,ts,tsx}\"",
"prettier:fix": "prettier --write \"**/*.{js,jsx,ts,tsx}\"",
"analyze": "yarn build",
"storybook": "storybook dev -p 6006",
"test-storybook": "test-storybook",
"build-storybook": "storybook build",
"test": "jest --passWithNoTests",
"e2e": "playwright test",
"e2e:headless": "playwright test",
Expand All @@ -22,7 +18,7 @@
"postinstall": "npx patch-package -y",
"generate-bloom-filter": "ts-node redirects/generate-bloom-filter.ts",
"codegen": "graphql-codegen && graphql-codegen -p admin",
"coupling-graph": "npx madge --extensions js,jsx,ts,tsx,css,md,mdx ./ --exclude '.next|tailwind.config.js|reset.d.ts|prettier.config.js|postcss.config.js|playwright.config.ts|next.config.js|next-env.d.ts|instrumentation.ts|e2e/|README.md|.storybook/|.eslintrc.js' --image graph.svg"
"coupling-graph": "npx madge --extensions js,jsx,ts,tsx,css,md,mdx ./ --exclude '.next|tailwind.config.js|reset.d.ts|prettier.config.js|postcss.config.js|playwright.config.ts|next.config.js|next-env.d.ts|instrumentation.ts|e2e/|README.md|eslintrc.js' --image graph.svg"
},
"dependencies": {
"@ai-sdk/openai": "^0.0.16",
Expand All @@ -45,7 +41,6 @@
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toggle-group": "^1.0.4",
"@radix-ui/react-tooltip": "^1.0.7",
"@storybook/test": "^8.0.4",
"@uidotdev/usehooks": "^2.4.1",
"@vercel/analytics": "^1.2.2",
"@vercel/flags": "2.2.1",
Expand Down Expand Up @@ -78,20 +73,12 @@
},
"devDependencies": {
"@playwright/test": "^1.42.1",
"@storybook/addon-essentials": "^8.0.4",
"@storybook/addon-interactions": "^8.0.4",
"@storybook/addon-links": "^8.0.4",
"@storybook/blocks": "^8.0.4",
"@storybook/nextjs": "^8.0.4",
"@storybook/react": "^8.0.4",
"@storybook/test-runner": "^0.17.0",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.2",
"@testing-library/dom": "^10.3.2",
"@testing-library/user-event": "14.5.2",
"storybook": "^8.0.4",
"@vercel/style-guide": "^5.0.0",
"eslint-config-turbo": "^1.10.12",
"eslint": "8.54.0",
Expand All @@ -100,7 +87,6 @@
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-storybook": "^0.6.15",
"eslint-plugin-tailwindcss": "^3.13.0",
"prettier": "3.2.5",
"prettier-plugin-tailwindcss": "^0.5.12",
Expand Down
Loading

0 comments on commit 8040e56

Please sign in to comment.