-
Notifications
You must be signed in to change notification settings - Fork 0
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
/casher OrderではなくOrderEntityを使う #159
Conversation
Visit the preview URL for this PR (updated for commit b665144): https://cafeore-2024--pr159-issue-158-lx3pwvom.web.app (expires Sun, 06 Oct 2024 08:26:11 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: b62dcde668e26b6280dd8317f3f875013f6f22f5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一旦ここら辺でマージしておきましょう。
Biomeを通したら approve します
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コメントアウトじゃなくて!消す!
app/routes/_header.casher.tsx
Outdated
@@ -1,10 +1,10 @@ | |||
import { parseWithZod } from "@conform-to/zod"; | |||
// import { parseWithZod } from "@conform-to/zod"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
消しちゃおう~
// import { parseWithZod } from "@conform-to/zod"; |
app/routes/_header.casher.tsx
Outdated
import { AlertDialogCancel } from "@radix-ui/react-alert-dialog"; | ||
import { TrashIcon } from "@radix-ui/react-icons"; | ||
import type { ClientActionFunction } from "@remix-run/react"; | ||
// import type { ClientActionFunction } from "@remix-run/react"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// import type { ClientActionFunction } from "@remix-run/react"; |
app/routes/_header.casher.tsx
Outdated
import { useState } from "react"; | ||
import useSWRSubscription from "swr/subscription"; | ||
import { z } from "zod"; | ||
// import { z } from "zod"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// import { z } from "zod"; |
app/routes/_header.casher.tsx
Outdated
@@ -28,11 +28,12 @@ import { | |||
} from "~/components/ui/table"; | |||
import { itemConverter, orderConverter } from "~/firebase/converter"; | |||
import { collectionSub } from "~/firebase/subscription"; | |||
import { stringToJSONSchema } from "~/lib/custom-zod"; | |||
// import { stringToJSONSchema } from "~/lib/custom-zod"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// import { stringToJSONSchema } from "~/lib/custom-zod"; |
app/routes/_header.casher.tsx
Outdated
import { OrderEntity, orderSchema } from "~/models/order"; | ||
import { itemRepository } from "~/repositories/item"; | ||
import type { ItemEntity } from "~/models/item"; | ||
// import { OrderEntity, orderSchema } from "~/models/order"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// import { OrderEntity, orderSchema } from "~/models/order"; |
app/routes/_header.casher.tsx
Outdated
import type { ItemEntity } from "~/models/item"; | ||
// import { OrderEntity, orderSchema } from "~/models/order"; | ||
import { OrderEntity } from "~/models/order"; | ||
// import { itemRepository } from "~/repositories/item"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// import { itemRepository } from "~/repositories/item"; |
Biomeの拡張機能が入ってたら保存時に不要なインポートが自動で消されるはずなので入ってなかったら入れてみてね~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix #158
close #115
total の自動計算により、state 管理を order 単位から items 単位に