Skip to content

feat: flow page#149

Merged
hmbanan666 merged 1 commit into
mainfrom
flow
Sep 12, 2025
Merged

feat: flow page#149
hmbanan666 merged 1 commit into
mainfrom
flow

Conversation

@hmbanan666
Copy link
Copy Markdown
Collaborator

@hmbanan666 hmbanan666 commented Sep 12, 2025

Summary by CodeRabbit

  • New Features

    • Introduced a “Flow” dashboard on the home screen with widgets: Kitchens Online, Orders Today, Average Check, and Average Feedback.
    • Added a dedicated Tasks page with avatar, greeting, today-only toggle, task lists, and creation/upload modals.
  • Navigation

    • Renamed: Home → Flow, Quests → Epics; replaced Secret with Tasks. Icons updated; legacy “secret” page removed.
  • Improvements

    • Kitchen status and order metrics now update periodically for fresher data.
  • Localization

    • Russian navigation labels updated: Поток, Эпики, Мои задачи.

@hmbanan666 hmbanan666 self-assigned this Sep 12, 2025
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Sep 12, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Adds a kitchen domain: new Pinia store, server APIs, shared type, DB timezone column/type. Updates app startup/interval to include kitchen.update(). Introduces flow dashboard components and replaces home page content; adds a tasks page; removes secret page. Updates navigation labels/routes and Russian i18n. Adds a dependency.

Changes

Cohort / File(s) Summary
App initialization updates
apps/atrium-telegram/app/app.vue
Adds kitchen store integration; calls kitchen.update() in onMounted and periodic setInterval alongside other store updates.
Navigation and i18n updates
apps/atrium-telegram/app/components/Navigation.vue, apps/atrium-telegram/i18n/locales/ru-RU.json
Renames/retargets main routes (home→flow, quests→epic, secret→tasks); switches titles to i18n keys; adds ru labels flow/epics/my-tasks.
Flow dashboard widgets
apps/atrium-telegram/app/components/flow/KitchensOnline.vue, .../flow/OrdersOnline.vue, .../flow/OrderAmountAverage.vue, .../flow/FeedbackAverage.vue
Adds four SFC widgets: kitchens online (computed via store), orders today (from todayData), average order amount (static), average feedback (static).
Pages rework
apps/atrium-telegram/app/pages/index.vue, apps/atrium-telegram/app/pages/tasks/index.vue, apps/atrium-telegram/app/pages/secret1.vue
Replaces index with flow dashboard; adds tasks page with avatar, lists, today-only toggle, modals; removes secret1 page.
Kitchen store and shared types
apps/atrium-telegram/app/stores/kitchen.ts, apps/atrium-telegram/shared/types/index.ts
Adds Pinia store exposing kitchens, todayData, update(); defines KitchenWithData type (opening times, isOpenedNow, feedbackPoints, agreement).
Server API for kitchens
apps/atrium-telegram/server/api/kitchen/list.get.ts, .../server/api/kitchen/data.get.ts
Adds endpoints: list.get computes isOpenedNow per timezone; data.get returns derived hoursWorkedForNow and ordersForNow.
Database schema/types
packages/database/src/tables.ts, packages/database/src/types.ts
Adds kitchens.timezone column with default '+00:00'; introduces TimeZone union type (+00:00…+12:00).
Dependency update
apps/atrium-telegram/package.json
Adds dependency "@date-fns/tz": "catalog:".

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor User
  participant App as App (app.vue)
  participant KitchenStore as Pinia: kitchen store
  participant API_List as GET /api/kitchen/list
  participant API_Data as GET /api/kitchen/data

  User->>App: Open app
  App->>KitchenStore: update()
  KitchenStore->>API_List: fetch kitchens (auth)
  API_List-->>KitchenStore: kitchens with isOpenedNow
  KitchenStore->>API_Data: fetch today data (auth)
  API_Data-->>KitchenStore: {hoursWorkedForNow, ordersForNow}
  Note over App,KitchenStore: setInterval(...) periodically repeats update()
Loading
sequenceDiagram
  participant Page as Flow Page (index.vue)
  participant KitchensOnline as KitchensOnline.vue
  participant OrdersOnline as OrdersOnline.vue
  participant KitchenStore as kitchen store

  Page->>KitchensOnline: render
  KitchensOnline->>KitchenStore: read kitchens[]
  KitchensOnline-->>KitchensOnline: compute count isOpenedNow
  Page->>OrdersOnline: render
  OrdersOnline->>KitchenStore: read todayData?.ordersForNow
  OrdersOnline-->>OrdersOnline: display count (pluralized)
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

Poem

A rabbit taps the deploy drum,
New kitchens wake, their hours hum.
Orders tick, a flowing stream,
Tasks hop forth like parsley green.
Timezones line the burrow’s wall—
“Поток,” I squeak, “let’s ship it all!” 🐇⏱️🍣

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 62c6c83 and f672188.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (17)
  • apps/atrium-telegram/app/app.vue (3 hunks)
  • apps/atrium-telegram/app/components/Navigation.vue (1 hunks)
  • apps/atrium-telegram/app/components/flow/FeedbackAverage.vue (1 hunks)
  • apps/atrium-telegram/app/components/flow/KitchensOnline.vue (1 hunks)
  • apps/atrium-telegram/app/components/flow/OrderAmountAverage.vue (1 hunks)
  • apps/atrium-telegram/app/components/flow/OrdersOnline.vue (1 hunks)
  • apps/atrium-telegram/app/pages/index.vue (1 hunks)
  • apps/atrium-telegram/app/pages/secret1.vue (0 hunks)
  • apps/atrium-telegram/app/pages/tasks/index.vue (1 hunks)
  • apps/atrium-telegram/app/stores/kitchen.ts (1 hunks)
  • apps/atrium-telegram/i18n/locales/ru-RU.json (1 hunks)
  • apps/atrium-telegram/package.json (1 hunks)
  • apps/atrium-telegram/server/api/kitchen/data.get.ts (1 hunks)
  • apps/atrium-telegram/server/api/kitchen/list.get.ts (1 hunks)
  • apps/atrium-telegram/shared/types/index.ts (1 hunks)
  • packages/database/src/tables.ts (2 hunks)
  • packages/database/src/types.ts (1 hunks)
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch flow

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Sep 12, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​date-fns/​tz@​1.4.110010010091100

View full report

@hmbanan666 hmbanan666 closed this Sep 12, 2025
@hmbanan666 hmbanan666 reopened this Sep 12, 2025
@hmbanan666 hmbanan666 merged commit 050ab16 into main Sep 12, 2025
8 of 9 checks passed
@hmbanan666 hmbanan666 deleted the flow branch September 12, 2025 11:44
@sonarqubecloud
Copy link
Copy Markdown

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.

1 participant