-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[UI] Show linked barcode string on stock detail page (#11745) #12354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mahekp05
wants to merge
164
commits into
inventree:master
Choose a base branch
from
mahekp05:fix-11745-linked-barcode-ui
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
164 commits
Select commit
Hold shift + click to select a range
b8c20e5
feat: display linked barcode on stock detail page
mahekp05 f57f73f
Merge remote-tracking branch 'upstream/master' into fix-11745-linked-…
mahekp05 08a915f
test: cover linked barcode display on stock detail (#11745)
mahekp05 cb5216a
chore: bump API version to 520 for barcode_data field (#11745)
mahekp05 f0f389c
feat: expose read-only barcode_data on all barcode-supporting seriali…
mahekp05 63e6a58
feat: show linked barcode on all detail pages via shared helper (#11745)
mahekp05 a49b0d8
Merge remote-tracking branch 'upstream/master' into fix-11745-linked-…
mahekp05 162b314
feat: validate BarcodeSerializerMixin configuration on init (#11745)
mahekp05 5fc8c93
Remove built-in dashboard history widgets (#12114)
SchrodingersGat 34496e8
Calendar tweaks (#12115)
SchrodingersGat 00e4113
chore(deps): bump the dependencies group with 3 updates (#12125)
dependabot[bot] 9440ef2
feat(frontend): add hotkey registration function and hotkey helper mo…
matmair 1e11433
Remove reference to lead_time field (#12133)
SchrodingersGat 8ec2415
bump container deps (#12136)
matmair df5df37
[UI] User management spotlight (#12144)
SchrodingersGat bb74f45
[UI] Update parametric data table hover (#12145)
SchrodingersGat 5b11c67
[UI] User Filters (#12143)
SchrodingersGat 88ad3a7
[report] Printing fixes (#12142)
SchrodingersGat f4cbbe4
Make plugin registry hash independent of plugin discovery order (#12151)
Nasawa 1ffa0df
New Crowdin translations by GitHub Action (#12069)
github-actions[bot] 8a605d5
Improvements for template tables (#12155)
SchrodingersGat 9a89dfe
Machine fixes (#12154)
SchrodingersGat 355b70f
feat(ci): add flakeiness (#12148)
matmair 9b63600
chore(deps): bump the dependencies group across 2 directories with 16…
dependabot[bot] f9ef40c
Remember last used label template and printer plugin per model type (…
Sanidhyavijay24 d3207c1
switch from n to nvm as that is an offical channel (#12140)
matmair c490acd
[UI] Calendar month colors (#12157)
SchrodingersGat 8c527af
feat(frontend): add more general hotkeys (#12138)
matmair 3d23f13
[UI] Calendar Updates (#12161)
SchrodingersGat c628b52
Improve security posture of PDF reporting (#12160)
SchrodingersGat efdb2c2
SelectionList Updates (#12139)
SchrodingersGat 02fefc5
New Crowdin translations by GitHub Action (#12156)
github-actions[bot] f395ae8
fix: support non-integer PKs in NotificationMessage (fixes UUID overf…
kaizeenn ae29430
Suppress dulwich warnings (#12163)
SchrodingersGat e07f003
Part category parameters (#12165)
SchrodingersGat 92c54c0
[UI] Edit cat param (#12166)
SchrodingersGat 214b873
Data import permissions (#12169)
SchrodingersGat 737c7f9
Permissions fix (#12168)
SchrodingersGat f2caf72
bump frontend (#12137)
matmair a0fc6c2
chore(deps): bump the dependencies group with 4 updates (#12172)
dependabot[bot] e4f5c41
bump docker base (#12178)
matmair 23b9f54
Stocktake exporter updates (#12179)
SchrodingersGat 418e346
chore(deps): bump cryptography from 48.0.0 to 48.0.1 in /src/backend …
dependabot[bot] cb0403d
fix(frontend): adress broken UI tests (#12183)
matmair 8474b1f
[import] specify fk lookup field (#12180)
SchrodingersGat 47e55bc
Mysql filter fix (#12185)
SchrodingersGat b5050d1
[UI] Additional table filters (#12186)
SchrodingersGat 8a648a3
Change order custom status via api (#11982)
johnluetke 47ef929
fix(ci): disable running on dependabot and backport branches (#12189)
matmair 544eaee
fix(backend): import session metadata (#12184)
matmair 21fbabe
fix(ci): improve release pipe stability (#12191)
matmair 5ec5533
chore(deps): bump dompurify from 3.4.8 to 3.4.9 in /src/frontend (#12…
dependabot[bot] e7b05a3
New Crowdin translations by GitHub Action (#12167)
github-actions[bot] d4a5640
System Health Checks (#12193)
SchrodingersGat ef092f2
Report Generation Updates (#12187)
SchrodingersGat 8de95de
chore(deps): bump form-data from 4.0.5 to 4.0.6 in /src/frontend (#12…
dependabot[bot] 8d0b63c
Fix order event name (#12196)
SchrodingersGat e04a3cb
[bug] Fix double save (#12194)
SchrodingersGat b62ad77
[API] Adjust permissions for machine restart (#12197)
SchrodingersGat 233000a
chore(deps): bump dompurify from 3.4.9 to 3.4.11 in /src/frontend (#1…
dependabot[bot] d77965b
[UI] Fix status renderer functions (#12202)
SchrodingersGat ebfda4a
chore(deps): bump pypdf from 6.13.0 to 6.13.3 in /src/backend (#12201)
dependabot[bot] d8c23a9
[UI] Tree improvements (#12204)
SchrodingersGat 4d18c79
[UI] Fix NewsWidget (#12205)
SchrodingersGat 36fc472
chore(deps): bump the dependencies group across 1 directory with 12 u…
dependabot[bot] a80f7f8
Report locale updates (#12208)
SchrodingersGat 61d1a52
chore(deps): bump undici from 8.4.1 to 8.5.0 in /src/frontend (#12200)
dependabot[bot] 4254b5e
Fix signup warning (#12213)
SchrodingersGat 9132df6
chore(deps): bump undici from 6.26.0 to 8.5.0 in /src/frontend (#12214)
dependabot[bot] d8cae35
Agents (#12212)
SchrodingersGat be793dc
build(docker): compile backend translations during image build (#12203)
geekcj12 8939620
Add meaningful message on CSRF failure (#12216)
SchrodingersGat 70ad93b
devops: fix chromium test uploads to flakiness.io (#12219)
aslushnikov e1e3aa9
Bump ty (#12211)
matmair fbd07d4
color scheme: Use the users prefered mode by default (#12227)
reid-p 0dd33e4
chore(deps): bump the dependencies group with 3 updates (#12220)
dependabot[bot] 84a99a2
extend barcode scans API (#12233)
matmair ece1e56
New Crowdin translations by GitHub Action (#12192)
github-actions[bot] a2bcdb8
[UI] Tweak today color (#12235)
SchrodingersGat b4cf921
[UI] Tweak "order parts" wizard (#12236)
SchrodingersGat 18ecd52
[bug] Allocated query fix (#12234)
SchrodingersGat 0eaf8ac
1.5.0 (#12239)
SchrodingersGat e54d987
[report] Tweak datamatrix helper (#12240)
SchrodingersGat 5a99437
!feat(backend): bump minimum python version (#12223)
matmair b918052
Update devcontainer Dockerfile (#12244)
SchrodingersGat cad1954
Allow stock transfer to merge into existing stock (optional) #6951 (#…
neilbeukes 6025478
New Crowdin translations by GitHub Action (#12238)
github-actions[bot] 475a75e
Revert devcontainer to python 3.12 (#12249)
SchrodingersGat af34ec6
Project code active (#12250)
SchrodingersGat 0dab69d
fix js-yaml, esbuild vulns (#12190)
matmair 026ea6e
Skip "many" fields in DataExport (#12255)
SchrodingersGat a0250bd
[UI] Improve revision selector (#12254)
SchrodingersGat 185a5d6
Bug fix for exception handler (#12257)
SchrodingersGat a5e4682
chore(backend): typing fixes (#12247)
matmair ede97da
chore(backend): harden gh setup (#12262)
matmair 500f5c7
chore(backend): dep bump (#12258)
matmair 2c54ec4
[UI] Stock column fix (#12268)
SchrodingersGat 63ebf66
chore(backend): Remove devops (#12265)
matmair 941cac7
update sponsored ressources (#12264)
matmair a47f9c4
[UI] Table tweaks (#12271)
SchrodingersGat 71f7176
[UI] Fix stock dates (#12272)
SchrodingersGat 9d3f217
fix: preserve supplier import stock workflow (#12215)
suzunn 09fac76
Fix dashboard issue (#12275)
SchrodingersGat 4944a13
chore(deps): bump the dependencies group with 5 updates (#12278)
dependabot[bot] 09e0a3b
[UI] Fix 'available' display (#12279)
SchrodingersGat 9a965e0
Fix stocktake bug for counting serialized items (#12280)
SchrodingersGat 3327db9
[UI] Table field refactor (#12274)
SchrodingersGat c6771fa
Fix for STOCK_COUNT event (#12281)
SchrodingersGat 7d1bc92
Allow stock adjustment from "category" detail view (#12256)
SchrodingersGat 3a318c5
New Crowdin translations by GitHub Action (#12251)
github-actions[bot] 98a2f43
[UI] Tree select in form fields (#12217)
SchrodingersGat 2c08872
Check build complete (#12289)
SchrodingersGat cc4134c
Display login errors to user (#12288)
SchrodingersGat b6a2abf
Add playwright test for part image upload (#11597)
martonmiklos 9154ad8
fix pin syntax (#12287)
matmair 6602825
[UI] Fix imports (#12292)
SchrodingersGat 5ad5e45
[UI] Tweak unique keys (#12293)
SchrodingersGat a39e1f7
chore(deps): bump the dependencies group across 1 directory with 27 u…
dependabot[bot] 5d9e28a
fix test assumption (#12296)
matmair dcb3eec
[API] Refactor API for duplicating objects (#12294)
SchrodingersGat 3a651c7
[UI] Snippet editor (#12299)
SchrodingersGat 073491c
[UI] Add "IPN" column to installed items table (#12297)
SchrodingersGat a48745f
[docs] Report helper docs (#12300)
SchrodingersGat de0a3df
[db] Fix for UUID fields (#12301)
SchrodingersGat 7cf171a
Fix OpenAPI multipart file fields to use binary format (#12298)
martonmiklos 4d42a4f
reduce duplication (#12302)
matmair 9eab08b
[UI] Pricing override (#12306)
SchrodingersGat 20ebf6c
[feature] Consumable part (#12295)
SchrodingersGat bd5bd9b
Order click-through on pricing panel (#12307)
SchrodingersGat 4369e54
Pricing bugs (#12305)
SchrodingersGat 4dbc24b
Add --keep option to setup-test task (#12308)
SchrodingersGat e2effc7
Table refactor (#12309)
SchrodingersGat 496975c
chore(deps): bump python in /contrib/container (#12276)
dependabot[bot] c2d3b60
chore(deps): bump the dependencies group across 1 directory with 31 u…
dependabot[bot] a65264c
New Crowdin translations by GitHub Action (#12284)
github-actions[bot] c83ad8c
chore(deps): bump the dependencies group with 4 updates (#12312)
dependabot[bot] a46ba31
[bug] Barcode bug fix (#12319)
SchrodingersGat 5443bf0
Fix for stocktake exporter (#12324)
SchrodingersGat d434267
Robustify playwright tests (#12331)
SchrodingersGat e300bad
[UI] Add form submission shortcut (#12328)
SchrodingersGat 0bcb837
Fix currency choices for PartPricing model (#12336)
SchrodingersGat 1473f30
Fix notes on part creation (#12332)
ledvinap 87adad3
[bug] Plugin load fix (#12329)
SchrodingersGat 513ea2b
Adjust default behavior of "migrate" command (#12320)
SchrodingersGat 7e20e22
Import internal price (#12341)
SchrodingersGat f84ae4a
[UI] Docs links (#12342)
SchrodingersGat 5e6e112
[docs] Admin docs (#12345)
SchrodingersGat ac1bd0f
Currency options fix (#12343)
SchrodingersGat 4ccc872
Add IPN column to BOM pricing panel (#12344)
SchrodingersGat 7bfc802
[UI] Form fix (#12348)
SchrodingersGat c6fd0cb
[UI] Page Load Improvements (#12334)
SchrodingersGat 2883348
Bug fixes for PO receive (#12349)
SchrodingersGat ae9dc0c
Improved error context (#12350)
SchrodingersGat 70bf894
test: cover linked barcode display on stock detail (#11745)
mahekp05 0487670
chore: bump API version to 520 for barcode_data field (#11745)
mahekp05 391199b
feat: expose read-only barcode_data on all barcode-supporting seriali…
mahekp05 31e1ca1
feat: show linked barcode on all detail pages via shared helper (#11745)
mahekp05 470a005
Fix data import bug (#12355)
SchrodingersGat 5cd6fcb
Remove dead pricing code on Part model (#12357)
SchrodingersGat abb39e1
[refactor] Refactor StockItem methods (#12358)
SchrodingersGat 409b635
feat: validate BarcodeSerializerMixin configuration on init (#11745)
mahekp05 bc09c97
Merge branch 'fix-11745-linked-barcode-ui' of https://github.com/mahe…
mahekp05 b351b8f
Merge remote-tracking branch 'upstream/master' into fix-11745-linked-…
mahekp05 0e1ca83
Merge branch 'master' into fix-11745-linked-barcode-ui
mahekp05 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,6 +54,23 @@ export type DetailsField = { | |
| type BadgeType = 'owner' | 'user' | 'group'; | ||
| type ValueFormatterReturn = string | number | null | React.ReactNode; | ||
|
|
||
| /** | ||
| * Construct a reusable "Linked Barcode" detail field for any model which | ||
| * supports custom (third-party) barcode assignment (i.e. exposes 'barcode_data'). | ||
| * | ||
| * The field is copyable and only rendered when a barcode is linked to the instance. | ||
| */ | ||
| export function barcodeDataField(instance: any): DetailsField { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @SchrodingersGat do we need to do a memo trick here? |
||
| return { | ||
| type: 'text', | ||
| name: 'barcode_data', | ||
| icon: 'barcode', | ||
| label: t`Linked Barcode`, | ||
| copy: true, | ||
| hidden: !instance?.barcode_data | ||
| }; | ||
| } | ||
|
|
||
| type StringDetailField = | ||
| | { | ||
| type: 'string' | 'text'; | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.