Skip to content

OBPIH-6850 Create table component to count tab#5006

Merged
awalkowiak merged 8 commits intodevelopfrom
OBPIH-6850
Jan 22, 2025
Merged

OBPIH-6850 Create table component to count tab#5006
awalkowiak merged 8 commits intodevelopfrom
OBPIH-6850

Conversation

@alannadolny
Copy link
Collaborator

✨ Description of Change

A concise summary of what is being changed. Please provide enough context for reviewers to be able to understand the change and why it is necessary. If the issue/ticket already provides enough information, you can put "See ticket" as the description.

Link to GitHub issue or Jira ticket:

Description:


📷 Screenshots & Recordings (optional)

If this PR contains a UI change, consider adding one or more screenshots here or link to a screen recording to help reviewers visualize the change. Otherwise, you can remove this section.

@alannadolny alannadolny self-assigned this Jan 20, 2025
@github-actions github-actions bot added domain: frontend Changes or discussions relating to the frontend UI domain: l10n Changes or discussions relating to localization & Internationalization labels Jan 20, 2025
@codecov
Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 7.78%. Comparing base (08ea84c) to head (411c645).
Report is 177 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff              @@
##             develop   #5006      +/-   ##
============================================
+ Coverage       7.72%   7.78%   +0.05%     
- Complexity       854     863       +9     
============================================
  Files            610     613       +3     
  Lines          42589   42621      +32     
  Branches       10346   10350       +4     
============================================
+ Hits            3292    3319      +27     
+ Misses         38810   38806       -4     
- Partials         487     496       +9     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

{tab === TO_COUNT_TAB && <CycleCountToCount />}
{tab === TO_COUNT_TAB && (
<CycleCountToCount
filterParams={filterParams}
Copy link
Collaborator

Choose a reason for hiding this comment

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

are filters cleared when switching between tabs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no, and I thought it was the desired behavior, but I will ask for clarification

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Manon confirmed that it should be cleared

const translate = useTranslate();
const spinner = useSpinner();
const [pageSize, setPageSize] = useState(5);
const [offset, setOffset] = useState(0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

couldn't those two states be placed in a separate common hook? I can see it being repeated from the useAllProductsTab. I can see it even being used in the useTableDataV2 with those values with ability to override those (while passing those to the useTableDataV2)

cell: () => (
<TableCell className="rt-td">
<StatusIndicator
variant="danger"
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's leave a TODO to remember to change it when the statuses have the variant implemented.

@awalkowiak awalkowiak merged commit 1392fad into develop Jan 22, 2025
7 checks passed
@awalkowiak awalkowiak deleted the OBPIH-6850 branch January 22, 2025 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: frontend Changes or discussions relating to the frontend UI domain: l10n Changes or discussions relating to localization & Internationalization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants