Commit Graph

12422 Commits

Author SHA1 Message Date
Oliver Walters
a551bf1e81 Add options to control what is shown in search preview window 2022-03-29 23:27:25 +11:00
Oliver Walters
4bb95de4f9 Re-add button to submit "search" form and show full results 2022-03-29 23:19:23 +11:00
Oliver Walters
cc1501283d Refactoring 2022-03-29 22:59:23 +11:00
Oliver Walters
f1876ae28b Add a "searching..." indicator to show progress 2022-03-29 22:48:54 +11:00
Oliver Walters
11a6052871 remove the old search bar 2022-03-29 22:46:00 +11:00
Oliver Walters
22ee6614cc Render links for search results 2022-03-29 22:40:47 +11:00
Oliver Walters
78e5a685dc Display results for parts and stock items
- Use the existing rendering functions
2022-03-29 22:35:47 +11:00
Oliver Walters
51d26b1d16 Skeleton for displaying search results 2022-03-29 20:49:23 +11:00
Oliver
b6a0f3ddfc
Merge pull request #2786 from zuman/master
Updated setuptools version
2022-03-29 09:56:20 +11:00
husas
f76cc89d5a Updated setuptools version 2022-03-28 17:27:22 +05:30
Oliver Walters
92bff3d1b7 Merge branch 'master' into search-megamenu 2022-03-28 21:56:30 +11:00
Oliver
fde4af7262
Merge pull request #2785 from SchrodingersGat/plugin-api-fix
Plugin api fix
2022-03-28 21:48:58 +11:00
Oliver Walters
89d0e41ebc JS lint fix 2022-03-28 20:59:34 +11:00
Oliver Walters
13af1cb853 Hide label printing buttons of labels are not enabled 2022-03-28 20:44:33 +11:00
Oliver Walters
b62905d5c4 Add user setting to enable / disable label printing 2022-03-28 20:38:57 +11:00
Oliver Walters
05344a3675 Only check for label printing plugins if plugins are enabled 2022-03-28 20:36:34 +11:00
Oliver Walters
2ce5b7c896 Make plugins_enabled variable available to javascript code 2022-03-28 20:25:47 +11:00
Oliver Walters
c4ac7e1877 Add callback for search text entery 2022-03-28 20:24:07 +11:00
Oliver Walters
7d68b3209b Add callbacks for search panel opening and closing 2022-03-28 10:18:49 +11:00
Oliver Walters
ffb89af9e5 Move search results panel into new template 2022-03-28 10:10:02 +11:00
Oliver Walters
ce396759a1 Add new javascript file (search.js)
- Empty, for now
2022-03-28 10:09:09 +11:00
Oliver Walters
2976545988 Adds a new "offcanvas" section for search results 2022-03-28 10:02:55 +11:00
Oliver
aed7a35312
Merge pull request #2782 from SchrodingersGat/floating-point-fixes
Fix floating point issues
2022-03-27 21:57:44 +11:00
Oliver Walters
441a947dbb Fix another quantity 2022-03-27 21:06:11 +11:00
Oliver Walters
ab7eda9d2c Add new button to navbar 2022-03-27 21:04:14 +11:00
Oliver Walters
ce323d80ea Fix floating point issues 2022-03-27 20:29:59 +11:00
Oliver
dc8b986fc6
Merge pull request #2780 from SchrodingersGat/location-sort
Fix sorting for location column in part table
2022-03-27 12:48:34 +11:00
Oliver Walters
5b949b6f60 Fix sorting for location column in part table 2022-03-27 07:45:45 +11:00
Oliver
1bdebe1324
Merge pull request #2776 from SchrodingersGat/printer-dimensions
Supply label width and height to the label printing plugin
2022-03-26 16:57:11 +11:00
Oliver Walters
e18493a397 Supply label width and height to the label printing plugin 2022-03-26 13:43:48 +11:00
Oliver
223744eba1
Merge pull request #2775 from SchrodingersGat/print-error-tweak
Register notification against the plugin class, not the particular label
2022-03-26 11:25:55 +11:00
Oliver Walters
3e484317d2 Register notification against the plugin class, not the particular label 2022-03-25 23:49:15 +11:00
Oliver
b57c4591e5
Merge pull request #2774 from SchrodingersGat/setuptools-version
Pin setuptools version
2022-03-25 22:32:47 +11:00
Oliver Walters
fcfdec0ad6 Fix requirements.txt formatting 2022-03-25 21:47:38 +11:00
Oliver Walters
03eb5441c7 Pin setuptools version
- Recent update seems to have borked it
2022-03-25 21:43:10 +11:00
Oliver
db61c39400
Merge pull request #2773 from SchrodingersGat/plugin-api-permissions
Plugin api permissions
2022-03-25 17:21:32 +11:00
Oliver
6e30ec5603 PEP fix 2022-03-25 16:42:20 +11:00
Oliver
15a221509b Bump API version 2022-03-25 16:40:30 +11:00
Oliver
052d9770ce Override view permissions for plugin list API
- It is necessary for *any* logged in user to view this endpoint
- This is how the user determines which plugins are available (e.g. for label printing!)
2022-03-25 16:39:43 +11:00
Oliver
42f03296d2
Merge pull request #2772 from SchrodingersGat/print-failed
Send notification if printing fails
2022-03-25 16:22:30 +11:00
Oliver
9046c74628 Only send printing failed as a UI notification 2022-03-25 16:05:35 +11:00
Oliver
c1b408f8a3 Send notification if printing fails
If label printing fails (due to a plugin error) then the user is notified.
2022-03-25 15:57:32 +11:00
Oliver
5921964fdb
Merge pull request #2771 from SchrodingersGat/plugin-settings-fix
Ensure that kwargs are correctly passed through the settings chain
2022-03-25 14:53:22 +11:00
Oliver
011d97db3d Tweak display of label printing plugins 2022-03-25 14:20:25 +11:00
Oliver
bc48a95844 PEP fixes 2022-03-25 14:13:02 +11:00
Oliver
5ee9af7f0e Remove old "get_filters" function
- It was confusing!
- Manually filter where required
2022-03-25 14:10:05 +11:00
Oliver
63b5b95610 Ensure that kwargs are correctly passed through the settings chain
Problem: validate_unique fails

- Otherwise, the <plugin> object is not correctly passed
- Then, validate_unique fails
2022-03-25 13:43:19 +11:00
Oliver
fd03db4363
Merge pull request #2769 from SchrodingersGat/api-endpoint
Add 'plugins_enabled' information to the root API endpoint
2022-03-24 20:48:25 +11:00
Oliver Walters
acd796f127 Add 'plugins_enabled' information to the root API endpoint 2022-03-24 20:11:17 +11:00
Oliver
36665a7622
Merge pull request #2768 from SchrodingersGat/label-printing-plugin
Label printing plugin
2022-03-24 17:07:49 +11:00