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

Enhance manufacturers table filtering #1037 #1134

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

joshuadkitenge
Copy link
Collaborator

Description

  • remove optional filter in manufacturer address in catalogue items table

Testing instructions

Add a set up instructions describing how the reviewer should test the code

  • Review code
  • Check Actions build
  • Review changes to test coverage
  • {more steps here}

Agile board tracking

closes #1037

- remove optional filter in address in catalogue items table
@joshuadkitenge joshuadkitenge force-pushed the enchancement/enhance-manufacturers-table-filtering-#1037 branch from 9a67149 to bd86584 Compare November 21, 2024 10:36
Copy link

codecov bot commented Nov 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.19%. Comparing base (fbf54d4) to head (bd86584).

Additional details and impacted files
@@            Coverage Diff            @@
##           develop    #1134    +/-   ##
=========================================
  Coverage    99.19%   99.19%            
=========================================
  Files           82       82            
  Lines        17058    17080    +22     
  Branches      2844     2050   -794     
=========================================
+ Hits         16920    16942    +22     
- Misses         134      137     +3     
+ Partials         4        1     -3     

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


🚨 Try these New Features:

@joshuadkitenge joshuadkitenge marked this pull request as ready for review November 21, 2024 10:44
Copy link
Contributor

@asuresh-code asuresh-code left a comment

Choose a reason for hiding this comment

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

LGTM, just a few minor comments.

Comment on lines 65 to 73
Header: TableHeaderOverflowTip,
accessorFn: (row) => row.name,
id: 'name',
filterVariant: COLUMN_FILTER_VARIANTS.string,
filterFn: COLUMN_FILTER_FUNCTIONS.string,
columnFilterModeOptions: COLUMN_FILTER_MODE_OPTIONS.string,
size: 400,
Cell: ({ row }) =>
row.original.name && (
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Header: TableHeaderOverflowTip,
accessorFn: (row) => row.name,
id: 'name',
filterVariant: COLUMN_FILTER_VARIANTS.string,
filterFn: COLUMN_FILTER_FUNCTIONS.string,
columnFilterModeOptions: COLUMN_FILTER_MODE_OPTIONS.string,
size: 400,
Cell: ({ row }) =>
row.original.name && (
Header: TableHeaderOverflowTip,
accessorFn: (row) => row.name,
id: 'name',
filterVariant: COLUMN_FILTER_VARIANTS.string,
filterFn: COLUMN_FILTER_FUNCTIONS.string,
columnFilterModeOptions: COLUMN_FILTER_MODE_OPTIONS.string,
size: 400,
Cell: ({ row }) =>
(

name is a mandatory field so the conditional operator is not needed

@asuresh-code
Copy link
Contributor

In the Modified Time column, the conditional expression row.original.modified_time && is not needed, as you pointed out in the SystemsTableView PR

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.

Enhance Manufacturer Table Filtering
2 participants