Skip to content

Aligned Column Headers#2577

Merged
CharlVS merged 18 commits intoGLEECBTC:devfrom
TazzyMeister:fix/align-walletpage-headers
Apr 22, 2025
Merged

Aligned Column Headers#2577
CharlVS merged 18 commits intoGLEECBTC:devfrom
TazzyMeister:fix/align-walletpage-headers

Conversation

@TazzyMeister
Copy link
Copy Markdown
Collaborator

@TazzyMeister TazzyMeister commented Mar 25, 2025

Lined up headers with coin details and fixed extra padding with 24H

Summary by CodeRabbit

  • Chores
    • Updated the hosting configuration with a new site identifier.
  • Refactor
    • Enhanced the coins list header layout by introducing updated header columns and a more flexible design for improved responsiveness.

Lined up headers with coin details and fixed extra padding with 24H
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 25, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

This pull request updates two components: the firebase.json file and a coins list header file in the wallet page. The hosting configuration in firebase.json now uses a new site identifier. Additionally, the _CoinsListHeaderDesktop layout has been restructured by replacing direct Text and Spacer widgets with Expanded widgets, adjusting the flex values for different headers, adding a new chart header, and enforcing a minimum width via a ConstrainedBox.

Changes

File Change Summary
firebase.json Updated the site property in the hosting configuration from "walletrc" to "wallet-rc-device-preview".
lib/.../coins_list_header.dart Restructured the _CoinsListHeaderDesktop layout: replaced Text, Spacer, and Padding widgets with Expanded widgets using appropriate flex values; added a new chart header and a ConstrainedBox for minimum width.

Sequence Diagram(s)

Poem

I'm a rabbit hopping through the code,
Changing sites where hosted bytes unload.
With widgets now more finely spun,
My coins list header shines like the sun.
Cheers to a layout swiftly bestowed! 🐰
Hop on and marvel at the mode!


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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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 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.

@CharlVS CharlVS requested review from CharlVS and smk762 April 9, 2025 14:36
@CharlVS CharlVS added the QA Ready for QA Testing label Apr 9, 2025
@CharlVS CharlVS marked this pull request as ready for review April 9, 2025 14:37
@CharlVS
Copy link
Copy Markdown
Collaborator

CharlVS commented Apr 9, 2025

@smk762, when @TazzyMeister tags you in this PR that this is ready for review, please check that:

  • the wallet page's coins list column headers are lined up with the columns
  • the headers stay aligned when resizing the screen width
  • the headers are legible in light and dark modes
  • The header styling is consistent with other page(s) that have similar tables

@CharlVS
Copy link
Copy Markdown
Collaborator

CharlVS commented Apr 9, 2025

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 9, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

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 5ef9d2e and 3f3c384.

