Commit Graph

17963 Commits

Author SHA1 Message Date
Oliver 002a0b32bc
Merge branch 'master' into block-notes 2026-06-06 09:10:15 +10:00
Oliver d4d5a4942c
Codecov tweaks (#12099)
* Add missing backend dirs

* Adjust frontend coverage paths

* Run frontend workflow on master
2026-06-06 08:45:02 +10:00
Matthias Mair bd3098028b
bump django (#12097) 2026-06-06 07:58:39 +10:00
Oliver 88524ac6d5
fix(forntend): generate UI coverage again (#12066)
* Attempt to fix UI coverage

* Update CI workflows:

- use test sharding
- Only upload coverage on master

* Restore line

* Simplify test

* Simplify test matrix

* Fix env vars

* Adjust matrix

* Adjust output names

* Fix paths

* Simplify qc_checks

* Revert missing line

* Simplify coverage calls

* Run firefox test against port 8000

* Fix VITE_COVERAGE env var

* Capture browser name in report output

* Increase timeout again

* Enhanced feedback from playwright startup

* Split UI checks into separate file

* Fix workflow deps

* Shard chromium build

* Adjust reporter type

* Reduce uncessesary build steps

* Tweak paths filter

* Reduce retries

* Also generate HTML reports

* Tweak reporter output

* Fix custom splash URLs

* Fix envs for customization tests

* Shard the firefox runner too

* Ignore customization tests for firefox too

* Don't upload if tests fail

* Fix triggers

* Remove merged test coverage

* Pin download action

* Error if no artifact files found

* Update ignore dirs

* Adjust baseFixtures

* Fix for teardown in baseFixtures.ts

* Fix path for coverage files

* include hidden files
2026-06-06 07:55:49 +10:00
Xhivo 2e4bf3739f
Add HMR and React Fast Refresh support (#12060)
* Add HMR and React Fast Refresh support

* Run pre-commit hooks

* Fix 'hmrSetModule' module loading

The incoming module needs to include the URL from which it was loaded,
so that it's possible to enforce only loading modules imported from the same
pathname as the current module.

* Add error handling and improvements

- Add error handling to `useRemotePlugin` and simplify `RemoteComponent`
- Improve HMR to use a registry instead of a single global callback.
  This should now handle two legacy plugin entry points being used at
  the same time via RemoteComponent.

* Update docs

* Update CHANGELOG

* Remove use of LanguageContext from RemoteComponent

LanguageContext should not be necessary here, as it's provided in
ThemeContext, which is used in InvenTree's frontend entry.

* Fix incorrect import.meta.hot access

* Update Playwright test to match UI text changes

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-06-05 23:21:12 +10:00
Oliver Walters b33e229c17 Merge commit '3393ef4e65267f4f8c5a5a87798553dbe0160a39' into block-notes 2026-06-05 12:57:45 +00:00
Oliver 3393ef4e65
[UI] Table adjuments (#12090)
- Set stale time for build table queries
- Fixes for table ordering
2026-06-05 18:08:27 +10:00
Oliver 969539426d
[UI] Calendar refresh (#12091)
* [UI] Add "refresh" button to Calendar view

* Extend filter drawer width
2026-06-05 17:13:12 +10:00
Oliver 8d2b765013
[UI] Adjust text (#12085)
* Adjust text

* Fix playwright  test
2026-06-05 17:06:36 +10:00
Oliver 2d8f735ac5
Adjust label for Build Order (#12089)
- Bring into line with other order types
2026-06-05 14:33:56 +10:00
Oliver 1b8217e8b3
[UI] Table filter set (#12079)
* Save and load custom filter sets

* Tweak UI logic

* Adjust icons

* More refactoring

* Update UI docs

* Playwright tests

* Add docs image

* Fix image name

* Update docs/docs/concepts/user_interface.md

Co-authored-by: Matthias Mair <code@mjmair.com>

* Add CHANGELOG entry

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
2026-06-04 22:19:28 +10:00
Oliver 3dfd03fa89
[Bug] Fix for build forms (#12081)
* Bug fix for build forms

- Memoize outputs to prevent re-rendering reset issues

* Add playwright test
2026-06-04 22:12:29 +10:00
Oliver dae97f4795
[UI] Adjust calendar view color (#12080)
- Match custom status colors
2026-06-04 20:32:24 +10:00
Oliver 75a08a1e06
[feature] tags support (#12077)
* Add Tag API endpoints

* Enable filtering by model type

* Remove old tags filters against Part endpoint

* Add generic tags filter for filtering against tagged items

* Add API unit tests for the tags API endpoints

* Create generic mixin class for adding tags support

* Update existing tagged models

* Add tags to more model types

* Enable new tags API filtering for multiple models

* Add support for tag filtering in part table

* Update transfer table filters

* Add tags filter to more places

* Allow multiple values to be selected as filters

* Add a new 'tags' type form field

* Display tags on part page

* tags support for orders

* Add support for SalesOrderShipment

* build order

* Company support

* SupplierPart and ManufacturerPart

* support StockItem

* Enable tag filtering for attachments

* Make tagslist readonly

* docs

* Mark props as read only

* Update API version

* Update CHANGELOG

* force tags to be case insensitive

* Add playwright test for build order tags

* more playwright testing

* Fix docs link
2026-06-04 19:38:22 +10:00
Oliver Walters a46bb395db Fix note image URL 2026-06-04 08:51:55 +00:00
Oliver Walters f6cde30ec6 Revert change 2026-06-04 08:50:21 +00:00
Oliver Walters 550a7abfbc Move old helper functions
- Only used for this migration
- Will potentially be removed at some point in the future?
2026-06-04 08:49:06 +00:00
Oliver 09c1aaad04
Merge branch 'master' into block-notes 2026-06-04 18:47:09 +10:00
Oliver Walters df9786f435 Remove blocknote deps 2026-06-04 08:46:40 +00:00
Oliver bb0b82ddb2
Update docs/docs/concepts/notes.md
Co-authored-by: Matthias Mair <code@mjmair.com>
2026-06-04 18:44:45 +10:00
dependabot[bot] a0b2452ba5
chore(deps): bump the dependencies group with 10 updates (#12074)
Bumps the dependencies group with 10 updates:

| Package | From | To |
| --- | --- | --- |
| [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) | `4.0.0` | `4.1.0` |
| [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `4.0.0` | `4.1.0` |
| [docker/login-action](https://github.com/docker/login-action) | `4.1.0` | `4.2.0` |
| [docker/metadata-action](https://github.com/docker/metadata-action) | `6.0.0` | `6.1.0` |
| [depot/build-push-action](https://github.com/depot/build-push-action) | `1.17.0` | `1.18.0` |
| [oasdiff/oasdiff-action](https://github.com/oasdiff/oasdiff-action) | `0.0.47` | `0.0.48` |
| [actions/cache](https://github.com/actions/cache) | `4.3.0` | `5.0.5` |
| [ad-m/github-push-action](https://github.com/ad-m/github-push-action) | `1.1.0` | `1.3.0` |
| [github/codeql-action](https://github.com/github/codeql-action) | `4.35.5` | `4.36.0` |
| [actions/stale](https://github.com/actions/stale) | `10.2.0` | `10.3.0` |


Updates `docker/setup-qemu-action` from 4.0.0 to 4.1.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](ce360397dd...06116385d9)

Updates `docker/setup-buildx-action` from 4.0.0 to 4.1.0
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](4d04d5d948...d7f5e7f509)

Updates `docker/login-action` from 4.1.0 to 4.2.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](4907a6ddec...650006c6eb)

Updates `docker/metadata-action` from 6.0.0 to 6.1.0
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](030e881283...80c7e94dd9)

Updates `depot/build-push-action` from 1.17.0 to 1.18.0
- [Release notes](https://github.com/depot/build-push-action/releases)
- [Commits](5f3b3c2e5a...98e78adca7)

Updates `oasdiff/oasdiff-action` from 0.0.47 to 0.0.48
- [Release notes](https://github.com/oasdiff/oasdiff-action/releases)
- [Commits](6147a58e5d...50e6a3413e)

Updates `actions/cache` from 4.3.0 to 5.0.5
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](0057852bfa...27d5ce7f10)

Updates `ad-m/github-push-action` from 1.1.0 to 1.3.0
- [Release notes](https://github.com/ad-m/github-push-action/releases)
- [Commits](4cc7477323...881a6320fd)

Updates `github/codeql-action` from 4.35.5 to 4.36.0
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](9e0d7b8d25...7211b7c807)

Updates `actions/stale` from 10.2.0 to 10.3.0
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](b5d41d4e1d...eb5cf3af3a)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: docker/setup-buildx-action
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: docker/login-action
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: docker/metadata-action
  dependency-version: 6.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: depot/build-push-action
  dependency-version: 1.18.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: oasdiff/oasdiff-action
  dependency-version: 0.0.48
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: actions/cache
  dependency-version: 5.0.5
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependencies
- dependency-name: ad-m/github-push-action
  dependency-version: 1.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: github/codeql-action
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: actions/stale
  dependency-version: 10.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-04 09:39:11 +10:00
Matthias Mair 856389bd96
fix assertation 2026-06-04 01:22:44 +02:00
Matthias Mair 1366da4e21
fix assertation 2026-06-04 00:47:45 +02:00
Matthias Mair 4bc9913483
add missing ruleset 2026-06-04 00:46:49 +02:00
Matthias Mair 5d490518b2
remove notes field that does not exsist anymore 2026-06-04 00:11:46 +02:00
Matthias Mair 2456101e2c
remove notes from test fixtures 2026-06-04 00:09:09 +02:00
Oliver Walters b2cece10b3 Merge branch 'block-notes' of github.com:SchrodingersGat/InvenTree into block-notes 2026-06-03 02:15:07 +00:00
Oliver Walters 05514ec13a Fix migrations 2026-06-03 02:14:50 +00:00
Oliver 11e55fce17
Merge branch 'master' into block-notes 2026-06-03 12:05:41 +10:00
Oliver 8453f7afa2
Small docs changes (formatting) (#12073) 2026-06-03 12:01:43 +10:00
Oliver Walters 8bd9aa7179 Update migration files 2026-06-02 07:40:47 +00:00
Oliver Walters a7ae8c0738 Update API 2026-06-02 07:34:38 +00:00
Oliver Walters 38d896573f Merge commit '47c6906a74f41eed5b56f4dc43ea0d4e20415237' into block-notes 2026-06-02 07:33:29 +00:00
Oliver 47c6906a74
Remove "review_needed" field (#12071)
* Remove "review_needed" field

* Update CHANGELOG
2026-06-02 17:23:35 +10:00
Oliver 75e3f522d4
Fix for "can convert" logic (#12070)
- Fetch full part detail
2026-06-02 16:43:08 +10:00
Oliver 0f717e2749
Specify R as ohms (#12065)
* Specify R as ohms

* Adjust comments
2026-06-02 16:16:19 +10:00
Oliver d3be030486
Update dashboard widgets (#12068)
- Display loading overlay
- Fix bottom of chart to zero
2026-06-02 14:55:27 +10:00
github-actions[bot] 1af301173d
New Crowdin translations by GitHub Action (#12045)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-02 10:16:05 +10:00
Oliver Walters d7af743521 Merge branch 'block-notes' of github.com:SchrodingersGat/InvenTree into block-notes 2026-06-01 11:56:00 +00:00
Oliver Walters 8bf2152c93 Merge commit 'd38af61ba2fb3c87143da57ddd92bc4845f85a7c' into block-notes 2026-06-01 11:55:47 +00:00
Oliver d38af61ba2
[UI] Order history dashboard widgets (#12061)
* Add order history dashboard widgets

* Support icons for dashboard widgets

* Change StylishText size from 'lg' to 'md'
2026-06-01 21:44:25 +10:00
Oliver 7f86384a03
Fix for RenderInstance (#12058)
* Fix for RenderInstance

- Do not call useNavigate within RenderInstance
- This breaks any plugins which try to use RenderInstance
- Pass navigate func through to <RenderInstance />

* Add playwright test for hover in forms

* Add translated plugin test

* Improve playwright tests

* Further unit test fixes

* Update docstring
2026-06-01 21:44:02 +10:00
Oliver 4f41ebb75c
Merge branch 'master' into block-notes 2026-06-01 20:04:46 +10:00
Oliver Walters 40c2775762 Merge commit '956468eb847754e701d207bae2a51a6a00ca7d56' into block-notes 2026-06-01 09:16:12 +00:00
Oliver f912ba501d
[bug] Various fixes (#12057)
* [bug] Various fixes

- Add get_api_url to EmailThread model
- Prevent setting creation during import
- Tweak BarcodeScanHistoryTable

* Tweak barcode history table tests

* Bump API version
2026-06-01 14:30:23 +10:00
Aditya Kumar Mishra 956468eb84
Fix: Apply default location correctly in Return Stock form (#11568) (#12059)
* Fix: Apply default location correctly in Return Stock form (#11568)

* Fix: Apply prek import ordering
2026-06-01 12:08:13 +10:00
Idea-Junkie 4b415cb8ae
Update to /api/barcode/po-recieve/ error messages (#11369)
* Update Dockerfile

* Update Dockerfile

* Added More Info In Barcode API Scans

Added DebugResponse
Added Suppliers Tested
Added Suppliers Errors

* Add NotFound to base Response

* Added Simple Plugin Debug

Changed "NotFound" to 'No_Match'
different style for Debug response

* Added finishing touches for API Error

* clean up + comments

* Added No Supplier Plugin error

* fix style

* Formatting and fixing comments

Added more variables
updated formatting
Added more in depth explanation block for Debug response

* duplicate code fix

* fixed some variable names

* Small move of variables

* Updated To Nested Debug Dictionary

fixed some issues with comments made in original PR
added more comments and small adjustments
got rid of "line item" in debug response

* Added notes to documentation

* Update docs/docs/app/barcode.md

adding matmirs comments

Co-authored-by: Matthias Mair <code@mjmair.com>

* Updated JSON plugin debug name

also added 'plugin_slug' variable

* fix style

* DNE style fix

* Style fix(again)

* Add unit tests

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-05-31 18:45:23 +10:00
Oliver b2b476b570
[API] Fix 1 + N query for custom status fields (#12055)
* Add CustomStatusSerializerMixin

- Caches custom status values

* Add unit test for PurchaseOrder model

* Implement changes for StockItemSerializer

* Implement changes for BuildOrder

* Fix unit test

* Bump API version

* Add serializer field type hint
2026-05-31 13:38:18 +10:00
Oliver 3a2e5b7ba7
Django admin permission updates (#12036)
* Tweak task offloading

- Improved function splitting
- Remove call to eval

* Read-only ScheduledTask admin

- Prevent admin users creating / editing / deleting scheduled tasks

* Add action for immediate trigger

* Prevent editing of UserSession via django admin

- Allow only read or delete
- No create or edit permissions

* Make StockTrackingAdmin read-only

* Reduce permission scope on common admin models

* Additional unit tests for task offloading

* Only superuser can change certain user fields

* Adjust unit test

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
2026-05-31 11:49:41 +10:00
Oliver 30243002a4
[UI] Can build (#12043)
* Fix for BuildDetail

* Update playwright tests

* update playwright

Ref: https://github.com/microsoft/playwright/issues/40998

* Fix hooks
2026-05-31 10:09:29 +10:00