feat: flow page#149
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughAdds 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
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()
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)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
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.
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 detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (17)
✨ Finishing touches
🧪 Generate unit tests
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. Comment |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|



Summary by CodeRabbit
New Features
Navigation
Improvements
Localization