Oliver
aa274b2e45
Stock location scan ( #169 )
...
* Add action for scanning a stock location into another location
* Adds barcode scan handler for new functionality
* Handle scanning of stock location
* Cleanup
* Refactor existing barcode scanning functions
- Will require extensive testing and validation
* Add entry to release notes
* Delete dead code
* Improved ordering based on stock quantity
* Bug fix for 'adjustStock' function
* Improve error responses for barcode scanning
* Improve error responses for barcode scanning
* Remove old debug statements
* Add some extra explanatory texts
* Icon change
* Fixes for unit tests
* Adds extra functionality for user profile manager
* Refactor barcode code - do not rely on BuildContext
* Adds initial unit testing for barcode scanning
- Work on mocking barcode data
- Add hooks for testing snackBar and audio files
* Linting fixes
* More barcode unit tests
* Cleanup unit tests for barcode
* Remove unused import
* Handle HTTPException in API
* Improvements for API unit testing
* Unit testing for scanning item into location
* Add unit test for scanning in items from a location context
* Unit test for scanning location into parent location
* Improve feedback for barcode scanning events
2022-07-18 22:10:00 +10:00
Oliver Walters
dbc024491c
Pass URL through to the showServeError method
...
- Can decide, based on the URL, if we want to show an error
2022-06-03 20:23:59 +10:00
Oliver Walters
f13b04d029
Refactor audio file player
...
- Do not play if there is no context available (e.g. unit testing)
2022-05-22 08:23:20 +10:00
Oliver Walters
b18dd92079
Fixes after preferences file refactor
2022-05-21 19:44:47 +10:00
Oliver Walters
2a6df373c5
Refactor imports
2022-03-29 19:54:19 +11:00
Oliver Walters
ea724fcf5f
Allow user to manually remove (delete) a StockItem
2022-03-26 18:33:02 +11:00
Oliver
2788ed5bd7
User configurable home screen actions
2022-01-05 14:00:38 +11:00
Oliver
ad0cc36540
More linting work
2021-09-28 20:24:55 +10:00
Oliver
d290f98445
Refactor showFormDialog function
2021-07-30 11:09:46 +10:00
Oliver
bf7a0e72bf
Cleanup
2021-07-19 11:18:42 +10:00
Oliver
31ed4c6a7b
Handle error code 50x
2021-07-19 10:41:34 +10:00
Oliver
e637e2a9bc
make package name lowercase
2021-07-16 15:07:28 +10:00
Oliver
83e29777c2
More cleanup
2021-07-15 23:28:55 +10:00
Oliver
d2ce3fadf1
Code cleanup
2021-07-15 11:27:19 +10:00
Oliver
40613c9c36
.empty() -> []
...
Turns out .empty() creates an empty list which is fixed length!
2021-07-13 00:13:38 +10:00
Oliver
d3eec6a79e
Many many changes for null-safety support
2021-07-09 23:56:38 +10:00
Oliver
65cabc2fa9
Update package versions and refactor accordingly
2021-06-18 21:28:07 +10:00
Oliver Walters
2a3e83509f
Refactor of translation lookup!
2021-05-19 23:33:28 +10:00
Oliver Walters
f5e1f25dd0
Better handling of HttpClientRequest
2021-04-20 09:41:50 +10:00
Oliver Walters
b8c535560d
API post request now uses HttpClient
2021-04-19 21:56:20 +10:00
Oliver Walters
989e0e81b3
Add settings to control sounds
2021-03-03 21:39:46 +11:00
Oliver Walters
b293806fe3
Adds audio feedback
2021-03-02 22:22:16 +11:00
Oliver Walters
3761f4090f
Update sound assets
2021-03-01 14:51:16 +11:00
Oliver Walters
960b55d4a4
Improve invalid response code messages
2021-02-27 17:48:42 +11:00
Oliver Walters
d03e1db4c3
Fix dialog context poppin' issues for stock actions
2021-02-27 09:55:34 +11:00
Oliver Walters
87e5499d09
Cleanup - delete unused functions
2021-02-17 08:03:51 +11:00
Oliver Walters
00943b7536
API error messages now use snackIcon
...
- Press "details" for further error information
- Is nice
2021-02-17 08:00:41 +11:00
Oliver Walters
911f988fa5
Fixes for login dialogs
2021-02-16 23:03:01 +11:00
Oliver Walters
80247f84c1
migrate showFormDialog to OneContext
2021-02-15 20:54:15 +11:00
Oliver Walters
14161c5d42
Adds dialog before uploading error information
2021-02-15 20:30:39 +11:00
Oliver Walters
c8c056f96d
Add snackbar with icon
...
- stock adjust
- part edit
- location edit
2021-02-10 23:51:38 +11:00
Oliver Walters
33bb6148de
Cleanup for API error handling
...
Ref: https://stackoverflow.com/questions/54617432/looking-up-a-deactivated-widgets-ancestor-is-unsafe
2021-02-09 21:38:50 +11:00
Oliver Walters
b34a91b865
UserProfile
2021-02-08 20:32:49 +11:00
Oliver Walters
b69762ff15
API refactoring:
...
- Error if the server version is *older* than the min required version
- Display dialog boxes for different server errors
2021-02-02 20:37:54 +11:00
Oliver Walters
c15d3a6524
Toot toot, it's the refactor tractor
...
- Introduces the concept of a "BarcodeHandler"
- Re-uses most of the code
- Custom handlers for barcode success / failure
2021-01-21 20:17:05 +11:00
Oliver Walters
47929c888b
Improve error message handlers
2020-05-26 23:43:36 +10:00
Oliver Walters
6102b39e9d
Improve functionality of showErrorDialog function
...
- Provide callback for when the dialog is dismissed
- Optionally set the error title bar
2020-05-26 23:40:20 +10:00
Oliver Walters
8374691d8c
Add some //TODO items
2020-04-18 22:53:02 +10:00
Oliver Walters
af104717ab
More refactoring
...
Helper function to display a scrollable form in a dialog
2020-04-18 22:25:59 +10:00
Oliver Walters
3fead77f6d
Capture context data in the LocationDisplay widget
2020-04-15 10:33:10 +10:00
Oliver Walters
d0f1a4d4ce
error dialog if the barcode cannot be converted to JSON!
2020-04-14 23:11:30 +10:00
Oliver Walters
ca7505796d
Show progress dialog when requesting info from server
2020-04-14 22:11:38 +10:00