New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standalone POS #1722
Standalone POS #1722
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screen.Recording.2023-10-12.at.6.59.19.PM.mov
Not able to change the unit to 'sats'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the Category gets deleted, the product belonging to that Category should also be deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screen.Recording.2023-10-12.at.10.08.11.PM.mov
We should have a counter here on this view to know how many products we have selected so far and maybe a way to remove it, too.
@kaloudis, what do you think about this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screen.Recording.2023-10-12.at.10.13.21.PM.mov
So we add our product to checkout and pay, then delete it from the settings, come to the homepage, and still can see our checked-out price belonging to our deleted product.
+1 on having a counter |
Deleting a product should probably trigger a cart clear |
I have added an item counter in the "Charge" button. Other thing I could think to do is add - (n) + in each of the product components. Might not be super user friendly though IMO. |
All of these items and a couple more things I found should be sorted out now. |
Yup, I understood. @kaloudis, should we do that, or the overall counter would be fine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also remove open orders of deleted products?🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screen.Recording.2023-10-13.at.1.21.27.PM.mov
We cannot save a product to the first category in the list; it goes into the uncategorized products. It only happens in the android.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the ProductDetails and ProductCategoryDetails views, In the delete button, we should have our props containerStyle
and titleStyle
set to themeColor('delete')
to maintain consistency with other views.
Would it be better to subtract that deleted product's price instead of clearing the whole cart? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screen.Recording.2023-10-13.at.1.55.07.PM.mov
Products belonging to the deleted category still exist. Only the last saved product gets deleted.
I think it would be a pretty rare condition that the user is editing/deleting products at the same time as actually making sales so I feel like just clearing the whole cart should be sufficient. What do you think? |
I feel like maybe this would lead to confusion and it should probably be left to the user to either hide/cancel the order or create a new one. |
Ready for another round! |
This should suffice |
can go either way here. I don't think this is a deal breaker either way. maybe something that gets iterated on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screen.Recording.2023-10-23.at.4.25.41.PM.mov
The screen returns to the top when I select any product, which might affect the user's experience as they would have to scroll down again and again if we have so many products listed.
views/POS/ProductDetails.tsx
Outdated
} | ||
]; | ||
categoryOptions = categoryOptions.concat(...mappedCategories); | ||
console.log('options', categoryOptions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this console, or was it just for debugging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was just for debugging. Have removed now
Having the Charge button up in the Tab Navigator was triggering re-render on every touch. I have restructured it so that doesn't happen any more. Unfortunately means that I can't use the Tab Navigator space now so we've lost a bit of screen real estate |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screen.Recording.2023-10-27.at.7.24.49.PM.mov
The amount is stuck on the price of first product I selected.
Not sure how I missed that one. Nice catch. Fixed now! |
Looking good now! I've also double checked the structure to ensure that fiat prices are recorded properly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine now. |
Code looks good. A few things missing though:
LMK what you think @Talej. Open to shipping it in beta1 as is and breaking up follow up work in other PRs. |
nit: let's also put the Standalone option above Square in the selection menu |
I've made the suggested changes myself to the PR:
I also noticed a bug with how itemized products were displayed on the |
This all checks out and looks okay to me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
Description
Implements standalone POS functionality.
** Note: ** I haven't yet tested this on an Android device. Currently without a working device
This pull request is categorized as a:
Checklist
yarn run tsc
and made sure my code compiles correctlyyarn run lint
and made sure my code didn’t contain any problematic patternsyarn run prettier
and made sure my code is formatted correctlyyarn run test
and made sure all of the tests passTesting
If you modified or added a utility file, did you add new unit tests?
I have tested this PR on the following platforms (please specify OS version and phone model/VM):
I have tested this PR with the following types of nodes (please specify node version and API version where appropriate):
Locales
Third Party Dependencies and Packages
yarn
after this PR is merged inpackage.json
andyarn.lock
have been properly updatedOther: