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

Add production/consumption to topic list and topic overview #2789

Draft
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

acass91
Copy link

@acass91 acass91 commented Oct 20, 2022

  • Breaking change? (if so, please describe the impact and migration path for existing application instances)

#2709

  • Added one column, multiple lines to the topic list for production and consumption
  • Added production and consumption to the topic overview

How Has This Been Tested? (put an "x" (case-sensitive!) next to an item)

  • No need to
  • Manually (please, describe, if necessary)
  • Unit checks
  • Integration checks
  • Covered by existing automation

Checklist (put an "x" (case-sensitive!) next to all the items, otherwise the build will fail)

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (e.g. ENVIRONMENT VARIABLES)
  • My changes generate no new warnings (e.g. Sonar is happy)
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged

image

@acass91 acass91 requested a review from a team as a code owner October 20, 2022 17:25
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hello there acass91! 👋

Thank you and congrats 🎉 for opening your first PR on this project! ✨ 💖

We will try to review it soon!

@Haarolean Haarolean self-requested a review October 20, 2022 18:18
Copy link
Contributor

@Haarolean Haarolean left a comment

Choose a reason for hiding this comment

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

PTAL at linter warnings
image

@acass91 acass91 requested a review from Haarolean October 21, 2022 19:36
Copy link
Contributor

@Haarolean Haarolean left a comment

Choose a reason for hiding this comment

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

  1. If there's just one of the two fields present (either in or out) there's just one line and it looks ugly

image

ugly as well with both fields:

image

  1. please keep the topic row height fixed, let's make in/out font size smaller

@provectus/kafka-frontend please review the code

@Haarolean Haarolean linked an issue Oct 21, 2022 that may be closed by this pull request
@Haarolean Haarolean added type/enhancement En enhancement to an already existing feature scope/frontend labels Oct 21, 2022
@Haarolean Haarolean self-assigned this Oct 21, 2022
@acass91
Copy link
Author

acass91 commented Oct 21, 2022

That's largely subjective. We could be going back and forth for days without a specification for the UI. Is there an exact font and font size that you want? I used the defaults for that table.

Is there an example that doesn't use <tr> and <td> because I think that is what's causing the line.

@Haarolean
Copy link
Contributor

That's largely subjective. We could be going back and forth for days without a specification for the UI. Is there an exact font and font size that you want? I used the defaults for that table.

Is there an example that doesn't use <tr> and <td> because I think that is what's causing the line.

It might be. What's not subjective is that topic row height shouldn't be random and dynamic.

Let's wait for the design in this case.
If you're participating in hacktoberfest, I can put an extra label to the PR if you want.

@Haarolean Haarolean added status/blocked Further development process is blocked by something. Prevents merging for PRs. status/design-review labels Oct 22, 2022
@acass91
Copy link
Author

acass91 commented Oct 23, 2022

Agreed, the row height can be fixed. Hacktoberfest label would be awesome, thanks.

Copy link
Member

@workshur workshur left a comment

Choose a reason for hiding this comment

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

  1. Please create custom Cell component for such logic - Cell API
  2. This component should not contain <tr><td> - only value
    More info about Column Defs https://tanstack.com/table/v8/docs/guide/column-defs#accessor-functions

Copy link
Contributor

@Haarolean Haarolean left a comment

Choose a reason for hiding this comment

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

Hey @acass91, we've prepared a design solution here. Please take a look 🙏🏼

@acass91
Copy link
Author

acass91 commented Dec 12, 2022

Hey @acass91, we've prepared a design solution here. Please take a look 🙏🏼

Thanks. I added the SVGs for the arrows and changed the heading to 'Speed'. The metrics (bytesInPerSec, bytesOutPerSec) appear to have stopped working since I last ran this.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@Haarolean
Copy link
Contributor

@acass91 thanks. We'll get back to your PR once we do a release, currently we're in a code freeze stage. Thanks!

@Haarolean Haarolean requested review from Haarolean and Mgrdich March 6, 2023 09:17
@Haarolean Haarolean removed status/blocked Further development process is blocked by something. Prevents merging for PRs. status/design-review labels Apr 26, 2023
@Haarolean Haarolean assigned acass91 and unassigned Haarolean Apr 26, 2023
@Haarolean Haarolean assigned David-DB88 and unassigned acass91 May 11, 2023
@Haarolean
Copy link
Contributor

@David-DB88 fix the rest when you have time please

# Conflicts:
#	kafka-ui-react-app/src/components/common/Icons/ArrowDownIcon.tsx
@David-DB88
Copy link
Contributor

@Haarolean i'll try

}
if (production === undefined) {
return (
<Wrapper>
Copy link
Contributor

Choose a reason for hiding this comment

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

we can refactor this part in a tiny component. and use it in this conditions.

one question why are we checking if (production === undefined) instead of if(!production).

Copy link
Contributor

@David-DB88 David-DB88 May 24, 2023

Choose a reason for hiding this comment

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

@Mgrdich i just change conditions take a look please if its normal ?

@Mgrdich Mgrdich self-requested a review May 20, 2023 09:04
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

97.0% 97.0% Coverage
0.0% 0.0% Duplication

@Haarolean Haarolean marked this pull request as draft August 23, 2023 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted scope/frontend type/enhancement En enhancement to an already existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display topic throughput stats
5 participants