2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-27 21:16:48 +00:00

54 Commits

Author SHA1 Message Date
Oliver
52879c0fc2
Bug fixes (#637)
Some checks failed
Android / build (push) Has been cancelled
CI / test (push) Has been cancelled
iOS / build (push) Has been cancelled
* Fix formatting

* Handle case where server does not provide permissions information

* Enhanced URL checks

* Enhanced check

* Fix for error dialog

* Bump version information
2025-04-18 19:12:34 +10:00
Oliver
8733deb46a
Dialog fixes (#597)
* Dialog fixes

- Fix bug which did not properly dismiss dialogs
- Closes https://github.com/inventree/inventree-app/issues/595

* Bump release notes
2025-01-11 16:40:07 +11:00
Oliver
d990508237
Update Requirements (#541)
Some checks failed
Android / build (push) Has been cancelled
CI / test (push) Has been cancelled
iOS / build (push) Has been cancelled
* Update package requiremenst

* github workflow updates

* ios build updates

* Theme adjustments

* Further updates

* Fix typo

* Deprecated imperative apply of Flutter's Gradle plugins

Ref: https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply

* Refactor wedge scanner

* Add context checks

* Adjust behaviour if testing

* Further refactoring

* Moar checks

* Logic fix

* Fix for wedge scanner test

* Fix for barcode processing

* Fix

* Yet another fix
2024-10-01 12:25:11 +10:00
Oliver
c9cad2f89f
Change from fontawesome to tabler icons (#516)
Some checks failed
Android / build (push) Has been cancelled
CI / test (push) Has been cancelled
iOS / build (push) Has been cancelled
* Change from fontawesome to tabler icons

- Consistent with the frontend

* Cleanup conflicts

* Use double quotes

* remove unused import

* Update release notes

* Migrate some google icons to tabler icons

* Icon update

* Properly support display of custom icons

* Fix lookup
2024-08-08 19:44:44 +10:00
Oliver
76b6191a67
Token auth (#434)
* Embed device platform information into token request

* Remove username and password from userProfile

* Display icon to show if profile has associated user token

* Remove username / password from login settings screen

* Refactor login procedure around token auth

* Refactoring

* Add profile login screen

- Username / password values are not stored
- Just to fetch api token

* Login with basic auth

* Pass profile to API when connecting

* Remove _BASE_URL accessor

- Fixes URL caching bug

* Add more context to login screen

* Add helper functions for unit tests

- Change default port to 8000 (makes testing easier with local inventree instance)

* api.dart handles basic auth now

* fix api_test.dart

* Further test improvements

* linting fixes

* Provide feedback when login fails

* More linting

* Record user details on login, and display in "about" widget

* Fix string lookup

* Add extra debug

* Fix auth values

* Fix user profile test
2023-10-23 01:29:16 +11:00
Oliver
71bf3ad049
App orientation (#369)
* Configurable screen orientation

- Follow system (default)
- Fixed in portrait
- Fixed in landscape

* Fix for dialog
2023-06-13 19:53:50 +10:00
Oliver
21ace1ae02
Package updates (#365)
* Update dart version

* Update flutter version in workflow

* Update packages

* Updates to android workflow

* Specify dart verrsion in CI

* Run flutter upgrade

* Helps to check which workflow is actually running I guess

* Disable linting check

* linting fixes

* linting

* Bug fix for paginator
2023-06-12 22:52:07 +10:00
Oliver
943104f20c
Add actions to issue or cancel purchase orders (#313) 2023-04-11 22:52:27 +10:00
Oliver
cb5c292326
Dialog improvements (#308) 2023-04-10 23:28:02 +10:00
Gustaf Järgren
6d4973deb8
Updated dependencies (#255)
* Bump android compile and target version, also flutter dependencies and resolve issues

* Remove deprecated splashscreen and added support for new Android 12 version.

* Updated workflow action versions and flutter sdk

* Resolved linting issues

* Resolved test binding issues
2023-02-11 00:24:06 +11:00
Oliver
15bf109296
Supplier part support (#253)
* Bump version and release noes

* Add barebone list and detail widgets for the SupplierPart model

* Launch into SupplierPartList from CompanyDetail

* Update StockDetail widget

* Fixes for SupplierPart model

* Add images to supplier part list

* Add search functionality to SupplierPart list

* Added details to SupplierPartDetail widget

* Link through to supplier company

* Add some more details

* Adds ability to edit SupplierPart information

* Navigate to supplier part list from part detail page

* Display supplier part information on stock item detail page

* Add barcode scan response for SupplierPart

* Refactor barcode scanning code

* Navigate to supplier part detail from stock item page

* Support custom barcode for SupplierPart via app

* Cleanup comment

* linting

* Fix override

* Enable display of supplier list on home screen

* Code cleanup

* Update release noets
2023-02-04 09:05:36 +11:00
Oliver
d2b74e7684
Stock barcode fix (#232)
* API: Provide more info in error messages

* Fix support for legacy stock item custom barcodes

* Refresh display after assigning barcode

* Update release notes

* Fix for scanning unkown barcode

- Modern API returns slightly different data

* Fix for scanning unkown barcode

- Modern API returns slightly different data

* Update release notes
2022-12-11 23:41:21 +11: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
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