2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 05:26:47 +00:00

46 Commits

Author SHA1 Message Date
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
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
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
83da0638a8
Dialog fixes (#242)
* Fix dialog for purchase order line item

* Fix other dialogs too

* Update release noes
2022-12-28 00:09:26 +11:00
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
e03a8561b9
Main screen loading indicator (#183)
* Bug fix for login screen

- Prevent setState() from being called if the widget is no longer loaded

* Add callback function when API status changes

- Home screen uses this function to update connection status indicator

* Linting fixes
2022-07-19 23:10:06 +10:00
Oliver Walters
4e14bd077c Improved debug messages 2022-05-22 09:17:32 +10:00
Oliver Walters
23a27fde67 Adds ability to show / hide password in profile widget 2022-05-10 23:42:27 +10:00
Oliver Walters
ad97fb0f92 Fixes for static analysis 2022-03-29 20:43:27 +11: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
094b997f76 Refactor login page buttons 2021-08-16 20:47:14 +10:00
Oliver
b9c9b8acc1 Add some icon 2021-08-16 16:31:23 +10:00
Oliver
638848092b Refactor profile selection screen
- Launch a new window, instead of a modal
- Improved host validation
- Better keyboard inputs
2021-08-16 16:28:11 +10:00
Oliver
978cefd6bf edit stock item
- Render choice fields
2021-07-26 22:26:56 +10:00
Oliver
1e4e75dfb7 Refactor colors used in the app 2021-07-23 12:57:56 +10:00
Oliver
e637e2a9bc make package name lowercase 2021-07-16 15:07:28 +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 Walters
2a3e83509f Refactor of translation lookup! 2021-05-19 23:33:28 +10:00
Oliver Walters
b86025013d More translations 2021-05-19 23:15:49 +10:00
Oliver Walters
34a6a43d35 Fixed (most) of the raw text instances 2021-05-19 23:08:44 +10:00
Oliver Walters
194be50337 Adds skeleton for "app settings" view 2021-03-02 22:57:45 +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
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
c2aa51ed95 Cleanup 2021-02-09 20:10:36 +11:00
Oliver Walters
4080b4177b Refactoring / fixing 2021-02-09 19:40:31 +11:00
Oliver Walters
7373805ea7 Refactor API connection code 2021-02-09 14:16:31 +11:00
Oliver Walters
1c0b469020 Add separator divider elements in lists 2021-02-09 12:28:14 +11:00
Oliver Walters
18b4783c11 Slightly improved login info on main screen 2021-02-09 09:34:04 +11:00
Oliver Walters
d918079440 Cleanup 2021-02-09 09:12:47 +11:00
Oliver Walters
74e6315a57 Edit existing profile 2021-02-09 08:57:56 +11:00
Oliver Walters
d5649af2f9 Server login now references the UserProfile class 2021-02-08 22:03:14 +11:00
Oliver Walters
7fe1b32bf6 I18N updates 2021-02-08 21:28:16 +11:00
Oliver Walters
e8a88997b4 Add / delete / select user profiles 2021-02-08 21:24:11 +11:00
Oliver Walters
b34a91b865 UserProfile 2021-02-08 20:32:49 +11:00
Oliver Walters
18229fbfe2 More translations 2021-02-02 21:24:07 +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
aa8a3602e8 Expansion state is now saved on the session level, not per widget 2020-04-06 23:01:11 +10:00
Oliver Walters
4b33f9c65c Cleanup settings page(s)
- New separate directory
- Separate view for About information
2020-04-06 22:48:32 +10:00