Commit Graph
100 Commits
Author SHA1 Message Date
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
Matthias MairandGitHub 77c8a9d255 [PUI] Move buttons form components (#6988)
* move buttons

* fix import
2024-04-10 08:56:19 +10:00
Matthias MairandGitHub 8d41234ef7 Use xml for coverage info (#6947)
* append more apps

* set source

* use labels to force full CI suit

* always check for label

* use newer syntax

* remove unneeded carryforward flag

* improve action names

* remove unused upload steps

* enable discovery of locate test

* remove wrong module

* delete all ( :-) )lines for upload

* remove init for now

* add carryfoward back in again

* disable flaky test

* always run finsh step

* deactivate machine test for now

* specify refs explicitly

* add docker exception

* use xml for coverage info

* dummy fix

* remove dummy fix

* dummy change

* always export

* change path to ensure basepath is submitted

* add more paths

* reverst isort change

* remove unused html export

* remove paralell

* add plain InvenTree too

* Update pyproject.toml

* reset paths

* Update qc_checks.yaml

* Update qc_checks.yaml

* fix coverage runner setting

* fix coverage tool path

* use move, not copy

* ignore tmp

* reset isort settings

* use relative files for reporting

* Revert "use relative files for reporting"

This reverts commit 1f662bfb97.

* only run after at least 1 succeeds

* add TODO

* remove coverage subdir run

* also force migrations

* add coverage to migrations

* fix conditional for migration force check

* always upload coverage

* disable flaky test

* fix tests

* wait for migrations

* re-add function arg?

* adjust coverage targets

* add no-cov for fixes of flaky tests

* remove dummy

* revert to "old" upload method"
2024-04-09 10:33:27 +10:00
Matthias MairandGitHub 4adce85ef9 Fix test coverage (#6945)
* append more apps

* set source

* use labels to force full CI suit

* always check for label

* use newer syntax

* remove unneeded carryforward flag

* improve action names

* remove unused upload steps

* enable discovery of locate test

* remove wrong module

* delete all ( :-) )lines for upload

* remove init for now

* add carryfoward back in again

* disable flaky test

* always run finsh step

* deactivate machine test for now

* specify refs explicitly

* add docker exception

* remove paralell

* Update qc_checks.yaml

* Update qc_checks.yaml

* fix coverage tool path

* use move, not copy

* ignore tmp

* only run after at least 1 succeeds

* add TODO

* remove coverage subdir run

* also force migrations

* add coverage to migrations

* fix conditional for migration force check

* always upload coverage

* fix tests

* wait for migrations

* re-add function arg?

* adjust coverage targets

* add no-cov for fixes of flaky tests

* add migration checks to codecov
2024-04-08 21:55:03 +10:00
Matthias MairandGitHub cc045bcc70 Add codecov (#6967)
* add codecov upload

* add to readme

* add flags

* dummy change

* dummy change

* switch to inventree org

* add codecov yaml

* lower threshold (for now)
see https://github.com/inventree/InvenTree/pull/6945 for a possibility to get it up again
2024-04-08 07:33:26 +10:00
Matthias MairandGitHub 3b87c84ae7 [BUG] Include .vite subdir in PUI releases (#6973)
* use yarn to build

* use different path annotation

* fix path

* include vite explicitly
2024-04-08 06:50:10 +10:00
Matthias MairandGitHub 94478a5fb2 Bump dependencies (#6969)
* update pre-commit versions

* bump dependencies

* dummy changes

* update frontend dependencies

* remove dummy changes
2024-04-07 12:01:42 +10:00
Matthias MairandGitHub 3457eebf5c Use pinned eslint version (#6968)
* pin eslint version

* use subdir instead

* move eslint
2024-04-06 14:27:13 +11:00
Matthias MairandGitHub 6bff55d620 Tests: remove dead paths in test files (#6965)
* remove dead paths

* disable cov on fix for flaky tests

* remove dead path

* remove coverage from faliover path

* style fixes

* remove unused path

* cleanup

* ignore failure state for coverage

* reduce function complexity

* style fix

* more style fixes

* Revert "remove dead paths"

This reverts commit e6618d1925.

* improve error message
2024-04-06 08:33:52 +11:00
fddcb629b6 [PUI] Add licenses texts to PUI (#6855)
* compile a license texts bundle

* add backend license extraction on install

* change path for licenses

* add to gitignore

* Add api to expose license paths

* add texts

* add frontend rendering of licensing files

* Handle errors when fetching license information

* Format backend packages.txt in json

* Improved API rendering:

- Handle file errors
- Render as JSON object

* Improve frontend modal rendering

- Separate frontend / backend into tabs
- Split packages into accordion

* Generate JSON file for fronten deps

* Fix rendering for frontend deps

* Update src/frontend/src/components/modals/LicenseModal.tsx

Co-authored-by: Lukas <76838159+wolflu05@users.noreply.github.com>

* Update src/frontend/src/components/modals/LicenseModal.tsx

Co-authored-by: Lukas <76838159+wolflu05@users.noreply.github.com>

* make reading of licenses objects dynamic

* remove unsued import

* style fixes

* style fixes

* default to first value

* use new syntax to call docker compose

* merge fix

* fix path

* Roll back #6942

* Update qc_checks.yaml

Run migration checks when requirements file changes

---------

Co-authored-by: Oliver Walters <oliver.henry.walters@gmail.com>
Co-authored-by: Lukas <76838159+wolflu05@users.noreply.github.com>
2024-04-04 10:31:20 +11:00
Matthias MairandGitHub 7cbf99bea7 Fix locate plugin testing (#6946)
* cover locate again

* add activation sequence
2024-04-04 09:08:56 +11:00
Matthias MairandGitHub 7b77fd31a7 Cleanups for refactor (#6933)
* adjust depandabot targets and interval

* add git blame ignore to make git diff more useable

* adjust test path

* fix ci path
2024-04-03 19:59:02 +11:00
f58eacf64e [PUI] Add coverage testing (#6881)
* 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

* Update .github/workflows/qc_checks.yaml

Co-authored-by: Lukas <76838159+wolflu05@users.noreply.github.com>

* fix package.json

* add finish step

---------

Co-authored-by: Lukas <76838159+wolflu05@users.noreply.github.com>
2024-04-03 19:26:38 +11:00
Matthias MairandGitHub 85e672831b Some small style fixes (#6916)
* fix dockerfile syntax

* remove unused import

* Merge unnecessary if statements

* fix PUI package name

* remove unused vars

* Remove unneeded pass

* merge if to reduce likelyhood of future errors

* add ignroe script to secure against shell scripts

* fix possible collisions

* export strings

* fix types
2024-04-03 19:26:03 +11:00
Matthias MairGitHubdeepsource-io[bot] <42547082+deepsource-io[bot]@users.noreply.github.com>deepsource-io[bot] <42547082+deepsource-io[bot]@users.noreply.github.com>Oliver
0bace3f3af Code structure refactor (#5582)
* moved docker files to /contrib/container

* changed code owners to make more precise

* updated CI to use new subdirs

* added manual trigger for testing

* moved ci files

* moved assets into subdir

* moved deploy template file to contrib

* moved django files to src/backend

* updated paths in scripts etc

* updated reqs path

* fixed version file path

* fixed flake8 path

* fixed path to node ressources

* fixed task paths

* added dep path for node

* removed unused yarn lockfile

* removed unused ci script

* updated internal backend paths for tasks

* updated translation stats path

* fixed source path for coverage

* fixed main commit repo path

* fit in changes from testing

* gather packager improvements (#149)

* Matmair/issue5578 (#143)

* moved docker files to /contrib/container

* changed code owners to make more precise

* updated CI to use new subdirs

* added manual trigger for testing

* moved ci files

* moved assets into subdir

* moved deploy template file to contrib

* moved django files to src/backend

* updated paths in scripts etc

* updated reqs path

* fixed version file path

* fixed flake8 path

* fixed path to node ressources

* fixed task paths

* added dep path for node

* removed unused yarn lockfile

* removed unused ci script

* updated internal backend paths for tasks

* updated translation stats path

* fixed source path for coverage

* fixed main commit repo path

* fix docker path

* use project dir

* move project dir command

* fixed docker paths

* another fix?

* seperate tasks out

* remove tasks

* some debugging

* ci: add .deepsource.toml

* Update .deepsource.toml

* also ignore migrations

* more debugging

* fix path issues

* remove debug script

* fix style

* change locale path

* Fixed paths for requirements

* Added dummy requirements to fool packager

* fixed exec path

* remove deepsource

---------

Co-authored-by: deepsource-io[bot] <42547082+deepsource-io[bot]@users.noreply.github.com>

* Added docs for file structure

* Fixed style errors

* updated deepsource paths

* fix deepsource paths

* fixed reqs

* merge fixes

* move newly added dirs too

* fix reqs files

* another dep fix

* merge upstream/master

* revert removal of tags

* merge upstream

* enabled detection of old config files

* adapt coverage src

* also detect and support old location for plugins.txt

* style fix

* fix ~/init.sh location

* fix requirements path

* fix config to current master

* move new folders

* fix import order

* fix paths for qc_check

* fix docs build

* fix fix path

* set docker project dir

* just use a cd

* set image path?

* set file correct

* fix copy path

* fix tasks dir

* fix init path

* fix copy path

* set prject dir

* fix paths

* remove old prod files

* fix dev env path

* set docker file

* Fix devcontainer docker compose file

* fix login attempt values

* fix init.sh path

* Fix pathing for Docker

* Docker build fix

- Set INVENTREE_BACKEND_DIR separately

* Update init.sh

* Fix path

* Update requirements.txt

* merge

* fix rq merge

* fix docker compose usage

---------

Co-authored-by: deepsource-io[bot] <42547082+deepsource-io[bot]@users.noreply.github.com>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-04-03 12:16:59 +11:00
Matthias MairandGitHub 50a4f74d7e Delete .sonarcloud.properties (#6918)
Moved settings to cloud
2024-04-02 19:42:01 +11:00
Matthias MairandGitHub 2591df3b11 Set write permission on specific job (#6915)
* set wirte permission on specific job

* only allow read
2024-04-02 17:35:32 +11:00
Matthias MairandGitHub 4db61df8cd Security improvements (#6890)
* Set write permissions at job level

* publish scorecard results

* Update scorecard.yml

* Update scorecard.yml

* Create .sonarcloud.properties

* Delete .deepsource.toml

* replace badge

* pin requests, pyyaml, jc

* pin yarn version

* pin uv

* reduce settings

* set test path
2024-04-02 17:35:01 +11:00
Matthias MairandGitHub 34e86bfbeb Add current deployment methods to bug template (#6893) 2024-03-30 08:48:17 +11:00
Matthias MairandGitHub 785b3b0e68 fix translation permissions to workflow (#6865) 2024-03-27 09:47:38 +11:00
Matthias MairandGitHub 4cefbe5171 bump upload to v4 to ensure schema-push still works (#6837) 2024-03-25 11:40:04 +11:00
Matthias MairandGitHub 1553c43080 Document security measures (#6812)
* add security commitment

* fix badge path

* set token permissions
see https://github.com/inventree/InvenTree/security/code-scanning/48

* add more chapters

* break up flow text

* spellchecking

* Revert "set token permissions"

This reverts commit 6deb33000f.

* Add pattern for social media providers restrictive APIs
2024-03-25 09:12:49 +11:00
Matthias MairandGitHub 7c6eefbcdf CI-Actions: Security fixes (#6835)
* add security commitment

* fix badge path

* set token permissions
see https://github.com/inventree/InvenTree/security/code-scanning/48

* add more chapters

* break up flow text

* spellchecking

* clean diff

* bump setup-python to node 20 version

* fix docker version too
2024-03-25 09:11:16 +11:00
Matthias MairandGitHub 9a0c978f2f Fix a few warnings in api generation (#6836)
* remove unuses api method

* update API docstrings to be more acurate

* updated typing for  fields

* upate serializer to avoid collision

* fix typing for API generation

* fix ModelChoiceFilter inference

* fix typing for manufacturer

* bump API version

* fix test

* fix type checker warnings

* fix api path
2024-03-25 09:10:38 +11:00
Matthias MairandGitHub c04ab12fc5 switch to offical uv action (#6827) 2024-03-24 17:13:05 +11:00
Matthias MairandGitHub cfe00aaa0f Move media operations to storages backend (#6478)
* [BUG] Inventree fiddles with files directly rather than using Django Storage api
Fixes #2585

* PEP fix

* clean diff

* move template discovery into central location

* more moving file operations

* fix paths

* and another path fixing

* more fixes

* fix typing

* switch config back to local

* revert locale stats

* remove dependency for template copy step

* fix typing

* log more

* log data

* more logging

* pass filenames as strings

* clean diff
2024-03-24 14:29:05 +11:00
Matthias MairandGitHub 6ff4d5e035 Fix new manifest path (#6814)
* fix manifest path

* simplify

* add falback for old path

* fix var name

* remove css lookup, not needed anymore

* fix test path
2024-03-22 20:15:20 +11:00
Matthias MairandGitHub 32d161852a Bump frontend dependencies (#6579)
* set yarn version

* bump yarn to 4.1

* update dependency file

* upgrade all deps as far as possible

* cleanup diff

* bump node

* ignore lock in pre-commit

* fix lockfile

* bump yarn version

* switch back to yarn 1 for now
2024-03-21 22:23:22 +00:00
Matthias MairandGitHub 885658e71a Python dependency bump (#6790)
* update python deps

* bump pre-commit

* fix wrong bump

* revert djangorestframework

* bump a bit further

* bump pre-commit

* do not strip extras
2024-03-22 09:19:29 +11:00
Matthias MairandGitHub 15388d3dc3 Run publish CI actions only on main repo (#6592)
* only run if in an inventree org repo

* only sign into docker hub if username set

* use repo name for ghcr name

* renmae to not cause confusion

* rename vars

* use seperate step

* disable a bunch of stuff for testing

* use echo instead

* Revert "disable a bunch of stuff for testing"

This reverts commit 0ab5ff6d6d.
2024-03-22 09:08:24 +11:00