Skip to content

Backend Integration PR#2

Open
AaronCrvl wants to merge 14 commits into
mainfrom
backend-integration
Open

Backend Integration PR#2
AaronCrvl wants to merge 14 commits into
mainfrom
backend-integration

Conversation

@AaronCrvl

Copy link
Copy Markdown
Owner

…ervice patterns and routes

  • Implemented stock selection controls and integration
  • Added backend API calls for stock transactions
  • Added backend API calls for stock products
  • Updated services patterns and routes

…ervice patterns and routes

- Implemented stock selection controls and integration
- Added backend API calls for stock transactions
- Added backend API calls for stock products
- Updated services patterns and routes
@AaronCrvl AaronCrvl requested a review from Copilot July 29, 2025 02:13
@AaronCrvl AaronCrvl self-assigned this Jul 29, 2025
@AaronCrvl AaronCrvl added the enhancement New feature or request label Jul 29, 2025
@vercel

vercel Bot commented Jul 29, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
roof-stock-web Ready Ready Preview Comment Oct 17, 2025 4:29am

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds stock selection integration and backend API calls for stock-related operations. The changes focus on standardizing service patterns and implementing proper backend integration for stock transactions and products.

  • Refactored service function names to follow PascalCase naming convention
  • Standardized error handling by using toast.error() instead of toast()
  • Integrated backend API calls for stock transactions and product operations

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/services/api/user.services.js Added route constant for standardized URL construction
src/services/api/stockTransaction.services.js Renamed functions to PascalCase, updated API endpoints, and improved error handling
src/services/api/stockProduct.services.js Renamed functions to PascalCase and standardized error handling
src/services/api/stockClosure.services.js Updated error handling to use toast.error()
src/services/api/stock.service.js Added new SetSessionStock function and renamed existing function
src/services/api/auth.services.js Added route constant for URL construction
src/pages/StockTransaction.jsx Integrated backend API calls with proper error handling
src/pages/Home.jsx Fixed map function parameter order
src/pages/Dashboard.jsx Integrated backend API calls for product operations
src/components/StockControl.jsx Added session stock management and improved stock selection

Comment thread src/pages/Home.jsx Outdated
Comment thread src/components/StockControl.jsx Outdated
Comment thread src/components/StockControl.jsx Outdated
Comment thread src/services/api/stockTransaction.services.js Outdated
Comment thread src/services/api/stockProduct.services.js Outdated
Comment thread src/pages/Dashboard.jsx Outdated
- fix on Home.jsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- fix in StockControl

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- fix in StockControl.jsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Fix in stockTransaction.services.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…d user management

- Integrated stock closure functionality with backend system.
- Applied standardized code comment patterns for improved clarity.
- Updated service route definitions for better modularity and routing control.
- Developed user account management features, including create, update, and deactivate functionality
@AaronCrvl

Copy link
Copy Markdown
Owner Author

94a95e8

  • Integrated stock closure functionality with backend system.
  • Applied standardized code comment patterns for improved clarity.
  • Updated service route definitions for better modularity and routing control.
  • Developed user account management features, including create, update, and deactivate functionality

@AaronCrvl AaronCrvl changed the title feat: Add stock selection integration and backend API calls; update s… Backend Integration PR Jul 29, 2025
- Refactored the initialization of itensGridView to use availableItensList when available.
- Updated item addition and search logic to fallback to availableItensList if availableProducts is empty, improving robustness and preventing errors when product sources are missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants