Skip to content
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

Menuitems on products #25

Merged
merged 15 commits into from
Mar 5, 2024
Merged

Menuitems on products #25

merged 15 commits into from
Mar 5, 2024

Conversation

A-Guldborg
Copy link
Contributor

@A-Guldborg A-Guldborg commented Jan 25, 2024

This change adds menu items to products (Half of #23).

The EditForm on the product manager now has a ComboBox with both textual input (searching) and multiselection in a dropdown to avoid taking up too much space:
image

This PR also addresses breaking changes in the products API from AnalogIO/analog-core#253 which must be merged first.

This PR also includes minor bugfixes:

  • When updating a product, changes are instantly reflected in the DataGrid without having to reload the page.
  • When adding a new product, the ID returned from the server will be shown as soon as it is retrieved in the DataGrid.

@A-Guldborg A-Guldborg added the enhancement New feature or request label Jan 25, 2024
@A-Guldborg A-Guldborg requested a review from TTA777 January 25, 2024 23:10
@A-Guldborg A-Guldborg self-assigned this Jan 25, 2024
@A-Guldborg A-Guldborg force-pushed the feature/menuitems-on-products branch from 2ac946f to 75f2d0b Compare February 13, 2024 13:41
Copy link
Contributor Author

@A-Guldborg A-Guldborg left a comment

Choose a reason for hiding this comment

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

@TTA777 I believe this answers the questions you had on Tuesday. Let me know if I forgot/missed something, or if you have further questions :)

(I removed ToString on our domain models and reverted to using Enumerable instead of ObservableCollection, as it was only required to use the StateHasChanged but not the ObservableCollection)

Also - seems there were just a few lines difference between my non-working local API specs and the ones that I now obtained from the dev swagger, so I assume I might've tested it against a wrong or outdated backend branch. The API specs now match the current dev server.

Shifty.App/DomainModels/MenuItem.cs Outdated Show resolved Hide resolved
Shifty.App/DomainModels/MenuItem.cs Outdated Show resolved Hide resolved
TTA777
TTA777 previously requested changes Feb 15, 2024
Shifty.App/Components/ProductManager.razor Outdated Show resolved Hide resolved
Shifty.App/Components/ProductManager.razor Outdated Show resolved Hide resolved
Shifty.App/DomainModels/MenuItem.cs Outdated Show resolved Hide resolved
Shifty.App/Services/MenuItemService.cs Outdated Show resolved Hide resolved
@duckth duckth force-pushed the feature/menuitems-on-products branch from 1abdca5 to 29413d5 Compare February 20, 2024 20:07
@A-Guldborg A-Guldborg requested a review from TTA777 February 21, 2024 00:31
Copy link
Member

@marfavi marfavi left a comment

Choose a reason for hiding this comment

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

OK

@A-Guldborg A-Guldborg dismissed TTA777’s stale review March 5, 2024 18:27

Omid reviewed after changes

@A-Guldborg A-Guldborg merged commit b2341a2 into main Mar 5, 2024
2 checks passed
@A-Guldborg A-Guldborg deleted the feature/menuitems-on-products branch March 5, 2024 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants