Commit Graph
100 Commits
Author SHA1 Message Date
Oliver Walters ebabc3359f Use branch for playwrigh testing 2026-07-04 13:00:14 +00:00
Oliver Walters 592a4ab357 Fix migration conflicts 2026-07-04 12:40:27 +00:00
Oliver Walters c86f36e555 Merge commit '5df2adae6da3eba4fe7b7df1d8515a689f940e60' into block-notes 2026-07-04 12:37:40 +00:00
Oliver f93c813bb4 [db] Fix for UUID fields (#12301) 2026-07-04 07:57:55 +10:00
Oliver Walters f4ae4a415f frontend UI elements 2026-07-03 15:01:25 +00:00
Oliver Walters 18ea4b51e5 implement note duplication serializers 2026-07-03 14:56:21 +00:00
Oliver Walters fa447473d3 Merge branch 'block-notes' of github.com:SchrodingersGat/InvenTree into block-notes 2026-07-03 14:12:33 +00:00
Oliver Walters 0fe49796f6 Add unit tests for data migrations 2026-07-03 14:11:49 +00:00
Oliver Walters fc5fbdeb89 Add 'copy_note' option to duplicate serializer 2026-07-03 14:08:58 +00:00
Oliver Walters 102091c429 Merge commit 'f656ac72635b16eb8140680b9260f8b6b0e012d1' into block-notes 2026-07-03 14:07:49 +00:00
Oliver f656ac7263 [docs] Report helper docs (#12300)
* [docs] Report helper docs

* Split out docs for assets and snippets

* Updates
2026-07-03 21:40:28 +10:00
Oliver Walters ec0f070a7c Add CHANGELOG 2026-07-03 10:57:53 +00:00
Oliver Walters 1c4f865b9f Merge commit '4895fbc9fed2c7df28729e3b38929fc26f767ae9' into block-notes 2026-07-03 10:51:02 +00:00
Oliver 4895fbc9fe [UI] Add "IPN" column to installed items table (#12297) 2026-07-03 19:27:32 +10:00
Oliver 4cb29f37c6 [UI] Snippet editor (#12299)
* Implement admin editor for report snippets

* Report asset management

* Add playwright test for report snippets

* Add playwright test for "Report Assets" panel

* Updated docs
2026-07-03 19:04:50 +10:00
Oliver 15c64d6695 [API] Refactor API for duplicating objects (#12294)
* Implement generic serializer for custom model duplication

* Apply pattern to BuildOrder

* Add more generic options

* Bump API version

* Adjust default option

* Refactor existing implementations

* Dynamic class typing

* Add duplicate field to more model types

- Company
- ManufacturerPart
- SupplierPart
- SalesOrderShipment

* Implement parameter duplication for more models:

- Company
- ManufacturerPart
- SupplierPart

* Simplify code

* Refactor
2026-07-03 18:04:59 +10:00
Oliver Walters eab023d2f1 Add unit test for note duplication 2026-07-02 10:22:26 +00:00
Oliver Walters 51988d2172 Duplicate embedded images when copying notes 2026-07-02 10:18:17 +00:00
Oliver 836a05a104 [UI] Tweak unique keys (#12293)
- Reduce reliance on mutable idx
2026-07-02 20:06:53 +10:00
Oliver Walters 63e23bd766 APi unit tests for note permissions 2026-07-02 09:22:43 +00:00
Oliver 5532946473 [UI] Fix imports (#12292)
- Adjust import structure
- Prevent wall-of-text warnings from vite
2026-07-02 18:28:12 +10:00
Oliver Walters f89b6088cb Restrict queryset based on user view permissions 2026-07-01 14:18:19 +00:00
Oliver Walters 6f7c3ff75d docs for rendering notes in reports 2026-07-01 14:17:04 +00:00
Oliver Walters 856aa36dfd add docs 2026-07-01 14:06:10 +00:00
Oliver Walters e3afed719e Fix missing import 2026-07-01 14:01:09 +00:00
Oliver Walters 6fb4bdd206 Fix migrations 2026-07-01 13:57:02 +00:00
Oliver Walters 0db3dd5512 Merge commit '6865b0b6e6ed5464c25b4ccca7e3c523ce1876c5' into block-notes 2026-07-01 13:52:25 +00:00
Oliver 9594ba9a98 Display login errors to user (#12288)
* Improved error message extraction

* Updated playwright test
2026-07-01 22:39:49 +10:00
Oliver 609e5ee105 Check build complete (#12289)
* Display non-field errors in table field

* Refactor validation for build output completion

- Run validation BEFORE trying to complete (serializer validation)
- Refactor and simplify common code

* Adjust unit tests

* Fix typing

* Remove debug
2026-07-01 16:47:33 +10:00
Oliver 09f85aeae9 [UI] Tree select in form fields (#12217)
* Add TreeField component

* Add chevrons in dropdown menu

* Custom node rendering

* Add childIdentifier

* Ensure full value gets displayed

* Fix for search results

* Refactor old renderers

* Override field types

* use definition filters

* Better location validation messages

* Tweaks

* Fix unit test

* Include icon

* Fix playwright test

* Fix call to onValueChange

* Updated playwright tests

* Use pathstring in selectedLabel (if available)

* Mark structural nodes

* Retain selected value when dropdown open

* Add better placeholder values

* Simplify field selection
2026-06-30 22:59:04 +10:00
Oliver cc6dc60640 Merge branch 'master' into block-notes 2026-06-30 21:12:33 +10:00
Oliver 304c54530c Allow stock adjustment from "category" detail view (#12256) 2026-06-30 19:28:37 +10:00
Oliver fb280d80e7 Fix for STOCK_COUNT event (#12281)
* Fix for STOCK_COUNT event

- Prevent double emission of event type string

* adjust unit test
2026-06-30 18:54:35 +10:00
Oliver 6111aace1f [UI] Table field refactor (#12274)
* Use callback funcs

* Don't use idx to identify rows

* Add debug function for finding why a component re-rendered

* Do not pass 'control' through to each row

* Prevent unnecessary re-rendering of table rows

* Adjust order of operations for hooks

* Keep props hidden

* Use lightweight NumberInput

* Use NumberInput elsewhere

* Add comment

* use rowId instead of idx

* Generic row memos

* Compare errors too

* Fix for BomItemSubstituteRow

* Adjust more forms

* memoize quantity

* Memoize build lines

* Fix re-rendering issues for build allocation

* Fix for useConsumeBuildLinesForm

* Fix for transfer order table

* Fix useReceiveLineItems

* Remove memoized pattern

* Fix row keys

* Cleanup

* Create useStockItems hook for memoizing items

* Refactoring

* More refactoring

* Remove obj reference

- preventing shallow comparison from working

* Add error message to useWhyDidYouUpdate

* Cleanup

* Cleanup dead code

* Adjust modal width

* Change attr name

* Remove autoFillFilters prop

* Adjustments for serialized stock

* Fix typing

* Bump frontend version

* Adjustments for playwright testing

* Fix ref issue

* Remove debug entry

* Update CHANGELOG.md

* Reintroduce index to table header

* Refactor common component
2026-06-30 18:10:40 +10:00
Oliver 414aac0224 Fix stocktake bug for counting serialized items (#12280)
* Fix stocktake bug for counting serialized items

* Add unit test
2026-06-30 15:39:05 +10:00
Oliver 635ea8179e [UI] Fix 'available' display (#12279)
- Hide entirely for items not "in_stock"
2026-06-30 09:53:40 +10:00
Oliver f7e267cca8 Fix dashboard issue (#12275) 2026-06-30 00:44:25 +10:00
Oliver Walters f4963432f0 Merge commit '12825aa1f4f6b47fabc47dda980d74df50d7dad4' into block-notes 2026-06-29 12:57:29 +00:00
Oliver 12825aa1f4 [UI] Fix stock dates (#12272)
* [UI] Fix stock dates

- Display creation date
- Display stocktake date

* Switch to date type
2026-06-29 16:01:33 +10:00
Oliver 5b1a7db07f [UI] Table tweaks (#12271)
* [UI] Make part cell text copyable

* Reduce text size

* Reduce text size
2026-06-29 16:01:15 +10:00
Oliver 1da71ca3b9 [UI] Stock column fix (#12268)
* [UI] Fix StockColumn component

* stock table rendering tweaks
2026-06-27 11:29:40 +10:00
Oliver e847d96a88 Bug fix for exception handler (#12257) 2026-06-26 08:02:38 +10:00
Oliver b99b80957f [UI] Improve revision selector (#12254)
- Display upstream revisions too
2026-06-26 00:02:50 +10:00
Oliver 39b74c7e87 Skip "many" fields in DataExport (#12255)
- Exporting multi-dimensional datasets requires a custom exporter
2026-06-25 22:44:32 +10:00
Oliver Walters 1e6af4da57 Merge commit 'e5fa67ca9f021c14e9340619fe4a807f0c012ae2' into block-notes 2026-06-25 05:11:04 +00:00
Oliver e5fa67ca9f Project code active (#12250)
* Add 'active' field to the ProjectCode model

- Allows retiring of old project codes without deleting

* Update UI table

* Refactor ProjectCodeField

* Add unit test

* Bump API version and CHANGELOG
2026-06-25 14:26:53 +10:00
Oliver 3f36537391 Revert devcontainer to python 3.12 (#12249) 2026-06-25 12:23:44 +10:00
Oliver Walters e6b86fbae1 asfd 2026-06-25 02:22:03 +00:00
Oliver 44e42f34e4 Merge branch 'master' into block-notes 2026-06-24 22:13:08 +10:00
Oliver fa55917659 Update devcontainer Dockerfile (#12244)
- Update to python 3.14
- Fix base packages
2026-06-24 21:56:39 +10:00
Oliver 09f11a27d9 [report] Tweak datamatrix helper (#12240)
* [report] Tweak datamatrix helper

- Add support for "rectangular" display
- Support different image output formats

* Fix unit tests
2026-06-24 17:42:32 +10:00
Oliver 7e59c92422 1.5.0 (#12239)
* Add release entry for 1.4.0

* Add blank entry for 1.5.0

* Bump version to 1.5.0 dev
2026-06-24 13:53:58 +10:00
Oliver 74dc21b81c [bug] Allocated query fix (#12234)
* Fix BuildLineFilter.filter_allocated

- Required for mysql backend

* Spoecify output field
2026-06-24 12:49:43 +10:00
Oliver 75b27bd10a [UI] Tweak "order parts" wizard (#12236)
- Order supplier parts by "primary" value
- Attempt to auto-fill primary supplier part
2026-06-24 12:49:30 +10:00
Oliver 184ec37975 [UI] Tweak today color (#12235)
- Make "today" more obvious in calendar views
2026-06-24 12:49:19 +10:00
Oliver Walters a42217f17e Merge commit 'ec845c61cda2d9fd458906aef7e2871f7a09a188' into block-notes 2026-06-22 05:42:03 +00:00
Oliver 50577da65a Add meaningful message on CSRF failure (#12216)
* Add meaningful message on CSRF failure

* Add link to CSRF_FAILURE_VIEW

* Add unit test for new CSRF feedback
2026-06-20 23:49:36 +10:00
OliverandMatthias Mair f1a1f6f18a Agents (#12212)
* Add AGENTS project awareness

* Fix formatting

* Additional info

* Update AGENTS.md

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

* Update CLAUDE.md

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

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
2026-06-20 22:50:32 +10:00
Oliver 5eaac37303 Fix signup warning (#12213)
- Should only fire on an actual signup attempt
2026-06-20 20:13:14 +10:00
Oliver ca16e6ec0a Report locale updates (#12208)
* Optional 'locale' arg to format_money

- Allows override of system locale when generating reports

* Updated documentation

* Add unit tests

* Handle invalid locale

* Handle invalid locale

* Add new global setting to control currency locale in reports

* Use setting in reports

* Add CHANGELOG entry

* Further unit tests

* Add unit tests for new setting

* Update docs

* More docs

* Refactoring:

- Change REPORT_CURRENCY_LOCALE to REPORT_LOCALE

* Extend unit testing

* Refactor format_number

* Add unit tests for explicit format strings

* Update examples for format_date

* Updated unit  tests

* Cleanup unit tests

* Fix more tests

* Adjust wording

* Remove global setting - simplify code

* Simplify unit tests

* Revert 'min_digits' to 'leading'

* Fix docs

* Refactor the render_currency function

- Move all functionality into report.py

* Cleanup duplicate code

* Updated docs

* Allow user to specify date_format

* Add support for 'leading' digits in render_currency

* Bug fix

* Fix unit test

* Add tests for "include_symbol"
2026-06-20 11:00:12 +10:00
Oliver 6657000d89 [UI] Fix NewsWidget (#12205) 2026-06-19 17:18:59 +10:00
Oliver Walters ad8fbcf91b Merge commit '01fb74af254d29c5f58ee10e352c7e2bb13b23dc' into block-notes 2026-06-19 05:41:24 +00:00
Oliver 01fb74af25 [UI] Tree improvements (#12204)
* Hide expand icon for items without children

* Add searching to CategoryTree API

* Add "level" filter

* Automatically include parent tree when searching

* Include tree_id field

* Add search input to NavigationTree

* Add more API filters

* Load child nodes iteratively

* Fix dynamic loading of nodes

* Highlight selected item

* Include pathstring

* Fix insertion order

* Auto-expand to the selected ID

* Add "no results" message

* Refactor into generic components

* Expand to multi level

* Use async node loading functionality

* Add hovercard

* Implement same functionality for StockLocationTree API endpoint

* Adjust spacing

* Add connecting lines

* Add playwright test

* Bump API version

* Add CHANGELOG entry

* Update docs

* Update screenshot
2026-06-19 15:33:12 +10:00
Oliver Walters dfdba9a212 Merge commit '6285a11a6538d9a4ff86e68b8d4f0af614f607bf' into block-notes 2026-06-19 03:53:37 +00:00
Oliver f70d3e68d8 [UI] Fix status renderer functions (#12202)
Broken in recent refactor
2026-06-19 10:45:11 +10:00
Oliver 29b8ed91d2 [API] Adjust permissions for machine restart (#12197)
* [API] Adjust permissions for machine restart

Can only be actioned by a staff user

* Fix import

* Wrong class

* Extend unit test

* Bump API version

* Update CHANGELOG
2026-06-18 22:18:14 +10:00
Oliver 5b97acb79f [bug] Fix double save (#12194)
* Prevent double-save when creating an order

* Prevent double-save for BuildOrder

* More fixes

* Additional unit tests

* Revert code, remove create method against StockTrackingList

* Fix mixins
2026-06-18 20:18:46 +10:00
Oliver 2ca86808bb Fix order event name (#12196) 2026-06-18 20:00:18 +10:00
Oliver fc15f30f8f Report Generation Updates (#12187)
* Fix for TemplateEditor

- Allow dragging of split section

* Cleaner report template code

* Pass correct error message through

* Prevent multiple retries if running in worker thread

* Handle report merge error

* Add playwright tests for broken report printing

* Reduce scope for exception messages

* Reduce comment deltas

* Adjust unit test

* Raise ValidaitonError

* Handle message parsing

* Additional comment

* Fix unit tests
2026-06-18 13:41:44 +10:00
Oliver 4b29032c6e System Health Checks (#12193)
* Add worker health check invoke task

* Increase frequency of heartbeat task

* Adjust default threshold for worker health check

* Add server_health invoke func
2026-06-18 12:46:46 +10:00
Oliver Walters cec678f88b Merge commit '9e125be07e94e0997ce03fd905673c44aad81c00' into block-notes 2026-06-18 01:05:06 +00:00
Oliver Walters 7b7cf8ed01 Merge branch 'block-notes' of github.com:SchrodingersGat/InvenTree into block-notes 2026-06-17 05:52:59 +00:00
Oliver Walters edaf810514 Merge commit '546958a1cb02125b96365e7fedda75610fed46ec' into block-notes 2026-06-17 05:49:45 +00:00
Oliver 546958a1cb [UI] Additional table filters (#12186) 2026-06-17 15:02:07 +10:00
Oliver 38008d8204 Mysql filter fix (#12185)
* Improve "available" filter for BuildLine API endpoint

* Fix typo

* Additional unit tests

* Additional playwright tests
2026-06-17 14:50:17 +10:00
Oliver a670eabd10 [import] specify fk lookup field (#12180)
* Raise error on multiple matches

* add new field to handle lookup_field selection

* Add unit tests

* Update frontend

* Bump API version

* Ensure string-iness of lookup field
2026-06-17 11:03:26 +10:00
Oliver 33b7d60d8e Merge branch 'master' into block-notes 2026-06-17 10:51:19 +10:00
Oliver a8e5c83a94 Stocktake exporter updates (#12179)
* Optionally exclude zero-stock entries

* Add more columns to exported dataset

* Adjust unit test

* More test fixes
2026-06-16 14:14:51 +10:00
Oliver b6bf053c5a Merge branch 'master' into block-notes 2026-06-16 12:08:10 +10:00
Oliver Walters 20970d9604 Merge commit '5c95dfe484b0e01b8a3f95e7413f0f6f71cdc3cd' into block-notes 2026-06-16 00:01:49 +00:00
Oliver 6c18e64020 Permissions fix (#12168)
* Tighten API permissions

- Require authenticated user for NotFoundView
- Hide 'active_plugins' behind is_authenticated

* Patch permissions hole in GlobalSettingsPermissions

* Additional API unit tests

* Require auth for observability endpoint

* Add explicit permission for PluginAdminDetail

* Bump API version

* Update unit tests

* Revert changes
2026-06-15 22:06:49 +10:00
Oliver 3c17367e3c Data import permissions (#12169)
* Update data importer child permissions

- Row data
- Column data

* Add unit tests

* Cleanup session data after import is completed

* Further scope narrowing
2026-06-15 21:03:44 +10:00
Oliver Walters d7efe02475 Merge commit 'd951638e75b4b6fd8dce07ea71ac11bf3ba20a9f' into block-notes 2026-06-15 10:59:16 +00:00
Oliver aece90512c [UI] Edit cat param (#12166)
* Refactor form hook components

* Reset values when opening form

* Rebuild form field
2026-06-15 20:07:40 +10:00
Oliver d951638e75 Part category parameters (#12165)
* Add parameter support for PartCategory

* Update frontend

* Bump API version

* Update CHANGELOG
2026-06-15 18:49:01 +10:00
Oliver Walters 54da8ea81e Merge commit '0b5db2f16a9dee9a6127c9757cc7f843dbe45f57' into block-notes 2026-06-14 11:27:47 +00:00
Oliver 0b5db2f16a Suppress dulwich warnings (#12163)
- Prevent erroneous dulwich warning messages
2026-06-14 18:20:57 +10:00
Oliver 6638dba0b9 SelectionList Updates (#12139)
* Adjust panel layout

* edit list on click

* Optionally fetch selection list items

* Display in DetailDrawer

* Fix component locations

* Refactor entry table

* Add new entry

* Disable if locked

* Only validate choices if provided via API

* Mark "choices" as read-only

* Prevent delete of locked items

* Add more API unit tests

* Bump API version

* Adjust unit tests

* Default include choices

* Updated playwright test

* Improve test robustness
2026-06-14 12:12:15 +10:00
Oliver 2b4f303770 Improve security posture of PDF reporting (#12160)
* Add custom URL fetcher for PDF rendering

* Fix for report helper functions

* Use new fetcher

* Additional unit tests

* Add new setting to control remote URL fetching

* validate URLs against SSRF

* Add global setting to disable URL fetching entirely

* Update docs

* Fix capitalization

* Fix logging backend

* Update CHANGELOG
2026-06-14 10:55:51 +10:00
Oliver b294bba66b [UI] Calendar Updates (#12161)
* Adjust delay values

* Add extra info to tooltip

* Additional padding

* Adjust padding for scrollbar

* Adjust month title as calendar scrolls
2026-06-14 10:52:22 +10:00
Oliver Walters dff26b92a7 Fix button-within-button 2026-06-14 00:49:49 +00:00
Oliver Walters cc36bfb8e4 Render Note instance in forms 2026-06-14 00:48:05 +00:00
Oliver Walters b06f47815d Fix for NotesEditor 2026-06-14 00:35:08 +00:00
Oliver Walters 9a386428ba Frontend updates 2026-06-13 13:11:17 +00:00
Oliver Walters e31a242238 Adjust migrations 2026-06-13 11:37:06 +00:00
Oliver Walters cf43ff37a9 Add "template" field to Note model 2026-06-13 11:26:13 +00:00
Oliver Walters f5ca46e61b Fix double-save 2026-06-13 11:08:49 +00:00
Oliver Walters fdef49c25e Make save method atomic 2026-06-13 11:08:13 +00:00
Oliver Walters 5b18401684 Fix note duplication 2026-06-13 11:04:11 +00:00
Oliver Walters f0cb694685 Fix content mixin 2026-06-13 11:03:12 +00:00