Oliver Walters
810d8817bf
Cleanup unused code
2024-08-30 03:25:37 +00:00
Oliver Walters
de0cb2e9ae
Remove default values
2024-08-30 03:23:04 +00:00
Oliver Walters
525923cdaa
Add "dynamic" contnt - javascript file - to example plugin
2024-08-30 01:16:27 +00:00
Oliver Walters
68177120e9
Code cleanup
2024-08-30 01:06:25 +00:00
Oliver Walters
ad13ccaff2
Only allow superuser to perform plugin actions
2024-08-30 01:04:49 +00:00
Oliver Walters
d81718c399
Merge branch 'master' into pui-plugins
2024-08-29 23:32:57 +00:00
Matthias Mair
3951b3f56e
Fix package upgrade process ( #8034 )
...
* ensure site_url is preserved
* check if clear-generated is available
2024-08-30 09:06:32 +10:00
Oliver Walters
0e9c85dea0
Render error message if plugin does not load correctly
2024-08-29 10:21:24 +00:00
github-actions[bot]
f725c38804
New Crowdin translations by GitHub Action ( #8022 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-29 20:16:58 +10:00
Oliver Walters
d02146a03e
Add a broken panel which tries to load a non-existent javascript file
2024-08-29 10:11:48 +00:00
Oliver Walters
2536cad8a3
Merge branch 'master' into pui-plugins
2024-08-29 10:02:33 +00:00
Oliver
3961e48fe8
Test template fix ( #8031 )
...
* Fix restriction for PartTestTemplate
- limit_choices_to should be "testable", not "trackable"
- ref: https://github.com/inventree/InvenTree/pull/7888
* Add migration file
* Fix validation check
* Fix API filter
* Fix for test fixture
* Fix another test
* Fixture data
* Fix comment
* More fixes
* More fixes
* Moar fix plz thx
2024-08-29 17:06:14 +10:00
Oliver
368d59ee55
Prevent editing of attachment file on test result after upload ( #8032 )
2024-08-29 14:34:34 +10:00
Oliver
3911694342
Allow notifications to be opened in new tab or window ( #8030 )
2024-08-29 13:25:58 +10:00
Oliver
99e37de1d8
Update pint library to latest version ( #8028 )
...
* Update pint library to latest version
* Fix hash
* Handle AssertionError
2024-08-29 12:37:38 +10:00
Oliver
9afc6cc6cb
Adjust "render_currency" behaviour ( #8017 )
...
* Adjust "render_currency" behaviour
- Fixes https://github.com/inventree/InvenTree/issues/7997
* Update docs
2024-08-29 12:21:38 +10:00
Oliver
99e822213d
Fix "sales_order" filter for buildId ( #8024 )
2024-08-29 08:15:14 +10:00
Oliver
c096f2f43a
Fix for attachment table ( #8021 )
...
- Allow bulk deletion of attachments from PUI
2024-08-28 15:42:15 +10:00
Oliver
93e06a0db5
Update for report / label template tables ( #8019 )
...
- Pass through extra information
- Specify column titles
2024-08-28 15:15:51 +10:00
github-actions[bot]
bcaf298ce3
New Crowdin translations by GitHub Action ( #8016 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-28 11:11:51 +10:00
Oliver
d5e8227782
Change target branch for translation ( #8015 )
2024-08-28 09:34:37 +10:00
Oliver
7d844e02be
Add extra undefined check for table filters ( #8008 )
...
* Add extra undefined check for table filters
* Logic fix..
- Do not return early, this is mistake!
- Correctly handle empty activeFilter state
2024-08-28 09:23:56 +10:00
Matthias Mair
450abcd353
Reduce code duplication for QR code scan ( #8004 )
...
* Add Link/Unlink Barcode action
Fixes #7920
* remove unneeded imports
* remove duplication
* simplify
* add testing
* refactor type
* wait for reload to add coverage
* Add warning if custom barcode is used
* Add Image based assign
* fix action button size
* fix selection to prevent wrapping
* use left section for button
* Refactor to seperate Input
* Add comment when not scanning
* Fix punctuation
* factor scan area out
* fix readonly arg
* make BarcodeInput more generic
* make button optional
* reduce code duplication by using BarcodeInput
* remove unneeded abstraction
2024-08-28 08:13:22 +10:00
Matthias Mair
313cb4758e
[PUI] Add image based QR code assigment ( #7960 )
...
* Add Link/Unlink Barcode action
Fixes #7920
* remove unneeded imports
* remove duplication
* simplify
* add testing
* refactor type
* wait for reload to add coverage
* Add warning if custom barcode is used
* Add Image based assign
* fix action button size
* fix selection to prevent wrapping
* use left section for button
2024-08-27 17:25:34 +10:00
Oliver
594c15b3e3
Allow edit of build allocations from part context ( #8007 )
2024-08-27 11:03:38 +10:00
Matthias Mair
820a3522da
fix action pin ( #8006 )
2024-08-27 10:34:55 +10:00
dependabot[bot]
10103e7d76
Bump mkdocs-material from 9.5.32 to 9.5.33 in /docs in the dependencies group across 1 directory ( #8002 )
...
* Bump mkdocs-material
Bumps the dependencies group with 1 update in the /docs directory: [mkdocs-material](https://github.com/squidfunk/mkdocs-material ).
Updates `mkdocs-material` from 9.5.32 to 9.5.33
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases )
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG )
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.32...9.5.33 )
---
updated-dependencies:
- dependency-name: mkdocs-material
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix req
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
2024-08-27 10:04:24 +10:00
Matthias Mair
1634258783
Enable more Ruff rules ( #7930 )
...
* bump version
* Add more checks
* add simplify rules
* Add RUF rules
* small perf imrpovements
* pylint checks
* more style fixes
* fix a number of A002 cases
* fix A001 cases
* disable unsafe fixes
* remove unneeded branches
fixes SIM102
* re-enable .keys for specific case
* Revert "remove unneeded branches"
This reverts commit f74d41bc07
.
* fix reference
2024-08-27 09:04:55 +10:00
Matthias Mair
bcbbae0a18
fix translatable string ( #7999 )
...
* fix translatable string
* do not translate key
2024-08-27 09:03:12 +10:00
dependabot[bot]
7b750dd04f
Bump github/codeql-action in the dependencies group ( #8000 )
...
Bumps the dependencies group with 1 update: [github/codeql-action](https://github.com/github/codeql-action ).
Updates `github/codeql-action` from 3.26.3 to 3.26.5
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](883d8588e5...2c779ab0d0
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-27 09:02:15 +10:00
dependabot[bot]
2d9cce87fe
Bump the dependencies group across 2 directories with 15 updates ( #8001 )
...
Bumps the dependencies group with 1 update in the /src/backend directory: [eslint](https://github.com/eslint/eslint ).
Bumps the dependencies group with 14 updates in the /src/frontend directory:
| Package | From | To |
| --- | --- | --- |
| [@codemirror/view](https://github.com/codemirror/view ) | `6.32.0` | `6.33.0` |
| [@emotion/react](https://github.com/emotion-js/emotion ) | `11.13.0` | `11.13.3` |
| [@mdxeditor/editor](https://github.com/mdx-editor/editor ) | `3.11.0` | `3.11.1` |
| [@tabler/icons-react](https://github.com/tabler/tabler-icons/tree/HEAD/packages/icons-react ) | `3.12.0` | `3.13.0` |
| [@tanstack/react-query](https://github.com/TanStack/query/tree/HEAD/packages/react-query ) | `5.51.24` | `5.52.2` |
| [@vanilla-extract/css](https://github.com/vanilla-extract-css/vanilla-extract/tree/HEAD/packages/css ) | `1.15.4` | `1.15.5` |
| [axios](https://github.com/axios/axios ) | `1.7.4` | `1.7.5` |
| [dayjs](https://github.com/iamkun/dayjs ) | `1.11.12` | `1.11.13` |
| [embla-carousel-react](https://github.com/davidjerleke/embla-carousel ) | `8.1.8` | `8.2.0` |
| [react-hook-form](https://github.com/react-hook-form/react-hook-form ) | `7.52.2` | `7.53.0` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) | `22.4.1` | `22.5.0` |
| [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ) | `18.3.3` | `18.3.4` |
| [@vanilla-extract/vite-plugin](https://github.com/vanilla-extract-css/vanilla-extract/tree/HEAD/packages/vite-plugin ) | `4.0.14` | `4.0.15` |
| [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) | `5.4.1` | `5.4.2` |
Updates `eslint` from 9.9.0 to 9.9.1
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v9.9.0...v9.9.1 )
Updates `@codemirror/view` from 6.32.0 to 6.33.0
- [Changelog](https://github.com/codemirror/view/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codemirror/view/compare/6.32.0...6.33.0 )
Updates `@emotion/react` from 11.13.0 to 11.13.3
- [Release notes](https://github.com/emotion-js/emotion/releases )
- [Changelog](https://github.com/emotion-js/emotion/blob/main/CHANGELOG.md )
- [Commits](https://github.com/emotion-js/emotion/compare/@emotion/react@11.13.0...@emotion/react@11.13.3 )
Updates `@mdxeditor/editor` from 3.11.0 to 3.11.1
- [Release notes](https://github.com/mdx-editor/editor/releases )
- [Commits](https://github.com/mdx-editor/editor/compare/v3.11.0...v3.11.1 )
Updates `@tabler/icons-react` from 3.12.0 to 3.13.0
- [Release notes](https://github.com/tabler/tabler-icons/releases )
- [Commits](https://github.com/tabler/tabler-icons/commits/v3.13.0/packages/icons-react )
Updates `@tanstack/react-query` from 5.51.24 to 5.52.2
- [Release notes](https://github.com/TanStack/query/releases )
- [Commits](https://github.com/TanStack/query/commits/v5.52.2/packages/react-query )
Updates `@vanilla-extract/css` from 1.15.4 to 1.15.5
- [Release notes](https://github.com/vanilla-extract-css/vanilla-extract/releases )
- [Changelog](https://github.com/vanilla-extract-css/vanilla-extract/blob/master/packages/css/CHANGELOG.md )
- [Commits](https://github.com/vanilla-extract-css/vanilla-extract/commits/@vanilla-extract/css@1.15.5/packages/css )
Updates `axios` from 1.7.4 to 1.7.5
- [Release notes](https://github.com/axios/axios/releases )
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md )
- [Commits](https://github.com/axios/axios/compare/v1.7.4...v1.7.5 )
Updates `dayjs` from 1.11.12 to 1.11.13
- [Release notes](https://github.com/iamkun/dayjs/releases )
- [Changelog](https://github.com/iamkun/dayjs/blob/v1.11.13/CHANGELOG.md )
- [Commits](https://github.com/iamkun/dayjs/compare/v1.11.12...v1.11.13 )
Updates `embla-carousel-react` from 8.1.8 to 8.2.0
- [Release notes](https://github.com/davidjerleke/embla-carousel/releases )
- [Commits](https://github.com/davidjerleke/embla-carousel/compare/v8.1.8...v8.2.0 )
Updates `react-hook-form` from 7.52.2 to 7.53.0
- [Release notes](https://github.com/react-hook-form/react-hook-form/releases )
- [Changelog](https://github.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md )
- [Commits](https://github.com/react-hook-form/react-hook-form/compare/v7.52.2...v7.53.0 )
Updates `@types/node` from 22.4.1 to 22.5.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `@types/react` from 18.3.3 to 18.3.4
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react )
Updates `@vanilla-extract/vite-plugin` from 4.0.14 to 4.0.15
- [Release notes](https://github.com/vanilla-extract-css/vanilla-extract/releases )
- [Changelog](https://github.com/vanilla-extract-css/vanilla-extract/blob/master/packages/vite-plugin/CHANGELOG.md )
- [Commits](https://github.com/vanilla-extract-css/vanilla-extract/commits/@vanilla-extract/vite-plugin@4.0.15/packages/vite-plugin )
Updates `vite` from 5.4.1 to 5.4.2
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v5.4.2/packages/vite )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: dependencies
- dependency-name: "@codemirror/view"
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: "@emotion/react"
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: dependencies
- dependency-name: "@mdxeditor/editor"
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: dependencies
- dependency-name: "@tabler/icons-react"
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: "@tanstack/react-query"
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: "@vanilla-extract/css"
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: dependencies
- dependency-name: axios
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: dependencies
- dependency-name: dayjs
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: dependencies
- dependency-name: embla-carousel-react
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: react-hook-form
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: dependencies
- dependency-name: "@types/react"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dependencies
- dependency-name: "@vanilla-extract/vite-plugin"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dependencies
- dependency-name: vite
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-27 09:01:55 +10:00
Oliver
d1c8354859
Reset page offset when changing page size ( #7994 )
...
- Prevents table rendering an "empty" page
2024-08-26 15:18:46 +10:00
Oliver Walters
c66c753879
Merge branch 'master' into pui-plugins
2024-08-26 04:27:48 +00:00
Oliver
881220cdb3
Hide "build orders" tab for inactive parts ( #7992 )
...
- Otherwise results in a 400 error
2024-08-26 09:40:45 +10:00
Oliver
d98c396f07
Update crowdin.yml ( #7985 )
...
- Add documentation strings
- Attempt to "fix" dest parameters
2024-08-25 13:17:24 +10:00
Oliver
695174810a
Try adding option ( #7984 )
2024-08-25 12:39:50 +10:00
Oliver
7e6ca121ec
Add git config for CI ( #7983 )
2024-08-25 11:54:53 +10:00
Oliver
2cf959cb8d
Forms refactor ( #7981 )
...
* Refactor "receive stock" table
- Display errors
- Fix infinite rendering loop
- Correctly set values to undefined on close
* Refactor stock operations table
* Fix for "change stock status" form
* Fix default values
* Unit test fix
2024-08-25 11:04:18 +10:00
Oliver
eec53ffd82
[PUI] Build actions ( #7945 )
...
* add table buttons to build line table
* Add deallocate row action
* Restrict row actions
* Add functionality to 'deallocate' stock from build order
* Implement 'auto-allocate'
* Table column cleanup
* Refactor code into new hook:
- Helper function to update a set of selected rows
- Callback function to remove row
* Refactor existing forms to use new hook
* Fix for RelatedModelField
- Handle callback for null value
* Memoize each field instance
* Cleanup dead code
* Define interfac for TableField row properties
* Handle processing of nested errors
* Pass form controller through to table field rows
* Pass row errors through to individual table rows
* Allow Standalone field to render errors
* Allow allocation against build lines
* Adjust quantity value when stock item is changed
* Fix issue related to field name
* Add "available" filter
* Add "remove row" button
* Add field for selecting source location
* Filter out consumable items
* Adjust form success message
2024-08-24 15:17:05 +10:00
Matthias Mair
ebb01c5e5b
add path ( #7979 )
2024-08-24 10:28:09 +10:00
Matthias Mair
8a59829ef1
[PUI] Add currency stats ( #7971 )
...
* factor out stats overview
* move to panel
* Add currency stas overview
Closes https://github.com/invenhost/InvenTree/issues/115
2024-08-24 09:21:06 +10:00
Matthias Mair
ed2da62a46
Fix state changes on stock items ( #7976 )
...
* Revert changes from https://github.com/inventree/InvenTree/pull/7965
* Add error handling for wrong key
* Add e2e test case for error condition
Fixes #7964
* Better code code / flow
* [BUG] Order of states in schema descriptions is not stable
Fixes #7977
2024-08-24 09:18:09 +10:00
Matthias Mair
df8efa902e
fix: translation action wrong location ( #7975 )
...
* set destination
* cleanup files before submitting
2024-08-24 09:14:38 +10:00
Matthias Mair
d647471588
Chore: Bump python requirements ( #7961 )
...
* bump requirements
* lower bound on pydyf
2024-08-23 23:03:31 +00:00
Oliver Walters
a6d5e17102
Merge remote-tracking branch 'origin/master' into pui-plugins
2024-08-23 22:32:02 +00:00
Matthias Mair
8f4929d754
[BUG] Order of states in schema descriptions is not stable ( #7978 )
...
Fixes #7977
2024-08-24 08:28:58 +10:00
Oliver
b9b44126de
Revert status fields for stock items ( #7965 )
...
* Revert status fields for stock items
* Fix PUI fields too
* Bump API version
2024-08-23 11:00:20 +10:00
Matthias Mair
cf9dcf0556
[CI] Switch to using Crowdin GitHub Action ( #7929 )
...
Fixes #7910
2024-08-23 09:49:57 +10:00
Matthias Mair
58f60d18b6
Add pagination ( #7958 )
2024-08-22 17:01:25 +10:00
Oliver
1dff94db75
Table borders ( #7957 )
...
* Add 'editable' attribute to table column type
* Add "editable" attribute for useTable hook
* Add column borders to tables
2024-08-22 16:08:41 +10:00