2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 13:36:50 +00:00

49 Commits

Author SHA1 Message Date
Oliver
665de2bd5a
Refactor search widget (#578)
* Refactor search widget

* Cleanup

* Fix for unallocated stock count

* Fix race condition

- Only upate results which match the current search term
- Prevents issues with multiple "competing" queries

* Fix for stock quantity

* Fix icon credits

* Tweak app bar color

* Cleanup visual stylinh
2024-12-14 17:29:35 +11: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
bdd5470e68
Sales order support (#438)
* Add new models for SalesOrder

- Create generic Order and OrderLine models with common functionality

* Refactor

- Move some widgets around
- Cleanup directory structure

* Add link to home screen and nav drawer

* Add SalesOrder list widget

* Linting fixes

* Fix string

* Refactor PurchaseOrderDetailWidget

* Tweaks to existing code

* linting

* Fixes for drawer widget

* Add "detail" page for SalesOrder

* Add more tiles to SalesOrder detail

* Allow editing of salesorder

* add list filters for sales orders

* Display list of line items

* Customer updates

- Display customer icon on home screen
- Fetch sales orders for customer detail page

* Cleanup company detail view

* Create new sales order from list

* Stricter typing for formFields method

* Create new PurchaseOrder and SalesOrder from company deatil

* Status code updates

- Add function for name comparison
- Remove hard-coded values

* Update view permission checks for home widget

* Add ability to manually add SalesOrderLineItem

* Add nice progress bar widgets

* Display detail view for sales order line item

* edit SalesOrderLineItem

* Fix unused import

* Hide "shipped items" tab

- Will be added in a future update
2023-11-12 23:13:22 +11: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
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
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
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
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
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
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
c25175ac54
Search fix (#208)
* Prevent setState if search widget is not mounted

* Prevent search textbox from disappearing
2022-09-10 13:11:34 +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 Walters
7301243ed6 Major overhaul of "paginated list" widget class
- Simplify implementation
- Create mixin class for code reuse
- Allow custom app-bar
- Allow custom ordering / sorting options
- Improve code commenting / readability
2022-07-06 20:24:40 +10:00
Oliver Walters
2a685a743f Wrap search queries in permission checks 2022-06-04 09:31:34 +10:00
Oliver Walters
11157b7c77 Fix search counter 2022-05-19 21:11:46 +10:00
Oliver Walters
941ee5e172 Prevent "old" search results from mucking up the displayed data
- Only accept results if the search term has not changed
2022-05-19 21:06:20 +10:00
Oliver Walters
acf89426ce Fix for search screen
- Change input and controller
- Add focus node
- Add "searching" indicator
2022-05-19 20:38:28 +10:00
Oliver Walters
7ef7096e26 Updates to search controller 2022-05-04 11:53:11 +10:00
Oliver Walters
a3597c5d61 Allow search widget to be constructed with or without an app bar 2022-05-04 10:42:33 +10:00
Oliver Walters
3fa68ec6da The "search" window is now a tab on the main screen 2022-05-04 10:27:04 +10:00
Oliver Walters
2a6df373c5 Refactor imports 2022-03-29 19:54:19 +11:00
Oliver
a5b52ea1cc Linting 2021-10-04 08:31:39 +11:00
Oliver
cf3226da6f Add new list widgets
- PartCategory
- StockLocation
2021-10-04 08:20:32 +11:00
Oliver
6dad1f2b25 Refactor part list 2021-10-04 00:20:06 +11:00
Oliver
581d182464 Refactor StockList 2021-10-04 00:14:12 +11:00
Oliver
b656eb7b43 Show supplier results 2021-10-03 23:47:59 +11:00
Oliver
1ca3732a33 Work on refactoring search page
- Implement generic "search" count preview
- Nice and speedy!
2021-10-03 23:37:15 +11:00
Oliver
2f8d02b0be API_Form: Allow customizable icon
- Also fixes for API search
2021-10-02 22:31:28 +10: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
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
8b5bd0f213 More fixes for null safety support 2021-07-13 01:00:18 +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
34a6a43d35 Fixed (most) of the raw text instances 2021-05-19 23:08:44 +10:00
Oliver Walters
bee04e2cd8 Add new stock code 2021-03-04 15:51:04 +11:00
Oliver Walters
9f5583ee68 Fixed search bar issues 2021-02-22 18:06:04 +11:00
Oliver Walters
90664bfe14 Display part notes and stock notes 2021-02-13 22:36:44 +11:00
Oliver Walters
6f54fb42ee Display part stock in part search results 2021-02-13 01:31:42 +11:00
Oliver Walters
135b752d51 Add separate search icons from home page 2021-02-13 01:04:50 +11:00
Oliver Walters
5c7629d4d1 Add search delegate for stock items 2021-02-13 00:58:03 +11:00
Oliver Walters
858464d301 Add custom search context for "category" 2021-02-13 00:40:21 +11:00
Oliver Walters
ddafed1fe6 Add "starred parts" to home screen 2021-02-12 23:48:50 +11:00
Oliver Walters
d1e612698e Adds search results 2021-02-12 22:38:33 +11:00
Oliver Walters
32fd8efddc Make a bunch o' strings translateable 2021-02-01 22:36:46 +11:00
Oliver Walters
83ac6041cb Make search widget "refreshable"
- Return results for Part
- Return results for StockItem
2020-04-16 20:56:59 +10:00
Oliver Walters
1ec0b13479 Add (empty) search page 2020-04-09 08:52:53 +10:00