Skip to content
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

Allow input of ID for new item #11

Closed
AshenColors opened this issue May 16, 2022 · 3 comments
Closed

Allow input of ID for new item #11

AshenColors opened this issue May 16, 2022 · 3 comments

Comments

@AshenColors
Copy link

AshenColors commented May 16, 2022

once I got couchdb working, I've been having a real good time trying to get myself set up with the basics. Thank you for making the promise of random storage and PWAs finally come true.

Something I noticed with my workflow is that it's easier to pregenerate QR code labels with UUIDs and apply them to items, since my access to a label printer can be intermittent. I can set disabled: false, of course, but this runs the risk of accidentally duplicating an item with an unintentional ID edit. I'd like to allow manual input of IDs for new items only, but I don't think this is currently possible to do with the config (although I could be wrong about this, my webdev skills are nonexistent).

edit: bonus shot of the label design I'm using
PXL_20220516_141142123 MP~2

@FoxUSA
Copy link
Owner

FoxUSA commented May 16, 2022

I do apparently kinda let you do this out of the box. If you open your config you can set the disabled: false as you mention. CouchDB will not let you specify the same id but it doesn't tell you. If you try it in the demo you will see it does nothing on the second save with the same id. It displays an error in the console(Silently otherwise). I may or may not fix this depending on how hard it is.

The other suggestion I have is to just put it in the code field. That is where I put barcodes, serial numbers, and QR codes. It doesn't need to be unique.

@FoxUSA FoxUSA mentioned this issue May 17, 2022
@AshenColors
Copy link
Author

I'm not a web dev or Vue person, but I've been putting it off long enough, so I dived into the docs and gave my own implementation a shot. I'm planning to add special barcode handling to the ID field later to show the short form of the UUID and make the barcode's contents more compact/efficient than the string representation, so the special type serves that purpose as well. It's not tested yet as I'm still getting to terms with the tooling, but I'm working on it.

@AshenColors
Copy link
Author

It would help if I actually linked the branch: https://github.com/AshenColors/StoreDown/tree/mostlyDisabled

@AshenColors AshenColors closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2022
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

No branches or pull requests

2 participants