Commit graph

26 commits

Author SHA1 Message Date
Ben Hagen
4444884afa
Format Code and Add Format Checks to CI (#643)
* Remove unused lib/generated/i18n.dart

* Use `fvm dart format .`

* Add contributing guidelines

* Enforce dart format

* Add `dart format off` directive to generated files
2025-06-24 09:55:01 +10:00
Oliver
524c5469f1
[refactor] Scan improvements (#577)
* Handle error on unexpected barcode response

* Add ManufacturerPart detail view

* Support barcode scanning for manufacturer part

* Refactoring for null checks

* Ignore selected errors in sentry

* Fix API implementation for ManufacturerPart

* Update release notes

* More error handling

* Decode quantity betterer

* Refactoring

* Add option to confirm checkin details

* Improve response handlign

* Cleanup

* Remove unused imports

* Fix async function

* Fix for assigning custom barcode

* Handle barcode scan result for company

* Fix

* Adjust scan priority

* Refactoring MODEL_TYPE

- Use instead of duplicated const strings

* @override fix
2024-12-14 15:24:23 +11:00
Oliver
d990508237
Update Requirements (#541)
* 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
b02dc5bac7
Simplify DSN file (#475)
* Add checks for empty sentry DSN

* Add default DSN key

* Fix CI workflows
2024-03-06 21:09:06 +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
164295c3e2
Code Cleanup (#312)
* Open email and telephone links for company

* Cleanup imports
2023-04-11 22:38:57 +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
dacbf880da
Improve error handling and reporting (#190)
* Prevent duplicate reporting of errors to sentry

* Prevent error message upload on some server error codes

* Filter out some common errors we are not interested in
2022-07-26 15:57:16 +10:00
Oliver Walters
69e00a5fd8 Attempt to capture stacktrace data when uploading a custom message to sentry 2022-05-22 10:23:27 +10:00
Oliver Walters
b18dd92079 Fixes after preferences file refactor 2022-05-21 19:44:47 +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
9507f4c985 Anonymize URL when reporting message to sentry.io 2022-03-10 16:06:06 +11:00
Oliver
0e20bf80a5 linting fixes 2022-01-09 22:27:52 +11:00
Oliver
f1a46be417 Reorganize settings:
- Add new setting to disable error uploading
- Move "about" info to a separate view
2022-01-09 22:22:08 +11:00
Oliver
ad0cc36540 More linting work 2021-09-28 20:24:55 +10:00
Oliver
b41f1a2ac7 Update package_info and device_info 2021-07-29 16:08:44 +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
f6c8d9a449 Upload custom message when server returns error code >= 500 2021-07-13 08:23:59 +10:00
Oliver
c84941695d Ensure that flutter errors are also reported to sentry! 2021-06-29 22:26:20 +10:00
Oliver Walters
90a74fec16 Re-integrate sentry.io 2021-02-25 19:51:51 +11:00
Oliver Walters
59585f72cf Remove all sentry references
- Google play store already offers crash reporting...
2021-02-16 08: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
e91c1a4d6d Upload bug report 2021-02-13 21:42:13 +11:00