Commit Graph
100 Commits
Author SHA1 Message Date
Matthias Mair 75bf3378e6 fix style issues 2024-05-01 17:10:29 +02:00
Matthias Mair 2616cb091a fix usage of ColorScheme 2024-05-01 16:11:05 +02:00
Matthias Mair fbdb0cf1d9 fix color schema usage 2024-05-01 16:03:01 +02:00
Matthias Mair a409cfd75a remove placeholders 2024-05-01 15:55:00 +02:00
Matthias Mair 6332de8d70 fix merge issues 2024-05-01 15:47:27 +02:00
Matthias Mair 9ef1ae4c59 Merge branch 'master' of https://github.com/inventree/InvenTree into pui-maintine-v7 2024-04-30 12:44:53 +02:00
Matthias MairandGitHub 7e9d2f79ab [PUI] More style fixes (#7142)
* fix interface names

* use Readonly for props

* fix typescript:S3863

* require hashes in package installer too
2024-04-30 19:24:52 +10:00
Matthias MairandGitHub 1ef9512f18 [PUI] Add more table tests (#7143)
* expand part tests

* add stock item tests
2024-04-30 09:59:16 +10:00
Matthias Mair 11ea00259b Merge branch 'master' of https://github.com/inventree/InvenTree into pui-maintine-v7 2024-04-30 00:53:20 +02:00
Matthias MairandGitHub 0c573d733d mark uneffected vuln (#7135) 2024-04-29 22:23:07 +10:00
a205fd5967 Fixes to make compatible with Python 3.12 (#7112)
* Remove use of deprecated imp.load_source

The entire `imp` module has been removed from Python 3.12. This patch applies the recommended replacement using `importlib`.

* Fix usage of from importlib.metadata.entry_points to work with newer importlib & Python 3.12

* Update registry.py

Fix order of imports

* Use importlib.util.module_from_spec() instead of deprecated load_module()

* auto-fixed import style (isort)

* enable py 12

* run coverage for lower and upper bound

* fix style error

* make import conditional

* fix?

* fix env

* style fix

* only use new loader on 3.12

* fix order

* fix module loading

* reimplement assertDictContainsSubset

* remove old testing alias

---------

Co-authored-by: Thea Flowers <thea@winterbloom.com>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-04-29 20:59:24 +10:00
Matthias MairandGitHub 3f879f047d Add ukrainian as a language option (#7129)
* Add ukrainian as a language option

* change lang code

* add dts
2024-04-29 16:37:53 +10:00
Matthias MairandGitHub 0f501177cd [FR] Increase Length of URL limit on import (#7119)
Fixes #7118
2024-04-29 16:06:05 +10:00
Matthias MairandGitHub 83191d3fbf Improve reproduciblity of image (#7120)
* hard-pin doc requirements

* update docs and commands

* hard pin container requirements

* check hashes in image build

* remove seperate uv install (is in base_requirements)

* containers already ships 3.11 - adjust packaging

* move build deps to general ci requirements

* install yarn using native tools

Closes https://github.com/inventree/InvenTree/security/code-scanning/95
Closes https://github.com/inventree/InvenTree/security/code-scanning/96

* merge install steps

* adapt install command args to be similar

* adapt docs to suggest safer install arg

* fix install path

* update dependabot settings
2024-04-29 11:04:45 +10:00
Matthias MairandGitHub d728b11655 Small style fixes (#7117)
* small style fixes

* fix typescript:S1854

* remove unused function handleCellClick

* disable cov
2024-04-29 08:19:05 +10:00
Matthias MairandGitHub b711291beb CI: Add pre-commit hook to use modern testing asserts (#7126)
* Add test to ensure modern testing syntax is used

* auto-fixes for testing formats

* remove usage of depreceated assertDictContainsSubset
2024-04-29 08:17:54 +10:00
Matthias MairandGitHub d2827df3b8 fix ci filters (#7121) 2024-04-27 10:51:42 +10:00
Matthias MairandGitHub b5b0ff2666 [PUI] Test for errors in console (#7114)
* ensure no errors are thrown in the console

* fix key issue

* add missing keys

* fix table order

* fix wrong imports

* add missing key

* fix accessor ref

* fix style

* mark internal fetching errors and ignore them

* do not raise internal errors

* ignore barcode api calls

* style fix

* do not raise on chrome errors

* refactor url

* more exclusion

* remove duplicate assertation
2024-04-25 19:26:04 +10:00
Matthias MairandGitHub 5f54aef79a [PUI] Test modals (#7113)
* add spotlight

* [PUI] Quick commands pallet
Fixes #5888

* add testing for new commands

* add text input testing

* only test backend if code changed

* add trans files

* fix testing text

* always push coverage

* add nav state to manage navigation state

* add navigation action and test

* make test faster

* fix typo

* use texts instead

* fix tests for linux

* use var to determine action key

* Revert "use texts instead"

This reverts commit 7771189556.

* add wait for input

* split out keyboard based tests

* split ou test

* add upload

* revert assert change

* adjust reporting settings

* ignore error code

* fix reporter config

* add full info suit (+tests)

* make tests more accurate

* license modal fixes

* unify icons

* add custom actions registering
with removal on page refresh

* only upload report data if the tests failed

* Revert "add trans files"

This reverts commit 28d96e058f.

* adjust url that iw waited for

* try an await and body locator for keypresses

* test registering addition actions

* extend testing for actions

* add doclink and test

* merge tests

* add modals test

* use quick login

* reduce diff

* fix test

* open packages too

* expand to frontend

* rnsure keys are unique

* ensure no errors in console

* add QR code modal too
2024-04-24 09:59:03 +10:00
37956db5fc Add PUI info banner to CUI (#7097)
* add intrestials to CUI

* Add intrestial to report settings

* add option to docs

* rename to banner
Fixes #6554

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>

* change name

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-04-23 21:05:48 +10:00
Matthias Mair c7ea17d6f5 Merge branch 'master' of https://github.com/inventree/InvenTree into pui-maintine-v7 2024-04-23 12:45:58 +02:00
Matthias MairandGitHub 938c724395 Pin hashes in requirements (#7081)
* use global pin for requests

* unify on yaml for workflo files

* format workflow files

* pin action versions

* fix pinned version

* use system venv

* switch args

* remove uv for now and add setting for pyyaml

* use requirements file

* also switch on docker flow

* generate hashes

* added hashes to reqs

* add hashes for CI too

* add hash checking

* require hashes everywhere possible

* require hashes where possible in docker
2024-04-23 17:15:52 +10:00
Matthias MairandGitHub a8e560a482 bump pre-commit versions (#7082) 2024-04-23 08:24:52 +10:00
Matthias MairandGitHub 86597ce717 [PUI] Add playground / pricing tests (#7057)
* Only render categories in overview if there is data
Red #7025

* add option to disable accordions

* remove unneeded log

* make optional

* add disabled state to panels

* add missing panels to overview

* use enum for refs

* add quickjump anchors

* use navigation function instaed

* make links more distinguishable

* fix type

* format ticks using currency

* add tooltip formatter

* fix type

* add pricing tests

* move test

* add more playground tests

* use plattform for logins

* add id for chart for easier testing

* test hover state and bom pricing details

* test linked rows works

* disable flaky test

* cleanup tests

* adjust test assumptions to dataset

* fix test

* remove second test stage

* remove unnecessary step

* open up tab instaed of checking for it

* add test for Dashboard

* add Supplier Pricing test

* add internal pricing test

* added variant pricing test

* add test for Purchase History

* make sure button is enabled

* remove submit

* remove timeout
going back to default 30s

* make less ambigious

* reintroduce higher timeout

* change url back

* Revert "change url back"

This reverts commit 9d20d2a86e.

* fix test

* just use cancel

* revert url change

* remove timeput

* use PUI URL - baseUrl is pointing to CUI

* fix url for testin

* reintroduce options

* use default url

* disable non working test for now

* run in debug mode

* use PUI for testing to actually get coverage
2024-04-23 08:24:34 +10:00
Matthias MairandGitHub 2e0b197457 Group dependabot PRs per ecosystem (#7098) 2024-04-23 08:19:26 +10:00
Matthias MairandGitHub b02b6b2bba Add contenttype model to API (#7079)
* Add contenttype APIs

* add plugin and id identifier

* resolve via modelname

* bump API version

* differentiate model view ids

* add API test

* remove unneeded response
2024-04-23 08:05:43 +10:00
Matthias Mair 1b0998681a fix btn style 2024-04-21 23:11:43 +02:00
Matthias Mair d0f4818101 Merge branch 'master' of https://github.com/inventree/InvenTree into pui-maintine-v7 2024-04-21 22:59:16 +02:00
Matthias MairandGitHub ca03562d25 [CI] Small nitpick changes (#7016)
* use global pin for requests

* unify on yaml for workflo files

* format workflow files

* pin action versions

* fix pinned version

* use system venv

* switch args

* remove uv for now and add setting for pyyaml

* fix qc args

* bix doc paths
2024-04-21 22:20:13 +10:00
Matthias Mair 05dd625208 fix up test 2024-04-17 19:52:48 +02:00
Matthias Mair ebf1ce81fd Merge branch 'master' of https://github.com/inventree/InvenTree into pui-maintine-v7 2024-04-17 14:06:39 +02:00
Matthias MairandGitHub 500f63d2c0 [PUI] Add quick login via url (#7022)
* add login with URL params

* use login function for faster tests

* reduce timeout possiblities in job

* remove unused imports

* remove debug
2024-04-17 16:21:19 +10:00
Matthias MairandGitHub 9435a4c3fd [PUI] Pricing UX improvements (#7053)
* Only render categories in overview if there is data
Red #7025

* add option to disable accordions

* remove unneeded log

* make optional

* add disabled state to panels

* add missing panels to overview

* use enum for refs

* add quickjump anchors

* use navigation function instaed

* make links more distinguishable

* fix type

* format ticks using currency

* add tooltip formatter
2024-04-17 09:52:14 +10:00
Matthias Mair 8d8bb687ca Merge branch 'master' of https://github.com/inventree/InvenTree into pui-maintine-v7 2024-04-16 20:08:24 +02:00
Matthias Mair 533fd1e33e dummy change 2024-04-16 13:16:15 +02:00
Matthias Mair f70b9819f5 fix new code to v7 style 2024-04-16 07:59:59 +02:00
Matthias Mair 9ba8da013c update packages 2024-04-16 07:59:42 +02:00
Matthias Mair 48da03b904 Merge branch 'master' of https://github.com/inventree/InvenTree into pui-maintine-v7 2024-04-16 07:38:18 +02:00
Matthias Mair ec2ecbe8f6 fix missing key issue in badge section 2024-04-16 07:37:24 +02:00
Matthias Mair 7f72842d73 fix missing keys 2024-04-16 07:34:09 +02:00
Matthias Mair 8d80bba120 fix import 2024-04-16 00:45:03 +02:00
Matthias Mair f05b4876f2 add keys to badges 2024-04-16 00:33:03 +02:00
Matthias Mair fce7a3e086 make sure license keys are unique 2024-04-16 00:24:59 +02:00
Matthias Mair ad2d07cfe6 move language context around 2024-04-16 00:23:33 +02:00
Matthias Mair fbe612cc56 organize imports 2024-04-16 00:10:11 +02:00
Matthias Mair 61342a8903 fix missing nesting 2024-04-15 23:57:41 +02:00
Matthias Mair cf564becd9 add missing style for datatables 2024-04-15 23:57:20 +02:00
Matthias Mair 3f49c3ad97 update package refs 2024-04-15 23:49:51 +02:00
Matthias Mair 100459a66a increase timeouts 2024-04-15 23:35:26 +02:00
Matthias Mair 6d50d09d16 fix color schema switcher 2024-04-15 22:41:23 +02:00
Matthias Mair 0cf5fcfe3d fix missing theming 2024-04-15 22:11:54 +02:00
Matthias Mair cdd9d30091 make test less flaky 2024-04-15 21:39:06 +02:00
Matthias Mair 531a5914cb reorder contexts 2024-04-15 21:33:02 +02:00
Matthias Mair d5eb0bf659 move context to loadable 2024-04-15 21:31:46 +02:00
Matthias Mair fed2cecafb add notification style 2024-04-15 21:27:27 +02:00
Matthias Mair 47b858431f import cleanups 2024-04-15 21:23:48 +02:00
Matthias Mair 641310494e add new type 2024-04-15 21:15:14 +02:00
Matthias Mair 5703eb535c remove unneeded imports 2024-04-15 21:13:34 +02:00
Matthias Mair 48e224672a fix group aligment 2024-04-15 20:52:24 +02:00
Matthias Mair f8c055bf4e fix building 2024-04-15 20:45:46 +02:00
Matthias Mair 0e0ac2df09 fix new code to v7 2024-04-15 20:22:14 +02:00
Matthias Mair e3e61228aa package fix 2024-04-15 20:14:41 +02:00
Matthias Mair 0ba5b66938 Merge branch 'master' of https://github.com/inventree/InvenTree into pui-maintine-v7 2024-04-15 20:14:07 +02:00
Matthias Mair c2ee0ac728 adjust test to new spotlight 2024-04-15 20:10:49 +02:00
Matthias Mair bf32bd5246 fix test 2024-04-15 19:36:58 +02:00
Matthias Mair 63f043ce87 fix name 2024-04-15 19:36:47 +02:00
Matthias Mair 1bf9725733 change ActionIcons back to default 2024-04-15 19:12:51 +02:00
Matthias Mair c71dad6c37 dumb spotlight down 2024-04-15 18:58:51 +02:00
Matthias Mair 80bec8617b fix spotlight 2024-04-15 18:40:33 +02:00
Matthias Mair f9ff5e611d set text args 2024-04-15 17:21:14 +02:00
Matthias Mair 52a463634c update to new style 2024-04-15 17:16:36 +02:00
Matthias Mair 364052b8bc bug fix 2024-04-15 17:10:39 +02:00
Matthias Mair 40af17e08f misc fixes 2024-04-15 14:00:12 +02:00
Matthias Mair 78243027b2 fix selects 2024-04-15 13:45:16 +02:00
Matthias Mair 087100a9d0 fix type 2024-04-15 13:32:53 +02:00
Matthias Mair fb029e67f1 misc fixes 2024-04-15 13:23:33 +02:00
Matthias Mair d0a86f7d5e misc fixes 2024-04-15 12:44:01 +02:00
Matthias Mair 8d352168e6 fix theme refs 2024-04-15 12:38:53 +02:00
Matthias Mair c9b1d44c28 fix types 2024-04-15 12:33:26 +02:00
Matthias Mair a3da256724 switch sx to style 2024-04-15 12:25:03 +02:00
Matthias Mair 5245b1ee56 fix italic 2024-04-15 12:19:21 +02:00
Matthias Mair 3e5a31d6bc fix more arg renames 2024-04-15 12:09:19 +02:00
Matthias Mair e43befc2cc adapt arg names 2024-04-15 10:04:03 +02:00
Matthias Mair bd60b01a88 update args 2024-04-15 02:13:15 +02:00
Matthias Mair b34ebd8557 fix spotlight 2024-04-15 01:53:38 +02:00
Matthias Mair 8f3dac7f16 fix imports 2024-04-15 01:51:42 +02:00
Matthias Mair bcb0806d4f reformat global state 2024-04-15 01:29:56 +02:00
Matthias Mair 6b83a376f5 add basic theme 2024-04-15 01:12:06 +02:00
Matthias Mair 8e41ddc53a add vanilla extract 2024-04-15 01:04:24 +02:00
Matthias Mair a00eed2451 adapt theme context 2024-04-15 00:45:06 +02:00
Matthias Mair f5d12b8155 upgrade all deps 2024-04-15 00:26:12 +02:00
Matthias Mair 2fc8158f6f bump deps 2024-04-15 00:04:02 +02:00
Matthias MairandGitHub f15a3009bb [PUI] Add more tests (#7010)
* add coverage to PUI

* fix testing command

* always do all steps

* fix test assumptions

* add test for serving and logging into pui from django / cui tech stack

* fix up coverage

* fix intentation

* remove paralell flags

* remove coverage finish step

* remove flag

* change names

* add full clickdown test

* more tests

* more tests

* sprinkle in some timeouts

* try using admin

* disable page 1 tests for now

* remove additional tests for now

* only build sourcemaps if coverage is enabled

* fix sourcemap assumption

* add more tests

* fix test

* Update package.json

* move tests to seperate file

* rename test files

* move defaults to seperate file

* centralise user creds

* lower migration level

* re-add page 1

* rename and split tests

* split out problematic test

* Add thumbnail building step

* remove unneded steps

* fix filename

* add more logging

* add sourounding table

* add missing tabs

* wait instead of click

* fix test

* split tests out more

* disable test for stock

* tes part sub-pages

* split tests more

* add company tests

* more sales testing

* split parts testing

* Add test for settings + admin center
2024-04-14 20:24:22 +10:00
Matthias MairandGitHub a86cb3e804 JS translation syntax error (stock-badge in search window) (#7013)
Fixes #7011
2024-04-13 07:26:28 +10:00
Matthias MairandGitHub 3467af361c [PUI] Mobile ignore warning in dev (#7009)
* enable overwrite of mobileView warning

* only show exception on dev
2024-04-13 07:25:31 +10:00
Matthias MairandGitHub cbbdb70762 [PUI] Quick commands pallet (#6987)
* add spotlight

* [PUI] Quick commands pallet
Fixes #5888

* add testing for new commands

* add text input testing

* only test backend if code changed

* add trans files

* fix testing text

* always push coverage

* add nav state to manage navigation state

* add navigation action and test

* make test faster

* fix typo

* use texts instead

* fix tests for linux

* use var to determine action key

* Revert "use texts instead"

This reverts commit 7771189556.

* add wait for input

* split out keyboard based tests

* split ou test

* add upload

* revert assert change

* adjust reporting settings

* ignore error code

* fix reporter config

* add full info suit (+tests)

* make tests more accurate

* license modal fixes

* unify icons

* add custom actions registering
with removal on page refresh

* only upload report data if the tests failed

* Revert "add trans files"

This reverts commit 28d96e058f.

* adjust url that iw waited for

* try an await and body locator for keypresses

* test registering addition actions

* extend testing for actions

* add doclink and test

* merge tests
2024-04-12 08:20:00 +10:00
Matthias MairandGitHub 6b858f777b [CI] Increase migration test coverage (#6995)
* also trigger CI on changes to test files

* dummy change to test file

* fix match pattern
2024-04-11 10:11:12 +10:00
Matthias MairandGitHub 1e0382c719 [PUI] Fix licensing dialog (#6993)
* make licensing dialog more failure tolerant

* add error text if no info can be parsed

* Update LicenseModal.tsx

fix copy
co-author: @SchrodingersGat
2024-04-11 01:00:48 +10:00
Matthias MairandGitHub 0d59f6e8a9 [CI] Re-add playwright reporting (#6992)
* re-add playwright reporting
now a bit more ressource optimised

* only upload if the tests faild
2024-04-11 01:00:30 +10:00
Matthias MairandGitHub 80475c57b2 [CI] Optimize runs (#6991)
* only run backend if required

* alwass upload coverage
2024-04-10 18:45:57 +10:00