Skip to content

feat: Stock Management - #299

Open
FathimaSayeeda wants to merge 33 commits into
masterfrom
stockSchema
Open

feat: Stock Management#299
FathimaSayeeda wants to merge 33 commits into
masterfrom
stockSchema

Conversation

@FathimaSayeeda

Copy link
Copy Markdown
Collaborator

No description provided.

@vercel

vercel Bot commented Aug 15, 2025

Copy link
Copy Markdown

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

3 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
vestido-dashboard Ignored Ignored Preview Oct 7, 2025 6:08am
vestido-landing Ignored Ignored Preview Oct 7, 2025 6:08am
vestido-storefront Ignored Ignored Oct 7, 2025 6:08am

import { getStockBalances } from './service';
import { GetStockBalanceInputSchemaType } from './zod';

export type getStockBalanceRequest = {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Pls fix the naming


import { ReleaseStockSchemaType } from './zod';

export type releaseStockRequest = {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Pls fix the naming

import { StockSWRKeys } from '../keys';
import { getStockBalance } from './service';

export function useStockBal(args: string | null) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

please fix naming

);
const variants = item?.variants;

console.log('vaaariants', variants);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

remove this

const [open, setOpen] = useState(false);
const { trigger, isMutating } = useReconcileStock();

console.log('variants in bulk dialog', variants);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

remove this

Comment on lines +61 to +63
useEffect(() => {
console.log('Current values:', form.getValues());
}, [form]);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

remove this

}, [form]);

const handleSubmit = async (data: UpdateStockForm) => {
console.log('Submitting data:', data);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

remove this

Comment on lines +256 to +259
onUpdated={(newValues) => {
console.log('Updated stock values:', newValues);
// Optionally refresh product data here
}}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nothing. is being done here?

balances[validatedData.itemVariantId ?? validatedData.itemId]
.stockBalance;

console.log(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

remove this

@fahimalizain fahimalizain left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please check the comments

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.

3 participants