Skip to content

OBPIH-6018 Add product sources list table#4436

Merged
kchelstowski merged 9 commits intofeature/product-supplier-list-redesignfrom
OBPIH-6018
Dec 29, 2023
Merged

OBPIH-6018 Add product sources list table#4436
kchelstowski merged 9 commits intofeature/product-supplier-list-redesignfrom
OBPIH-6018

Conversation

@kchelstowski
Copy link
Collaborator

@kchelstowski kchelstowski commented Dec 29, 2023

Screenshot from 2023-12-29 16-10-20

@kchelstowski kchelstowski self-assigned this Dec 29, 2023
@kchelstowski kchelstowski merged commit 0d8e06c into feature/product-supplier-list-redesign Dec 29, 2023
@kchelstowski kchelstowski deleted the OBPIH-6018 branch December 29, 2023 15:42
Comment on lines +4269 to +4280
react.productSupplier.column.productCode.label=Product Code
react.productSupplier.column.productName.label=Product Name
react.productSupplier.column.sourceCode.label=Source Code
react.productSupplier.column.preferenceType.label=Preference Type
react.productSupplier.column.defaultPackSize.label=Default Pack Size
react.productSupplier.column.packagePrice.label=Package Price
react.productSupplier.column.eachPrice.label=Each Price
react.productSupplier.column.supplier.label=Supplier
react.productSupplier.column.supplierCode.label=Supplier Code
react.productSupplier.column.supplierProductName.label=Supplier Product Name
react.productSupplier.column.dateCreated.label=Date Created
react.productSupplier.column.status.label=Status
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the column part is not needed.

react.productSupplier.productCode.label=Product Code
react.productSupplier.productName.label=Product Name
react.productSupplier.sourceCode.label=Source Code
react.productSupplier.preferenceType.label=Preference Type
react.productSupplier.defaultPackSize.label=Default Pack Size
react.productSupplier.label=Package Price
react.productSupplier.eachPrice.label=Each Price
react.productSupplier.supplier.label=Supplier
react.productSupplier.supplierCode.label=Supplier Code
react.productSupplier.supplierProductName.label=Supplier Product Name
react.productSupplier.dateCreated.label=Date Created
react.productSupplier.status.label=Status

To be honest, I am not sure about the productSupplier also. Most of those translations can be potentially used in a lot of future redesigns, so I am thinking about having those under something similar like react.default.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For all list pages we used to distinguish what's used for the columns, what's used for the table etc.
We once decided that "the same" labels could have different context in some places - this is why we also don't use the react.default for most of them.
I don't remember where, but probably even for some of the new list pages we've had a discussion about that.

awalkowiak pushed a commit that referenced this pull request Mar 12, 2024
* OBPIH-6018 Add package price property to product supplier toJson

* OBPIH-6018 Add translations for labels for the product sources table

* OBPIH-6018 Add an api url for product sources on the react side

* OBPIH-6018 Include new packagePrice property in ProductSupplierListDto

* OBPIH-6018 Add components for product source table

* OBPIH-6018 Remove unused imports + fix eslint in ProductSupplierTabs component

* OBPIH-6018 Add hook for logic of fetching product sources data

* OBPIH-6018 Add generic wrappers for list table

* OBPIH-6018 Fix label for no data text
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.

2 participants