Skip to content

Conversation

@vtamara
Copy link
Contributor

@vtamara vtamara commented Mar 27, 2025

Description

As required by #275 this PR:

  • Presents the steward list ordered by actions
  • Changes the style of the list of stewards by scaling it to the vertical height of the screen instead of cropping a lot when viewing from a desktop computer. I didn't change the list as seen from a collective page but as it was seen from a stewards page --that had a lot of cropping.
  • Replaces "steward" for "recipient" in interface

How Has This Been Tested?

Running the application and checking all the pages to make sure they work, that steward is replaced by recipient, that the list of steward fits vertically in the screen in the collective view and in the view of stewards and that it is ordered by actions as the following screenshot and video show:

image

collective-stewards-issues-275.webm

I would appreciate review of @L03TJ3

Checklist:

  • PR title matches follow: (Feature|Bug|Chore) Task Name
  • My code follows the style guidelines of this project
  • I have followed all the instructions described in the initial task (check Definitions of Done)
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • [] 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
  • I have added reference to a related issue in the repository
  • I have added a detailed description of the changes proposed in the pull request. I am as descriptive as possible, assisting reviewers as much as possible.
  • I have added screenshots related to my pull request (for frontend tasks)
  • I have pasted a gif showing the feature ---webm
  • @mentions of the person or team responsible for reviewing proposed changes

Description by Korbit AI

What change is being made?

Update the terminology in the UI from "Stewards" to "Recipients" across multiple components and enhance the StewardList component by ordering the stewards based on their actions in descending order.

Why are these changes being made?

These changes address UI issues by ensuring consistent terminology in the application, thereby improving user understanding and interface consistency. The ordering of the stewards is implemented to present the list more intuitively by actions, enhancing user experience in navigating through the list. This aligns with stakeholder feedback and resolves issue #275.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @vtamara - I've reviewed your changes - here's some feedback:

Overall Comments:

  • The changes look good, but I'm not sure about renaming 'steward' to 'recipient' - have you considered the implications of this change across the entire application?
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

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

Review by Korbit AI

Korbit automatically attempts to detect when you fix issues in new commits.
Category Issue Status
Functionality Missing Default Title for Non-Stream Donations ▹ view
Functionality Rigid List Height Constraint ▹ view
Files scanned
File Path Reviewed
packages/app/src/components/TransactionList/ClaimTransactionListItem.tsx
packages/app/src/components/TransactionList/TransactionListItem.tsx
packages/app/src/pages/ViewStewardsPage.tsx
packages/app/src/components/StewardsList/StewardsList.tsx
packages/app/src/components/AboutCard.tsx
packages/app/src/components/ViewCollective.tsx

Explore our documentation to understand the languages and file types we support and the files we ignore.

Need a new review? Comment /korbit-review on this PR and I'll review your latest changes.

Korbit Guide: Usage and Customization

Interacting with Korbit

  • You can manually ask Korbit to review your PR using the /korbit-review command in a comment at the root of your PR.
  • You can ask Korbit to generate a new PR description using the /korbit-generate-pr-description command in any comment on your PR.
  • Too many Korbit comments? I can resolve all my comment threads if you use the /korbit-resolve command in any comment on your PR.
  • On any given comment that Korbit raises on your pull request, you can have a discussion with Korbit by replying to the comment.
  • Help train Korbit to improve your reviews by giving a 👍 or 👎 on the comments Korbit posts.

Customizing Korbit

  • Check out our docs on how you can make Korbit work best for you and your team.
  • Customize Korbit for your organization through the Korbit Console.

Current Korbit Configuration

General Settings
Setting Value
Review Schedule Automatic including drafts
Max Issue Count 10
Automatic PR Descriptions
Issue Categories
Category Enabled
Documentation
Logging
Error Handling
Readability
Design ✅ - Potentially Major Issues Only
Performance
Security
Functionality

Feedback and Support

Note

Korbit Pro is free for open source projects 🎉

Looking to add Korbit to your team? Get started with a free 2 week trial here

const formattedTimestamp = moment(timeStamp * 1000).format('MM.DD.YYYY HH:mm');

const title = !isDonation ? (isUBIPool ? 'Recipient claim' : 'Steward Payout') : isStream;
const title = !isDonation ? (isUBIPool ? 'Recipient claim' : 'Recipient Payout') : isStream;
Copy link

Choose a reason for hiding this comment

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

Missing Default Title for Non-Stream Donations category Functionality

Tell me more
What is the issue?

The title assignment logic fails to handle the case when isDonation is true and isStream is undefined or falsy, resulting in an undefined title.

Why this matters

This could lead to UI inconsistencies and potential rendering issues when displaying transaction types for donations without streams.

Suggested change ∙ Feature Preview

Add a default title for donations that are not streams:

const title = !isDonation 
  ? (isUBIPool ? 'Recipient claim' : 'Recipient Payout') 
  : (isStream || 'Donation');
Provide feedback to improve future suggestions

Nice Catch Incorrect Not in Scope Not in coding standard Other

💬 Looking for more details? Reply to this comment to chat with Korbit.

titleStyle={styles.desktopTitleUnderline}
stewards={collective?.stewardCollectives}
listType="viewStewards"
listStyle={{ height: '60vh' }}

This comment was marked as resolved.

@L03TJ3 L03TJ3 merged commit 2a58d5f into GoodDollar:master Mar 31, 2025
4 checks passed
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.

2 participants