Skip to content

feat: added create material feature for admins#1044

Merged
tom-rm-meyer-ISST merged 10 commits intoeclipse-tractusx:feat/create-master-data-via-uifrom
achtzig20:feat/admin-material-creation
Nov 25, 2025
Merged

feat: added create material feature for admins#1044
tom-rm-meyer-ISST merged 10 commits intoeclipse-tractusx:feat/create-master-data-via-uifrom
achtzig20:feat/admin-material-creation

Conversation

@OlgaIvkovic
Copy link
Copy Markdown
Contributor

@OlgaIvkovic OlgaIvkovic commented Nov 10, 2025

Description

  • Added new page for admins called Master data
  • Added table that displays all existing materials
  • Added option to add new materials
  • Implemented generatematerialcatenaxid environment variable in the frontend as well

Solves #1042

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

  • DEPENDENCIES are up-to-date. Dash license tool. Committers can open IP issues for restricted libs.
  • Copyright and license header are present on all affected files
  • If helm chart has been changed, the chart version has been bumped to either next major, minor or patch level (compared to released chart).

Comment thread frontend/src/features/master-data/components/MaterialModal.tsx Fixed
@OlgaIvkovic OlgaIvkovic changed the base branch from main to feat/create-master-data-via-ui November 11, 2025 14:41
Copy link
Copy Markdown
Contributor

@tom-rm-meyer-ISST tom-rm-meyer-ISST left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the contribution!

Only smaller findings / improvements :)

Comment thread charts/puris/Chart.yaml Outdated
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 5.1.1
version: 5.1.2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chart version should be bumped same as app version. If there is a breaking change in the interfaces, it should be major, else minor.

Here I would go for minor, as we got non-breaking additional functionality.

Please also bump app-version + respective files in frontend / backend / Changelog.

Comment thread CHANGELOG.md Outdated
### Added

- added detailed error messages for formulas in excel imports ([#1036](https://github.com/eclipse-tractusx/puris/pull/1036))
- added Master data page for viewing all materials and option to add material as an admin ([#1044](https://github.com/eclipse-tractusx/puris/pull/1044))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4.1.1 already released. Pleas bump minor and take over known knowns

/>
</Grid>
<Grid item xs={12}>
<InputLabel>Global Asset Id {config.app.GENERATE_MATERIAL_CATENAX_ID && '*'}</InputLabel>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering, if we need even to enable it in case we configured to generate the cx id. And we need, at least for the product case.

Nevertheless, the behavior might be confusing users:

  • If I create a Material (inbound), I think I need to insert the GlobalAssetId of the supplier's twin. But I don't because PURIS FOSS will take over the uuid (one could also disable it if autogeneration is given)
  • If I create a Product (outbound), I can insert the GlobalAssetId as this one is used to create the digital twin. If I don't specify it, it's needed.

I would not change it, but how about a tooltip:

"Your configurations does /does not generate the uuid for you. If you specify an outbound or bidirectional twin (a product), it makes sense to specify the uuid in case you want to also communicate this number to your customers."

Disabling it for inbound material when autogeneration is disabled could help, too. We definitely need it enabled for products for the community days.

@tom-rm-meyer-ISST tom-rm-meyer-ISST linked an issue Nov 25, 2025 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@tom-rm-meyer-ISST tom-rm-meyer-ISST left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks. Please for next consider also run helm-docs to update the charts/README.md

@tom-rm-meyer-ISST tom-rm-meyer-ISST merged commit 3cad949 into eclipse-tractusx:feat/create-master-data-via-ui Nov 25, 2025
12 checks passed
This was referenced Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Story] Add Material Creation functionality

3 participants