Skip to content

refactor: update order list item UI with icon-based review and age indicator#137

Merged
grunch merged 4 commits into
mainfrom
chebizarro/issue136
Jul 8, 2025
Merged

refactor: update order list item UI with icon-based review and age indicator#137
grunch merged 4 commits into
mainfrom
chebizarro/issue136

Conversation

@chebizarro

@chebizarro chebizarro commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

Closes #136

Summary by CodeRabbit

  • Style
    • Improved readability of the order time display.
    • Updated star rating visuals for clearer distinction between filled and empty stars.
    • Enhanced review and age information with icon-based display for a more visually structured and accessible layout.

@coderabbitai

coderabbitai Bot commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

The code modifies the visual presentation of reviews and days in the order list item widget. It replaces the textual summary with a row of icons (person and calendar) and their respective values, and updates the empty star color to fully opaque amber for consistency.

Changes

File(s) Change Summary
lib/features/home/widgets/order_list_item.dart Reformatted order.timeAgoWithLocale call for readability; replaced review/days text with icon row; changed empty star icon color to opaque amber.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant OrderListItemWidget

  User->>OrderListItemWidget: Display order item
  OrderListItemWidget->>OrderListItemWidget: Render star rating with opaque amber for empty stars
  OrderListItemWidget->>OrderListItemWidget: Render Row with person icon + reviews, calendar icon + days old
  OrderListItemWidget-->>User: Show updated visual layout
Loading

Assessment against linked issues

Objective Addressed Explanation
Replace "reviews" text with person emoji and number, and days with calendar emoji and number (#136)
Use yellow (amber) color for icons as per star color before filling (#136)

Poem

In the order list, a change so bright,
Stars now shimmer, amber light.
Person and calendar icons in a row,
Numbers beside them, on they glow.
Modern looks with every view—
A rabbit’s hop, a UI anew! 🐰✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fa6cd3a and 4057343.

📒 Files selected for processing (1)
  • lib/features/home/widgets/order_list_item.dart (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • lib/features/home/widgets/order_list_item.dart
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1cde1d9 and 063a3fb.

📒 Files selected for processing (1)
  • lib/features/home/widgets/order_list_item.dart (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build
🔇 Additional comments (2)
lib/features/home/widgets/order_list_item.dart (2)

104-106: LGTM: Improved code readability.

The multiline formatting of the timeAgoWithLocale call improves readability without changing functionality.


315-315: Verify visual impact of fully opaque empty stars.

The change from semi-transparent (starColor.withValues(alpha: 0.3)) to fully opaque (starColor) empty stars may reduce visual distinction between filled and empty stars, potentially affecting user experience.

Please verify that the visual hierarchy remains clear and users can easily distinguish between filled and empty stars in the rating display.

Comment thread lib/features/home/widgets/order_list_item.dart

@Catrya Catrya left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hola @chebizarro pudieras poner los números de las calificaciones y el tiempo de uso del mismo tamaño y color que el número de estrellas?
Y separar un poquito más los iconos para que se identifiquen mejor

image

@chebizarro

Copy link
Copy Markdown
Contributor Author

@Catrya qué te parece?

Screenshot_1751989814

@chebizarro

Copy link
Copy Markdown
Contributor Author

O también con el texto en negrita
Screenshot_1751990236

@Catrya

Catrya commented Jul 8, 2025

Copy link
Copy Markdown
Member

O también con el texto en negrita

Me gusta más en negrita, ¿pudieras probar poniendo los iconos de persona y almanaque en el color dorado como las estrellas sin rellenar? Crees que se vería mejor así? Tal vez se vea más integrado a la otra parte de la reputación, a las estrellas.
Aunque igual como está ahora me gusta

@chebizarro

Copy link
Copy Markdown
Contributor Author

Para comparar

image

@Catrya

Catrya commented Jul 8, 2025

Copy link
Copy Markdown
Member

Para comparar

@chebizarro Bueno creo que se ve mejor en el gris, no en amarillo. Gracias Chris, cuando puedas sí subelo con los cambios de texto en negrita

@Catrya Catrya left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@grunch grunch merged commit a98e498 into main Jul 8, 2025
2 checks passed
@chebizarro chebizarro deleted the chebizarro/issue136 branch July 8, 2025 22:39
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.

improve in Order book: reviews and days using mostro

3 participants