Sakemo / Sakemo/sgvs-api

Quick Add Product in Sales Form

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
0
Forks
3
PR merge metrics
No merged PRs in 30d

Description

What: Within the SaleFormModal, if the user enters a non-existent product in the autocomplete input, an "Add New Product..." button appears in the list of options. Clicking it opens a simplified ProductFormModal (with only name, price, and category). Upon saving, the SaleFormModal is updated with the new product already selected.

How: A small refactoring in the AutocompleteInput and SaleFormModal to handle this special option.

Value: Eliminates significant friction in the workflow. The user no longer needs to leave the sales screen to add a new item.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the SaleFormModal, AutocompleteInput, and ProductFormModal entry points and trace how products are created and selected. Done means a missing product shows an "Add New Product..." option, the simplified form saves name, price, and category, and the new product is selected in the sale form.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, postgresql, spring-boot
Domain
api, backend, backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.