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

/casher OrderではなくOrderEntityを使う #159

Merged
merged 11 commits into from
Sep 29, 2024
Merged

/casher OrderではなくOrderEntityを使う #159

merged 11 commits into from
Sep 29, 2024

Conversation

Astalum
Copy link
Member

@Astalum Astalum commented Sep 27, 2024

fix #158
close #115
total の自動計算により、state 管理を order 単位から items 単位に

Copy link
Contributor

github-actions bot commented Sep 27, 2024

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

Copy link
Member

@toririm toririm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一旦ここら辺でマージしておきましょう。
Biomeを通したら approve します

Copy link
Member

@toririm toririm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コメントアウトじゃなくて!消す!

@@ -1,10 +1,10 @@
import { parseWithZod } from "@conform-to/zod";
// import { parseWithZod } from "@conform-to/zod";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

消しちゃおう~

Suggested change
// import { parseWithZod } from "@conform-to/zod";

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";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// import type { ClientActionFunction } from "@remix-run/react";

import { useState } from "react";
import useSWRSubscription from "swr/subscription";
import { z } from "zod";
// import { z } from "zod";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// import { z } from "zod";

@@ -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";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// import { stringToJSONSchema } from "~/lib/custom-zod";

import { OrderEntity, orderSchema } from "~/models/order";
import { itemRepository } from "~/repositories/item";
import type { ItemEntity } from "~/models/item";
// import { OrderEntity, orderSchema } from "~/models/order";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// import { OrderEntity, orderSchema } from "~/models/order";

import type { ItemEntity } from "~/models/item";
// import { OrderEntity, orderSchema } from "~/models/order";
import { OrderEntity } from "~/models/order";
// import { itemRepository } from "~/repositories/item";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// import { itemRepository } from "~/repositories/item";

@toririm
Copy link
Member

toririm commented Sep 29, 2024

Biomeの拡張機能が入ってたら保存時に不要なインポートが自動で消されるはずなので入ってなかったら入れてみてね~

Copy link
Member

@toririm toririm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMeow

@Astalum Astalum merged commit 2032fb9 into main Sep 29, 2024
7 checks passed
@Astalum Astalum deleted the issue/158 branch September 29, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/casher OrderではなくOrderEntityを使う [/casher] リファクタリング
2 participants