Skip to content

Commit 250fbf0

Browse files
authored
(refactor):03-4505-Refactor stock operations forms for ease of maintenance (#258)
* added horizontal tabs for stock operations * Lauching workspace form on select stock item bt form unimplemented * reafctored stock operation form ui bt has bugs * fiexed stock operation update bug * fixed eslint dependancy array * Contitionaly rendering date firled based on schema as well * feat: add canEdit prop to StockItemForm and StockItemsAddition components for conditional rendering * feat: implement stock operation form utilities and enhance component structure; * feat: add hooks for user search and operation type permissions; enhance base operation detail form by making conditional rendering of fields and ensuring autofeeling * feat: add empty state component and styles; linked stock item workspace to empty state add buton and launching well * feat: refactor stock operation components; add QuantityUomCell and StockOperationItemCell, enhance StockAvailability with error handling and loading states * feat: add BatchNoSelector component and hook for managing stock item batch numbers; * feat: enhance stock operation forms with improved styling and new submission step component * feat: add approval requirement radio buttons and conditional action buttons in stock operation submission form * feat: refactor stock operation dialog handling and improve type management in stock operations;seperate concerns on hook * feat: add delete functionality for stock operation items and enhance utility functions for object manipulation * feat: add quantity UoM selector component and integrate it into stock item form; clean up batch no selector * feat: clean up imports and improve component structure in stock operation forms * feat: enhance stock operation forms with new related link component and improve styling; refactor stock operation issue button * feat: enhance loading indicators in selectors and add unit tests for user and batch number selectors * feat: improve user selector component with loading and error states; enhance unit tests for better coverage * test: refactor and enhance unit tests for stock operation reason and user selectors; improve mock implementations * feat: add readOnly property to input components and enhance stock operation form utility functions * feat: add stock operation status components and styles; enhance stock operation form with additional tab functionality * refactor: improve stock operation form functionality and cleanup unused code * refactor: update stock operation forms and styles, remove unused components * refactor: reorganize imports and enhance loading state accessibility in stock operation forms;Fix undefined bug in operation form submision * update labelText to titleText in StockOperationReasonSelector component * refactor: remove unused stock operation components and styles * refactor: remove disabled state from stock operation form used for testing * refactor: remove unused qty-uom and batch-no selectors along with their styles and tests * refactor: remove unused component StockOperationReasonSelector replacing it with refactored version * refactor: remove unused stock item selector components and tests; added step 1 and 2 tests * refactor: update step 2 tests to use new stock item hooks and remove deprecated code; add step 3 test file * refactor: remove unused EmptyState component and its styles; add mock for operation types * refactor: remove unused addOrEditStockOperation function and related imports * fix broken batch-no-selector tests * fix: correct spelling of initialValue in BatchNoSelector and related components feat: add StockOperationItemBatchNoCell and StockoperationItemExpiryCell components refactor: integrate new components into StockOperationItemsFormStep * stock issue operation usecase handled to capture related requisition, * refactor: update stock operation components to use unified data fetching and improve error handling
1 parent 03d8993 commit 250fbf0

File tree

98 files changed

+4937
-3696
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+4937
-3696
lines changed

Diff for: __mocks__/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './operation-type.mock';

0 commit comments

Comments
 (0)