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

160 Commits

Author SHA1 Message Date
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
b6ab9d5da5
Refresh fix (#436)
* Add notificationPredicate to improve scroll-to-reload

Ref: https://api.flutter.dev/flutter/material/RefreshIndicator-class.html

* Add scroll-to-refresh for paginated list
2023-10-23 21:59:05 +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
0d44bd3799
Update release_notes.md (#432) 2023-10-19 23:35:13 +11:00
Oliver
6520873384
Translation fix (#424)
* Fix locale header

- Moving to new framework meant that Intl.getCurrentLocale was no longer working

* Update release notes

* Fix typo in pubspec.yaml

* Clear cached values when locale is changed

* Add extra context check
2023-09-20 08:37:48 +10:00
Oliver
dd12769a51
Stock transfer extra (#420)
* Add API version check

* Support "packaging" and "status" fields when performing a stock-transfer action

* Update release notes
2023-09-09 00:32:57 +10:00
Oliver Walters
38dfb03669 Update release notes 2023-08-12 20:59:15 +10:00
Oliver
d2a01a0286
Supplier part fix (#408)
* Change supplier part fields based on API version

* Display packaging info on supplier part page

* Icon consolidation

* Bump version number
2023-07-27 10:16:36 +10:00
Oliver
b044c53d91
More debug (#405)
* Extra options for sentry

* Use string comparison

* Catch error when constructing related field

* Include field name in debug
2023-07-23 09:55:08 +10:00
Oliver
7a11fdead8
Tweaks (#401)
* Improve collect_translations.py

* Cleanup

* Update translation support

* Update release notes
2023-07-17 21:17:23 +10:00
Oliver
443e6e856c
Label print updates (#399)
* Allow download of printed label

* Add setting for controlling label printing

* Control display of label printing via setting

* Refactor label printing functionality

- Move to helpers.dart
- Will be used for other label types also

* Factor out request for label templates

* Add label printing support for part

* Support label printing for stock location

* update release notes
2023-07-16 00:51:11 +10:00
Oliver
7ef6da4b2a
Add extra filtering options for stock items (#394) 2023-07-07 21:47:27 +10:00
Oliver
6fe23fa846
Update release notes (#392)
* Update release notes

* Fix typo
2023-07-05 22:21:12 +10:00
Oliver
138cae2da0
Search improvements (#388)
* Refactor search widget

- visual improvements
- Simplifications
- Add refresh button
- Improve search button

* Track original search

* fix BOM widget

* Update release notes
2023-06-30 22:42:59 +10:00
Oliver
279c15509c
Pre fill location (#384)
* Pre-fill the location when transferring stock

* Update release notes
2023-06-28 21:25:15 +10:00
Oliver
08ebc34730
Bump version to 0.12.3 (#382)
* Bump version to 0.12.3

* Updates for ios

* Fix for float / decimal field

* Cleanup simpleNumberString

* Increment build number
2023-06-26 20:53:09 +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
770d9cddb2
Add ability to filter stock by "in_stock" (#376) 2023-06-20 20:38:07 +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
9cc666d13e
Fix bug when list of tiles flows off screen (#370)
- Reimplement scrolling behaviour
2023-06-13 19:58:41 +10: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
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
Oliver
b733d00c37
Fix bug in purchase order form (#354)
- Remove "project_code" field if the server API does not yet support it
2023-05-18 20:55:50 +10:00
Oliver
4ba19fcab2
Increment to 0.12.0 (#347) 2023-04-29 21:06:12 +10:00
Oliver
383571707e
Stock test actions (#345)
* Use FAB for stock item test result

* Change long press to tap

* Add setting to control display of stock tests results

* Add question mark if no result recorded
2023-04-28 23:27:59 +10:00
Oliver
b7e806efee
PO Line Item Improvements (#340)
* Refactor thumbnail image

* Add paginated list of purchase order line items

* Refactor getBody() function

- No longer "have" to specify
- Can use getTiles for a simpler interface

* Add detail widget for polineitem

* add pricing info

* Receive line items via action button

* tweak color

* update release notes

* linting fixes
2023-04-21 23:15:00 +10:00
Oliver
e23a8b4d5e
Project code support (#336)
* Determine if project codes are supported

* Add helpers for boolean functions

* Adds helper methods for generic "model" class

- Will allow us to do some good refactoring

* Refactor the refactor

* Add debug support and getMap function

* Major refactoring for model data accessors

* Handle null values

* Add sentry reporting if key is used incorrectly

* Fix typo

* Refactor createFromJson function

* Add model for ProjectCode

* Display and edit project code for purchase orders
2023-04-21 21:12:22 +10:00
Oliver
232f721712
Fix duplicate serial number field (#334) 2023-04-20 20:47:40 +10:00
Oliver
1d6708fbca
Adjust colors of action buttons (#333)
Fixes https://github.com/inventree/inventree-app/issues/330
2023-04-20 20:47:24 +10:00
Oliver
ac57c53202
Bump version number to 0.11.6 (#332) 2023-04-20 18:55:22 +10:00
Oliver
b9ffabd561
Make notes widget "generic" (#327)
* Make notes widget "generic"

- No longer tied to the "part" model
- Will allow us to use it elsewhere

* Update release notes

* Add helper methods for checking model permissions

* Refactoring of permissions checks

* Add notes to the "purchase order" widget

* Fix typos

* remove bom tab from part view

* linting fixes
2023-04-19 21:57:28 +10:00
Oliver
28ed1ed545
Improve supplier part detail screen (#326)
* Improve supplier part detail screen

* Update release notes
2023-04-19 21:17:24 +10:00
Oliver
87994a4912
Re-implement BOM link from part view (#325) 2023-04-19 21:07:56 +10:00
Oliver
347692bf70
Add transparent background image (#323)
- Fixes display of background image in dark mode
2023-04-19 20:54:52 +10:00
Oliver
612db9f194
Improvements for dark mode (#322)
* Action colors are now determined based on theme

* Fix unused import

* Update some more colors based on theme

* Updated release notes

* Better color choice

* Update for home screen

* Updates for app drawer

* remove unused import
2023-04-18 23:07:24 +10:00
Oliver
d926686a89
Stock history fix (#320)
* Improves quantity parsing from

* Add paginated history widget

* Refactor stock history widget as a paginated widget

* Allow paginated result list to handle results returned as list

- Some API endpoints (older ones most likely) don't paginate results correctly

* Fix code layout

* Render user information in "history" widget (not quantity)

* Hide filter button

* Update release notes

* remove unused import
2023-04-18 22:46:08 +10:00
Oliver
b54565d1c3
Dark mode color fix (#318)
* Fix custom colors in API forms

* update release notes

* update build version
2023-04-16 22:07:01 +10:00
Oliver
a3d712d11d
Adds "dark mode" support (#317)
* Adds "dark mode" support

- Uses adaptive_theme package

* CI fixes

* More fixes

* Update release notes
2023-04-16 21:10:57 +10:00
Oliver
1d913084a6
Update release notes (#314) 2023-04-12 22:58:13 +10:00
Oliver
26b86a2194
Update status codes (#307)
* Extra error info when connecting to server

* Adds accessors for various types of status codes

* Cleanup / refactor stock status codes

- No longer need to duplicate these on the app

* improvements to purchase order list

- Add option to show closed orders
- Render order status

* Add purchase order status to order detail widget

* Update release notes

* Cleanup for imports

* linting fixes
2023-04-10 23:12:30 +10:00
Oliver
efb7ff4170
Keyboard fix (#306)
* Remove focusNode in search widget

- Was causing some issues in iOS in particular

* Improve search UX by cancelling previous query

- Prevent successive search queries from being displayed

* Update release notes

* Add "type" for cancelable operation
2023-04-10 17:07:06 +10:00
Oliver
bf8a65fadf
Update release notes (#302) 2023-04-09 00:14:09 +10:00
Oliver
a8f87e2f5a
UX Overhaul (#300)
* Add "global actions" to title bar

* Implement actions

* Add "speed dial" action buttons

* tweak global action icons

* Refactor actions for "stock item" display

* Refactor "part" detail

* part category

* SupplierPart

* More updates

* Add BottomAppBar

* Add a global bottom app bar

* Move "edit" buttons back to the app bar

* tweaks

* Updates to drawer navigation menu

* home screen improvements

* text tweaks

* Fix appBarTitle for notifications widget

* Update "tabs" for category display

* Fix for attachment widget

* Update tabs for purchaseorder view

* Update part display

* Cleanup

* Add "BOM" tab to part detail widget

* Paginated list search cleanup

* Update release notes

* Update old function

* linting

* linting

* Tweaks to bottomappbar

- Increase icon size slightly
- Adjust "actions" icon
2023-04-08 23:59:11 +10:00
Oliver
74176cdda8
Bump release noes (#299) 2023-04-05 23:14:39 +10:00
Oliver
091f33eb10
Update version and build (#290) 2023-03-24 21:19:26 +11:00
Oliver
d7f2c3939b
Consolidated search (#289)
* Update search widget to support consolidated search API endpoint

* Finer control over global search

* Update release notes

* remove unused variable
2023-03-24 21:09:38 +11:00
Oliver
347e80d8e2
Adds support for currency display (#277)
* Adds a helper function for rendering currency data

* Update helper functions for StockItem model

* Render purchasePrice correctly for stockitem

* Use currency_formatter library instead of money_formatter

* Add total price display for purchase order

* icon fix
2023-03-08 23:42:26 +11:00
Oliver
10ae5e47ba
Update version number to 0.10.2 (#275) 2023-02-27 21:18:48 +11:00
Oliver
84f7e90569
Fix icon on SupplierPartDetail widget (#273)
* Fix icon on SupplierPartDetail widget

* Update release notes
2023-02-27 21:01:17 +11:00
Oliver
c8dedf2a0e
Bump version number to 0.10.1 (#272) 2023-02-26 22:17:04 +11:00