Skip to content

Conversation

@fjaguado
Copy link
Contributor

@fjaguado fjaguado commented Mar 1, 2023

PR Details

A new ComboboxOption interface has been added.

Description

To be able to assure the consistency of the data passed to the combobox, a new interface has been added to be used to type data in the options array.

Related Issue

#715

Motivation and Context

Reinforce type driven development

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the CONTRIBUTING document
  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly (README.md for each UI component)
  • I have added tests to cover my changes (at least 1 spec for each UI component with the same coverage as the master branch)
  • All new and existing tests passed
  • A new branch needs to be created from master to evolve previous versions
  • Increase version in package.json following Semantic Versioning
  • All UI components must be added into the showcase (at least 1 component with the default settings)
  • Add the issue into the right project with the proper status (In progress)

@codecov
Copy link

codecov bot commented Mar 1, 2023

Codecov Report

Attention: 18 lines in your changes are missing coverage. Please review.

Comparison is base (cb74227) 56.54% compared to head (a6c81b3) 54.23%.

❗ Current head a6c81b3 differs from pull request most recent head 5df9015. Consider uploading reports for the commit 5df9015 to get more accurate results

Files Patch % Lines
...rc/lib/combobox/abstract-api-combobox.component.ts 50.00% 13 Missing ⚠️
...ts/src/lib/combobox/abstract-combobox.component.ts 58.33% 3 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #716      +/-   ##
==========================================
- Coverage   56.54%   54.23%   -2.31%     
==========================================
  Files         129      125       -4     
  Lines        3631     3470     -161     
  Branches      639      601      -38     
==========================================
- Hits         2053     1882     -171     
- Misses       1468     1484      +16     
+ Partials      110      104       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

carlosra85
carlosra85 previously approved these changes Apr 14, 2023
pepgrifell
pepgrifell previously approved these changes Apr 14, 2023
public getData(page: number, itemsPerPage: number): Observable<Array<Combobox<string | number>>> {
return this.api.getLaboratoryList(page,itemsPerPage).pipe(map((value) => {
this.totalItems = value.totalElements;
return value.content;
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we receive an array of Combobox<string | number> from API ?

@fjaguado fjaguado dismissed stale reviews from pepgrifell and carlosra85 via 0a249b3 February 5, 2024 14:56
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.

4 participants