Oliver
277193ecb0
Refactor create state ( #184 )
...
* Refactor createstate for api_form
- Refer to attributes of widget
* Refactor barcode state variables
* More udpates
2022-07-19 23:34:26 +10:00
Oliver
13ebaf43e1
List refactor ( #179 )
...
* Catch paginator bug if widget is disposed before request returns
* Refactoring paginated query widget
- Add option to enable / disable search filters
* Major refactor of paginated search widget
- Learned something new.. a state can access widget.<attribute>
- THIS CHANGES EVERTHING
* Preferences: Add code for tri-state values
- Also improve unit testing for preferences code
* Allow boolean form fields to be optionally tristate
* paginator: Allow custom boolean filters
* Remove outdated filtering preferences
* Refactor filter options
- Allow specification of more detailed options
* Add custom filters for "part" list
* filter tweaks
* Remove legacy "SublocationList" widget
* Add filtering option for locationlist
* Updates for stock location widget
* Refactor category display widget
* More widget refactoring
* Update main search widget
* Fix unit tests
* Improve filtering on BOM display page
2022-07-19 23:29:01 +10:00
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
850c2b8c12
Remove support for legacy stock transfer API code
...
- Relies on modern API now
- Checks for error messages against hidden fields in stock items
2022-05-22 15:59:19 +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
c90a849a5a
Add extra context information to sentry error reports
...
- Should help to track down bugs where stacktrace is missing information
- Adds some more error catching, too
2022-05-12 22:46:12 +10:00
Oliver Walters
58a52c9d6d
Custom empty builder for dropdown search
2022-04-02 11:37:58 +11:00
Oliver Walters
ad97fb0f92
Fixes for static analysis
2022-03-29 20:43:27 +11:00
Oliver Walters
52d42c85c8
More refactorign
2022-03-29 20:08:05 +11:00
Oliver Walters
2a6df373c5
Refactor imports
2022-03-29 19:54:19 +11:00
Oliver Walters
02a9bbe3c6
Enhance existing api_forms functionality
...
- Allow form to be created without an actual API endpoint
- Useful for creating client-side forms without any server interaction
2022-03-25 23:36:56 +11:00
Oliver
25701c0c1c
Bug fix for stock item creation form
2022-01-05 14:58:04 +11:00
Oliver
d296d589d9
Update barcode / qrcode icons
2022-01-05 12:08:47 +11:00
Oliver
21271d71c1
Better handling of date inputs within forms
...
- use datetime_picker_formfield
- Allow null / empty dates
2021-10-05 21:19:35 +11:00
Oliver
69c15797e8
Linting fixes
2021-10-03 12:12:16 +11:00
Oliver
4f8794e652
Refactor barcode scann function
...
- Provide a custom callback to be executed when the barcode is scanned
2021-10-03 12:04:01 +11:00
Oliver
f75aa4ca0e
Update form field with scanned barcode
2021-10-03 11:41:16 +11:00
Oliver
6288088a65
Adds "barcode" field handler for API forms
2021-10-03 11:36:41 +11:00
Oliver
9eaf4a09da
Linting fixes
2021-10-03 01:36:46 +10:00
Oliver
6ff99b15c3
Clear errors once fixed
2021-10-03 01:25:45 +10:00
Oliver
e9fa0f5eb4
Remove some debug messages
2021-10-03 01:21:27 +10:00
Oliver
2886f7c930
Display non-field errors as returned from the server
2021-10-03 01:20:37 +10:00
Oliver
b7f9f1c55f
Handle form posting with complex "layered" data
...
- Handle data rendering
- Handle returned errors
2021-10-03 00:40:26 +10:00
Oliver
80b203ce7b
Reimplement instance data
2021-10-02 23:47:33 +10:00
Oliver
ce31d968b3
Refactoring for APIFormField class
...
- Class now stores field definitions as returned from the server
- Complex lookup for multi-level form structures
- Improved / increased error handling
2021-10-02 23:34:37 +10:00
Oliver
529510bc5c
Display HTTP error codes on form errors
2021-10-02 22:33:59 +10:00
Oliver
2f8d02b0be
API_Form: Allow customizable icon
...
- Also fixes for API search
2021-10-02 22:31:28 +10:00
Oliver
961a35d410
bug fix for "owner" rendering
2021-09-29 00:30:09 +10:00
Oliver
cbb668687e
Set default location for part
...
- Used as "default" when creating new StockItem for that part
2021-09-29 00:24:21 +10:00
Oliver
94cca19ccc
Bug fix for API forms
2021-09-29 00:10:07 +10:00
Oliver
a9b96f22a3
Fixes for purchase order editing
2021-09-28 23:53:26 +10:00
Oliver
be36811cb3
More linting again
2021-09-28 21:34:11 +10:00
Oliver
77bac9af36
Yet more linting
2021-09-28 20:35:19 +10:00
Oliver
ad0cc36540
More linting work
2021-09-28 20:24:55 +10:00
Oliver
c1152ee286
Fixes for type casting
2021-09-28 17:53:14 +10:00
Oliver
68d542cb6b
Add API form support for date fields
2021-09-28 01:14:58 +10:00
Oliver
2720280ada
Remove floating action button
2021-08-16 20:40:29 +10:00
Oliver
8bca501fc4
Allow file fields for api forms
2021-08-16 20:22:05 +10:00
Oliver
1896b71533
Improve form spacing
2021-08-16 11:15:59 +10:00
Oliver
4243876111
Create new stock item from part detail view
2021-08-15 18:22:11 +10:00
Oliver
a4c96694bb
Refactorin'
2021-08-15 15:34:40 +10:00
Oliver
3e3ab680f6
Add more fields for stock item creation
2021-08-15 14:53:13 +10:00
Oliver
3fb6b38930
Create new stock item
2021-08-15 14:44:40 +10:00
Oliver
a09d0b6887
rendering support for "part" foreign key
2021-08-15 14:32:46 +10:00
Oliver
81602512a5
Display error message when form submission returns error
2021-08-15 13:44:27 +10:00
Oliver
6d0282519d
API forms return the JSON data to the onSuccess function
2021-08-10 14:33:08 +10:00
Oliver
d6a2a41ab2
Enable multi-line text editing for API forms
...
- User can edit part notes
- User can edit stock item notes
2021-07-28 16:19:42 +10:00
Oliver
08eb6fc4b1
Remove typeahead library
2021-07-26 23:04:43 +10:00
Oliver
978cefd6bf
edit stock item
...
- Render choice fields
2021-07-26 22:26:56 +10:00