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

44 Commits

Author SHA1 Message Date
Oliver
5ec86c4ade
Tweak required roles (#630)
- Ref: https://github.com/inventree/InvenTree/pull/9506
2025-04-15 15:45:03 +10:00
Oliver
1a3f48f48c
Company create (#610)
Some checks failed
Android / build (push) Has been cancelled
CI / test (push) Has been cancelled
iOS / build (push) Has been cancelled
* API: refactor checkPermission

- Rename to checkRole (actually what it is doing)
- Permission check will be incoming

* Add checkPermission function for API

* Create a new company

* Bump release notes

* Cleanup

* Fix
2025-02-08 10:36:26 +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
e837394495
Modern attachments (#505)
* Minimum API version is now 100

* Remove old API features

- Anything below API v100 no longer supported

* Reefactor attachment widget to support modern attachment API

* Filter and display attachments correctly

* Refactor
2024-06-11 23:16:01 +10:00
Oliver
4499f3e00e
Barcode workflow (#485)
* Refactor stock barcode operations into new file

* Add setting to control confirmation of stock transfer actions

* Update details when scannign stock item

* Confirm movement when moving items into location

* Cleanup
2024-04-18 22:53:21 +10:00
Oliver
c641cea369
Scanner wedge mode (#437)
* Add code_scan_listener package

* Implement wedge controller widget

* Update barcode settings widget

- Allow user to choose which barcode scanner to use

* Fix typo

* Select barcode scanner widget based on user preference

* Fix rendering issues for wedge controller

* Update release notes

* Add unit test for wedge scanner widget

- Required some tweaks to other code

* Use better library

- https://github.com/fuadreza/flutter_barcode_listener
- Fork of https://github.com/shaxxx/flutter_barcode_listener
- Properly handles key "case" issues (shift, essentially)
- Verified that it works correctly for multiple character types

* Local copy of code, rather than relying on package which is not available on pub.dev

* Fix unit test
2023-10-25 22:40:49 +11: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
2babf27db5
Sentry fix (#395)
* Extra sentry diagnostics

* Fix unit test

* Unit test updates

* More unit test updates
2023-07-07 21:38:04 +10:00
Oliver
e9eb84eace
Stock display (#379)
* Display stock quantity more prominently

* Cleanup search widget

* Update for stock_detail widget

* More tweaks

* Change bottom bar icon

* Display boolean parameters appropriately

* Adds ability to edit part parameters

* Bump icon size a bit

* Improvements to filter options

- Allow filtering by "option" type
- To start with, filter stock by status code

* Remove debug message

* Remove getTriState method

- No longer needed
- Remove associated unit tests

* Adjust filters based on server API version

* Muted colors
2023-06-24 11:34:42 +10:00
Oliver
ca678c1c6f
Update version (#372)
* Update version

- Bump version to 0.12.2

* Tweak unit test
2023-06-13 21:28:38 +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
b051aeccda
Barcode refactor (#363)
* Move barcode.dart

* Fix

* Refactoring barcode scanner code:

- Abstract the "controller" class (for future development)
- Break barcode scanning code out into multiple files
- Add CameraBarcodeController class (qr_code_scanner)

* Add await

* Make barcode scan delay configurable

* remove unused import

* Handle camera exceptions

* Improve sequencing for camera scanner

- Show loading overlay
- Prevent reload if view is no longer mounted

* Update docstring

* Update release notes
2023-06-11 09:41:26 +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
730521fd00
New barcode actions (#218)
* Bump release notes

* Adds method for linking custom barcodes

* Custom getter method for determining if an item has barcode data

* Add method to check if the API supports "modern" barcodes

* Refactor custom barcode implementation for StockItem

- Needs testing

* Unit testing for linking and unlinking barcodes

* Fixes

* Refactor code for "custom barcode action" tile

* Add custom barcode action to StockLocation

* Add extra debug to debug the debugging

* Unit test fix

* Change scope I guess?

* remove handler test
2022-12-05 23:39:40 +11:00
Oliver
19ad3153e4
Remove and fix some TODO entries (#188) 2022-07-20 14:18:07 +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
b40a0f8dad Adds basic unit tests for part category 2022-06-03 21:23:22 +10:00
Oliver Walters
8ee10a3424 Adds more unit tests for the part model 2022-06-03 21:14:39 +10:00
Oliver Walters
7d1735b1b7 Fix import quotes 2022-06-03 20:57:08 +10:00
Oliver Walters
1769693687 Initial tests for grabbing model data from server 2022-06-03 20:55:17 +10:00
Oliver Walters
21e7a976ee Improve checks for API user permissions 2022-06-03 20:42:25 +10:00
Oliver Walters
1b901b39df Remove old stuffs 2022-05-22 16:19:10 +10:00
Oliver Walters
2cd73a98e8 Remove unused import 2022-05-22 10:03:56 +10:00
Oliver Walters
b98f044204 More checks 2022-05-22 09:56:22 +10:00
Oliver Walters
53b69d9623 Improvements for profile management 2022-05-22 09:29:04 +10:00
Oliver Walters
2e86a02343 more debug 2022-05-22 09:00:09 +10:00
Oliver Walters
8e1804b39d Debug 2022-05-22 08:48:46 +10:00
Oliver Walters
cdeac137bf Improved API connection testing 2022-05-22 08:38:34 +10:00
Oliver Walters
fc911ea5b5 Server connection check passes now 2022-05-22 08:27:01 +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
e424a3cf7b Start of unit tests for the actual API code 2022-05-22 00:04:13 +10:00
Oliver Walters
63dd081a1c Test fix? 2022-05-21 20:49:32 +10:00
Oliver Walters
253a75129a Extra tests 2022-05-21 20:41:03 +10:00
Oliver Walters
6ef95499b7 Add genhtml step 2022-05-21 19:27:44 +10:00
Oliver Walters
b8d4130270 Adds tests for the "updateProfile" function 2022-05-21 00:30:56 +10:00
Oliver Walters
00baff7a97 All tests pass now 2022-05-21 00:26:09 +10:00
Oliver Walters
caa10b5f8f Add python requirements file 2022-05-20 23:48:58 +10:00
Oliver Walters
96ae1be3ec Add coveralls step 2022-05-20 23:42:30 +10:00
Oliver Walters
cd9af13e27 Adds an initial unit test 2022-05-20 23:34:02 +10:00
Oliver
ad0cc36540 More linting work 2021-09-28 20:24:55 +10:00
Oliver
d2ce3fadf1 Code cleanup 2021-07-15 11:27:19 +10:00
Oliver Walters
7ba1fc9328 NFI
- Changing some rando stuff to try to get the project to compile.
- Updated Android Studio after almost a year, it was hella borked
2021-01-20 08:00:43 +11:00
Oliver Walters
56d7f6389c Initial project commit
Generated icon using flutter_launcher_icons plugin
2019-06-24 00:33:22 +10:00