📒 Files selected for processing (2)
  • firebase.json (1 hunks)
  • lib/views/wallet/wallet_page/common/coins_list_header.dart (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (9)
  • GitHub Check: Test web-app-macos
  • GitHub Check: Test web-app-linux-profile
  • GitHub Check: Build Desktop (linux)
  • GitHub Check: Build Mobile (Android)
  • GitHub Check: unit_tests
  • GitHub Check: Build Desktop (windows)
  • GitHub Check: validate_code_guidelines
  • GitHub Check: Build Mobile (iOS)
  • GitHub Check: Build Desktop (macos)
🔇 Additional comments (5)
firebase.json (1)

3-3: Firebase hosting site updated.

The site identifier has been changed from "walletrc" to "wallet-rc-device-preview", which suggests this is now targeting a new Firebase Hosting site specifically configured for device preview of the wallet release candidate.

Ensure this new Firebase Hosting site has been properly configured in your Firebase project to prevent deployment failures.

lib/views/wallet/wallet_page/common/coins_list_header.dart (4)

83-89: Improved layout structure with Expanded widgets.

Replacing direct Text widgets with Expanded widgets provides better layout control and responsiveness, addressing the column alignment objective mentioned in the PR.


91-98: New Price header with appropriate flex value.

Good addition of a dedicated Price header with a flex value of 2, which helps maintain proper spacing and alignment with the coin information below.


101-107: Improved 24h change header alignment.

Converting the previous fixed-width Container to an Expanded widget with flex: 2 addresses the excessive padding issue mentioned in the PR objectives.


119-122: Good use of ConstrainedBox for expand button space.

Using ConstrainedBox with a minimum width constraint ensures consistent space for the expand button regardless of screen size.

Comment on lines 109 to 116
// Chart header
Expanded(
flex: 2,
child: Text(
LocaleKeys.price.tr(),
style: style,
),
),
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.

⚠️ Potential issue

Incorrect label text for Chart header.

The Chart header is using the same localization key as the Price header (LocaleKeys.price.tr()), which would display "Price" instead of "Chart".

- child: Text(
-   LocaleKeys.price.tr(),
-   style: style,
- ),
+ child: Text(
+   LocaleKeys.chart.tr(), // Or create a new localization key if needed
+   style: style,
+ ),
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// Chart header
Expanded(
flex: 2,
child: Text(
LocaleKeys.price.tr(),
style: style,
),
),
// Chart header
Expanded(
flex: 2,
child: Text(
LocaleKeys.chart.tr(), // Or create a new localization key if needed
style: style,
),
),

@CharlVS CharlVS removed the QA Ready for QA Testing label Apr 9, 2025
@CharlVS CharlVS marked this pull request as draft April 9, 2025 14:49
It was showing price instead of chart as the header for the asset list.
@TazzyMeister TazzyMeister marked this pull request as ready for review April 10, 2025 13:56
@takenagain takenagain added the QA Ready for QA Testing label Apr 10, 2025
@smk762 smk762 requested a review from AndrewDelaney April 11, 2025 08:57
@smk762
Copy link
Copy Markdown
Collaborator

smk762 commented Apr 11, 2025

image
New on the left, prod on the right.

  • Column header and cell content alignment is good, and is retained when resizing the window. ✔️

  • Table content is visible in both dark and light theme mode. ✔️

  • The 24hr price change and chart columns have disappeared ⛔

  • The header font size is a challenge for elderly eyes. As there is no horizontal space constraints on that row, text should be legible. I've added a separate issue to review this app-wide in future. In this case, I'd aim for making the headers roughly the size they were previously. Balance column text is also a little on the small side. ⛔

  • Though it was not previously a feature in last release, making the columns sortable would be a great UX improvement. If simple enough to include in this PR it would be awesome, otherwise I can open another separate issue for adding this feature in future.

@CharlVS
Copy link
Copy Markdown
Collaborator

CharlVS commented Apr 14, 2025

  • making the columns sortable would be a great UX improvement

@smk762 Please create an issue (and tag p1) since this may go deeper than the layers @TazzyMeister is responsible for. I should ™ be able to squeeze it in while awaiting opsec review.

@CharlVS
Copy link
Copy Markdown
Collaborator

CharlVS commented Apr 14, 2025

  • The 24hr price change and chart columns have disappeared ⛔

@smk762 please re-test this. It should ™ be resolved with the changes merged from dev

@CharlVS CharlVS requested a review from smk762 April 14, 2025 09:04
@smk762
Copy link
Copy Markdown
Collaborator

smk762 commented Apr 14, 2025

  • The 24hr price change and chart columns have disappeared ⛔

@smk762 please re-test this. It should ™ be resolved with the changes merged from dev

Unfortunately, it does not (local build of 9cc5c21)

@CharlVS CharlVS removed the QA Ready for QA Testing label Apr 16, 2025
@CharlVS
Copy link
Copy Markdown
Collaborator

CharlVS commented Apr 21, 2025

  • The 24hr price change and chart columns have disappeared ⛔

@smk762 please re-test this. It should ™ be resolved with the changes merged from dev

Unfortunately, it does not (local build of 9cc5c21)

@smk762, scratch that. I see it was intentionally removed because that's what the designs called for. In hindsight, it doesn't make sense, but we can revisit it shortly after the release.

image

@CharlVS
Copy link
Copy Markdown
Collaborator

CharlVS commented Apr 21, 2025

  • text should be legible

@smk762, same as my previous comment. The font size is as specc'd in the designs, but it's not ideal . I've added the app-wide typography review to my post-release priority items
image

@CharlVS CharlVS added the QA Ready for QA Testing label Apr 21, 2025
Copy link
Copy Markdown
Collaborator

@smk762 smk762 left a comment

Choose a reason for hiding this comment

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

Well, I guess saying "LGTM" would be a lie, but if it looks like the spec it seems the only items blocking my approval are not valid. I look forward to the "post-release review" and restoration of these columns.

@CharlVS CharlVS merged commit 200cdf7 into GLEECBTC:dev Apr 22, 2025
6 of 11 checks passed
@CharlVS CharlVS deleted the fix/align-walletpage-headers branch April 22, 2025 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

QA Ready for QA Testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants