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.
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.