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

Feature/refactor customers page #897

Merged
merged 9 commits into from
Oct 11, 2024
Merged

Conversation

rsletta
Copy link
Contributor

@rsletta rsletta commented Oct 10, 2024

customers_page.mp4
  • adds customer cards
  • filtering on customers

@rsletta rsletta added enhancement New feature or request adminpanel labels Oct 10, 2024
}

private void ResetCustomerToOriginalValues(object? customer)
private void FilterCustomers()
Copy link
Contributor

Choose a reason for hiding this comment

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

Kan den gamle FilterCustomer-metoden fjernes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

godt fanget opp. den skal bort. fikser.


private async Task CustomerChangeCommitted()
private void NavigateToCustomer(int customerId)
Copy link
Contributor

Choose a reason for hiding this comment

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

Brukes denne metoden lenger?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

planen er å bruke den straks.

[Parameter] public RenderFragment? CustomerCardAvatarImage { get; set; }
[Parameter] public EventCallback OnActionPress { get; set; }
[Parameter] public string ActionLabel { get; set; } = "";
[Parameter] public string? AvatarImageUrl { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

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

Regner med at flere av disse parameterene er tenkt til å tas i bruk senere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

korrekt

Copy link
Contributor

Choose a reason for hiding this comment

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

Burde denne renames til CustomerAdminResponse?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Absolutt et bedre navn.

@rsletta rsletta merged commit 38defc5 into master Oct 11, 2024
3 checks passed
@rsletta rsletta deleted the feature/refactor-customers-page branch October 11, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adminpanel enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants