Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cafeore-tkb/cafeore-pos
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: sohosai-2024
Choose a base ref
...
head repository: cafeore-tkb/cafeore-pos
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Feb 1, 2025

  1. Add pnpm-workspace.yaml

    toririm committed Feb 1, 2025
    Copy the full SHA
    dfa7540 View commit details
  2. Copy the full SHA
    6945d75 View commit details
  3. pos: Move pos to services

    toririm committed Feb 1, 2025
    Copy the full SHA
    3eedcfb View commit details
  4. Copy the full SHA
    040e903 View commit details
  5. Add .node-version

    toririm committed Feb 1, 2025
    Copy the full SHA
    87afeb5 View commit details
  6. Delete package.json

    toririm committed Feb 1, 2025
    Copy the full SHA
    7ad7059 View commit details
  7. Add new package.json

    toririm committed Feb 1, 2025
    Copy the full SHA
    ebea10d View commit details
  8. Move DL scripts to common

    toririm committed Feb 1, 2025
    Copy the full SHA
    7203e67 View commit details
  9. Copy the full SHA
    2c36cd6 View commit details
  10. Copy the full SHA
    5e6b4c4 View commit details
  11. Delete bun.lockb

    toririm committed Feb 1, 2025
    Copy the full SHA
    ac2fcd5 View commit details
  12. Add pnpm-lock.yaml

    toririm committed Feb 1, 2025
    Copy the full SHA
    2e2e4af View commit details
  13. Fix tsconfig.json

    toririm committed Feb 1, 2025
    Copy the full SHA
    460a23d View commit details
  14. Copy the full SHA
    74c2a2f View commit details
  15. common: Move models to src

    toririm committed Feb 1, 2025
    Copy the full SHA
    7f9c5b0 View commit details
  16. Copy the full SHA
    7833930 View commit details
  17. common: Move lib to src

    toririm committed Feb 1, 2025
    Copy the full SHA
    411127b View commit details
  18. common: Move scripts to src

    toririm committed Feb 1, 2025
    Copy the full SHA
    e2b7701 View commit details
  19. common: Move data to src

    toririm committed Feb 1, 2025
    Copy the full SHA
    088b834 View commit details
  20. Update biome to 1.9.4

    toririm committed Feb 1, 2025
    Copy the full SHA
    1a4cdeb View commit details
  21. chore: Format

    toririm committed Feb 1, 2025
    Copy the full SHA
    24d4a81 View commit details
  22. Copy the full SHA
    179de53 View commit details
  23. Copy the full SHA
    6007aec View commit details
  24. Copy the full SHA
    183b236 View commit details
  25. Move formatter to root dir

    toririm committed Feb 1, 2025
    Copy the full SHA
    b9a4a7f View commit details
  26. format

    toririm committed Feb 1, 2025
    Copy the full SHA
    c1de4b7 View commit details
  27. Delete all CI

    toririm committed Feb 1, 2025
    Copy the full SHA
    48680da View commit details
  28. Copy the full SHA
    ca5db94 View commit details
  29. Copy the full SHA
    e0626d6 View commit details
  30. chore: Rename a file

    toririm committed Feb 1, 2025
    Copy the full SHA
    6530155 View commit details
  31. Copy the full SHA
    eacd744 View commit details
  32. Copy the full SHA
    22f3ada View commit details
  33. Copy the full SHA
    06cbb86 View commit details
  34. chore: Fix package.json

    toririm committed Feb 1, 2025
    Copy the full SHA
    adf440c View commit details
  35. Copy the full SHA
    defc187 View commit details
  36. Copy the full SHA
    5fdf899 View commit details
  37. Copy the full SHA
    58b314f View commit details
  38. feat: Add git hooks by husky

    toririm committed Feb 1, 2025
    Copy the full SHA
    b5ab441 View commit details
  39. Introduce git hooks (#429)

    toririm authored Feb 1, 2025
    Copy the full SHA
    359c480 View commit details
  40. Create dependabot.yml

    toririm authored Feb 1, 2025
    Copy the full SHA
    d835b0c View commit details
  41. Copy the full SHA
    4ef0d7a View commit details
  42. Add setup-deps.yml

    toririm committed Feb 1, 2025
    Copy the full SHA
    ed21f82 View commit details
  43. Add common-ci.yml

    toririm committed Feb 1, 2025
    Copy the full SHA
    7d5ed9b View commit details
  44. Add pos-ci.yml

    toririm committed Feb 1, 2025
    Copy the full SHA
    78d85a6 View commit details
  45. Add mobile-ci.yml

    toririm committed Feb 1, 2025
    Copy the full SHA
    162949e View commit details
  46. chore: Fix mobile typecheck

    toririm committed Feb 1, 2025
    Copy the full SHA
    90b157e View commit details
  47. Setup ci pnpm (#436)

    toririm authored Feb 1, 2025
    Copy the full SHA
    f0b9647 View commit details
  48. Bump react-dom and @types/react-dom

    Bumps [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) and [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom). These dependencies needed to be updated together.
    
    Updates `react-dom` from 18.3.1 to 19.0.0
    - [Release notes](https://github.com/facebook/react/releases)
    - [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/facebook/react/commits/v19.0.0/packages/react-dom)
    
    Updates `@types/react-dom` from 18.3.5 to 19.0.3
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)
    
    ---
    updated-dependencies:
    - dependency-name: react-dom
      dependency-type: direct:production
      update-type: version-update:semver-major
    - dependency-name: "@types/react-dom"
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Feb 1, 2025
    Copy the full SHA
    739d300 View commit details
  49. Bump @firebase/rules-unit-testing from 3.0.4 to 4.0.1

    Bumps [@firebase/rules-unit-testing](https://github.com/firebase/firebase-js-sdk/tree/HEAD/packages/rules-unit-testing) from 3.0.4 to 4.0.1.
    - [Release notes](https://github.com/firebase/firebase-js-sdk/releases)
    - [Changelog](https://github.com/firebase/firebase-js-sdk/blob/main/packages/rules-unit-testing/CHANGELOG.md)
    - [Commits](https://github.com/firebase/firebase-js-sdk/commits/@firebase/rules-unit-testing@4.0.1/packages/rules-unit-testing)
    
    ---
    updated-dependencies:
    - dependency-name: "@firebase/rules-unit-testing"
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Feb 1, 2025
    Copy the full SHA
    0a40401 View commit details
  50. Copy the full SHA
    2fed6f7 View commit details
Showing with 13,534 additions and 624 deletions.
  1. +17 −0 .github/actions/setup-deps/action.yml
  2. +11 −0 .github/dependabot.yml
  3. +0 −77 .github/workflows/common-check.yml
  4. +35 −0 .github/workflows/common-ci.yml
  5. +0 −78 .github/workflows/mobile-check.yml
  6. +20 −0 .github/workflows/mobile-ci.yml
  7. +0 −56 .github/workflows/mobile-cloudflare-merge.yml
  8. +0 −54 .github/workflows/mobile-cloudflare-preview.yml
  9. +0 −42 .github/workflows/pos-check.yml
  10. +22 −0 .github/workflows/pos-ci.yml
  11. +35 −0 .github/workflows/pos-deploy-merge.yml
  12. +37 −0 .github/workflows/pos-deploy-pull-request.yml
  13. +0 −46 .github/workflows/pos-firebase-hosting-merge.yml
  14. +0 −49 .github/workflows/pos-firebase-hosting-pull-request.yml
  15. +0 −29 .github/workflows/statu-check.yml
  16. +2 −0 .gitignore
  17. +4 −0 .husky/pre-commit
  18. +1 −0 .node-version
  19. +14 −0 README.md
  20. +1 −1 biome.json
  21. BIN bun.lockb
  22. +0 −20 common/package.json
  23. +0 −23 common/tsconfig.json
  24. 0 { → modules}/common/firebase.json
  25. +34 −0 modules/common/package.json
  26. +1 −0 modules/common/src/data/index.ts
  27. 0 {common → modules/common/src}/data/items.ts
  28. 0 {common → modules/common/src}/firebase-utils/converter.ts
  29. 0 {common → modules/common/src}/firebase-utils/firebase.ts
  30. +3 −0 modules/common/src/firebase-utils/index.ts
  31. 0 {common → modules/common/src}/firebase-utils/subscription.ts
  32. +5 −0 modules/common/src/index.ts
  33. 0 {common → modules/common/src}/lib/custom-loader.ts
  34. 0 {common → modules/common/src}/lib/custom-zod.ts
  35. +3 −0 modules/common/src/lib/index.ts
  36. 0 {common → modules/common/src}/lib/typeguard.ts
  37. 0 {common → modules/common/src}/models/global.ts
  38. +3 −0 modules/common/src/models/index.ts
  39. 0 {common → modules/common/src}/models/item.ts
  40. +1 −1 {common → modules/common/src}/models/order.test.ts
  41. 0 {common → modules/common/src}/models/order.ts
  42. 0 {common → modules/common/src}/repositories/global.ts
  43. +4 −0 modules/common/src/repositories/index.ts
  44. +2 −2 {common → modules/common/src}/repositories/item.test.ts
  45. 0 {common → modules/common/src}/repositories/item.ts
  46. +3 −3 {common → modules/common/src}/repositories/order.test.ts
  47. 0 {common → modules/common/src}/repositories/order.ts
  48. 0 {common → modules/common/src}/repositories/type.ts
  49. +24 −0 modules/common/src/scripts/download-master-state.ts
  50. +2 −2 scripts/download-firestore.ts → modules/common/src/scripts/download-orders.ts
  51. +13 −0 modules/common/tsconfig.json
  52. +15 −8 package.json
  53. +13,012 −0 pnpm-lock.yaml
  54. +3 −0 pnpm-workspace.yaml
  55. +0 −11 pos/app/components/functional/useSyncCahiserOrder.ts
  56. 0 { → services}/mobile/.gitignore
  57. 0 { → services}/mobile/README.md
  58. BIN { → services}/mobile/app/assets/bell.mp3
  59. BIN { → services}/mobile/app/assets/cafeore_logo_motion.webm
  60. 0 { → services}/mobile/app/entry.client.tsx
  61. 0 { → services}/mobile/app/entry.server.tsx
  62. 0 { → services}/mobile/app/lib/utils.ts
  63. 0 { → services}/mobile/app/root.tsx
  64. 0 { → services}/mobile/app/routes/_index.tsx
  65. +5 −2 { → services}/mobile/app/routes/welcome._index.tsx
  66. 0 { → services}/mobile/app/tailwind.css
  67. 0 { → services}/mobile/app/vite-env.d.ts
  68. 0 { → services}/mobile/functions/[[path]].ts
  69. 0 { → services}/mobile/load-context.ts
  70. +7 −7 { → services}/mobile/package.json
  71. 0 { → services}/mobile/postcss.config.js
  72. 0 { → services}/mobile/public/_headers
  73. 0 { → services}/mobile/public/_routes.json
  74. BIN { → services}/mobile/public/favicon.ico
  75. BIN { → services}/mobile/public/logo-dark.png
  76. BIN { → services}/mobile/public/logo-light.png
  77. 0 { → services}/mobile/tailwind.config.ts
  78. 0 { → services}/mobile/tsconfig.json
  79. 0 { → services}/mobile/vite.config.ts
  80. 0 { → services}/pos/.gitignore
  81. 0 { → services}/pos/README.md
  82. BIN { → services}/pos/app/assets/bell.mp3
  83. BIN { → services}/pos/app/assets/bell_twice.mp3
  84. 0 { → services}/pos/app/assets/cafeore.svg
  85. BIN { → services}/pos/app/assets/cafeore_logo_motion.webm
  86. 0 { → services}/pos/app/components/atoms/Circle.tsx
  87. +1 −2 { → services}/pos/app/components/atoms/ReadyBell.tsx
  88. +3 −0 { → services}/pos/app/components/functional/useCurrentTime.ts
  89. 0 { → services}/pos/app/components/functional/useFlaggedSubmit.ts
  90. +3 −0 { → services}/pos/app/components/functional/useFocusRef.ts
  91. 0 { → services}/pos/app/components/functional/useInputStatus.ts
  92. +1 −2 { → services}/pos/app/components/functional/useLatestOrderId.ts
  93. 0 { → services}/pos/app/components/functional/useOnlineStatus.tsx
  94. +5 −3 { → services}/pos/app/components/functional/useOrderStat.ts
  95. +1 −3 { → services}/pos/app/components/functional/useOrderState.ts
  96. +3 −0 { → services}/pos/app/components/functional/usePreventNumberKeyUpDown.tsx
  97. +15 −0 services/pos/app/components/functional/useSyncCahiserOrder.ts
  98. +1 −2 { → services}/pos/app/components/functional/useSyncOrders.ts
  99. 0 { → services}/pos/app/components/functional/useUISession.ts
  100. +4 −0 { → services}/pos/app/components/molecules/AttractiveInput.tsx
  101. +4 −0 { → services}/pos/app/components/molecules/AttractiveTextArea.tsx
  102. +1 −2 { → services}/pos/app/components/molecules/InputComment.tsx
  103. 0 { → services}/pos/app/components/molecules/InputHeader.tsx
  104. 0 { → services}/pos/app/components/molecules/PrinterStatus.tsx
  105. +1 −2 { → services}/pos/app/components/molecules/RealtimeElapsedTime.tsx
  106. 0 { → services}/pos/app/components/molecules/ThreeDigitsInput.tsx
  107. +1 −1 { → services}/pos/app/components/organisms/ChargeView.tsx
  108. +3 −0 { → services}/pos/app/components/organisms/ConfirmDrawer.tsx
  109. +5 −2 { → services}/pos/app/components/organisms/DiscountInput.tsx
  110. +5 −2 { → services}/pos/app/components/organisms/ItemAssign.tsx
  111. +1 −3 { → services}/pos/app/components/organisms/ItemButtons.tsx
  112. +1 −2 { → services}/pos/app/components/organisms/OrderAlertDialog.tsx
  113. +22 −4 { → services}/pos/app/components/organisms/OrderItemEdit.tsx
  114. +1 −1 { → services}/pos/app/components/organisms/OrderReceivedInput.tsx
  115. +4 −1 { → services}/pos/app/components/organisms/SubmitSection.tsx
  116. +8 −3 { → services}/pos/app/components/pages/CashierV2.tsx
  117. 0 { → services}/pos/app/components/ui/alert-dialog.tsx
  118. 0 { → services}/pos/app/components/ui/button.tsx
  119. 0 { → services}/pos/app/components/ui/card.tsx
  120. 0 { → services}/pos/app/components/ui/chart.tsx
  121. 0 { → services}/pos/app/components/ui/drawer.tsx
  122. 0 { → services}/pos/app/components/ui/input-otp.tsx
  123. 0 { → services}/pos/app/components/ui/input.tsx
  124. 0 { → services}/pos/app/components/ui/label.tsx
  125. 0 { → services}/pos/app/components/ui/radio-group.tsx
  126. 0 { → services}/pos/app/components/ui/select.tsx
  127. 0 { → services}/pos/app/components/ui/sonner.tsx
  128. 0 { → services}/pos/app/components/ui/switch.tsx
  129. 0 { → services}/pos/app/components/ui/table.tsx
  130. 0 { → services}/pos/app/components/ui/textarea.tsx
  131. 0 { → services}/pos/app/entry.client.tsx
  132. +1 −2 { → services}/pos/app/label/print-util.ts
  133. +4 −0 { → services}/pos/app/label/printer.js
  134. 0 { → services}/pos/app/lib/utils.ts
  135. 0 { → services}/pos/app/lib/webhook.ts
  136. 0 { → services}/pos/app/root.tsx
  137. +1 −3 { → services}/pos/app/routes/_header._index.tsx
  138. +11 −8 { → services}/pos/app/routes/_header.cashier-button.tsx
  139. +8 −5 { → services}/pos/app/routes/_header.cashier.tsx
  140. +7 −5 { → services}/pos/app/routes/_header.dashboard.tsx
  141. +13 −12 { → services}/pos/app/routes/_header.master.tsx
  142. +9 −6 { → services}/pos/app/routes/_header.serve.tsx
  143. +5 −1 { → services}/pos/app/routes/_header.tsx
  144. +13 −3 { → services}/pos/app/routes/cashier-mini.tsx
  145. 0 { → services}/pos/app/routes/items/action.ts
  146. +1 −2 { → services}/pos/app/routes/items/actions/addItem.ts
  147. +1 −1 { → services}/pos/app/routes/items/actions/deleteItem.ts
  148. +9 −4 { → services}/pos/app/routes/items/route.tsx
  149. 0 { → services}/pos/app/routes/orders/action.ts
  150. +1 −2 { → services}/pos/app/routes/orders/actions/createOrder.ts
  151. +1 −1 { → services}/pos/app/routes/orders/actions/deleteOrder.ts
  152. +1 −2 { → services}/pos/app/routes/orders/actions/updateOrder.ts
  153. +5 −3 { → services}/pos/app/routes/orders/route.tsx
  154. 0 { → services}/pos/app/tailwind.css
  155. 0 { → services}/pos/app/vite-env.d.ts
  156. 0 { → services}/pos/components.json
  157. 0 { → services}/pos/firebase.json
  158. +6 −10 { → services}/pos/package.json
  159. 0 { → services}/pos/postcss.config.js
  160. 0 { → services}/pos/public/epos-2.27.0.js
  161. BIN { → services}/pos/public/favicon.ico
  162. 0 { → services}/pos/tailwind.config.js
  163. +2 −2 { → services}/pos/tsconfig.json
  164. 0 { → services}/pos/vite.config.ts
  165. +2 −6 tsconfig.json
17 changes: 17 additions & 0 deletions .github/actions/setup-deps/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Setup dependencies

on:
workflow_call

runs:
using: 'composite'
steps:
- uses: pnpm/action-setup@v4
with:
package_json_file: './package.json'
- uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'pnpm'
- run: pnpm install
shell: bash
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
77 changes: 0 additions & 77 deletions .github/workflows/common-check.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/common-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: common

on:
pull_request:
paths:
- 'modules/common/**'
- '.github/workflows/common-ci.yml'
- 'pnpm-lock.yaml'
merge_group:

defaults:
run:
working-directory: modules/common

jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: './.github/actions/setup-deps'
- run: pnpm run typecheck

unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: './.github/actions/setup-deps'
- run: pnpm run test:unit

db-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: './.github/actions/setup-deps'
- run: pnpm run test:db
78 changes: 0 additions & 78 deletions .github/workflows/mobile-check.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/mobile-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: mobile

on:
pull_request:
paths:
- 'services/mobile/**'
- 'modules/common/**'
- '.github/workflows/mobile-ci.yml'

defaults:
run:
working-directory: services/mobile

jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: './.github/actions/setup-deps'
- run: pnpm run typecheck
56 changes: 0 additions & 56 deletions .github/workflows/mobile-cloudflare-merge.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/mobile-cloudflare-preview.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/pos-check.yml

This file was deleted.

Loading