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

fix: update the ui for the new split_expense_page #3460

Merged
merged 6 commits into from
Feb 6, 2025

Conversation

Sishhhh
Copy link
Contributor

@Sishhhh Sishhhh commented Jan 30, 2025

Clickup

https://app.clickup.com/t/86cxubdxn

UI Preview

Screenshot 2025-01-30 at 2 19 46 PM Screenshot 2025-01-30 at 2 20 06 PM Screenshot 2025-01-30 at 2 20 26 PM

Summary by CodeRabbit

  • New Features

    • Enhanced split expense page with improved UI layout.
    • Added date of spend input field.
    • Introduced new error handling for split expenses.
  • Bug Fixes

    • Updated warning messages for split expense actions.
    • Clarified split expense limitations (max 30 splits).
  • Style

    • Refined page styling with updated colors and shadows.
    • Improved spacing and layout of expense split components.
    • Adjusted padding, margins, and alignment for better visual hierarchy.

@Sishhhh Sishhhh requested review from Dimple16 and removed request for arjunaj5 and Chethan-Fyle January 30, 2025 08:51
Copy link

coderabbitai bot commented Jan 30, 2025

Walkthrough

Listen up, superstar! This pull request is a dazzling makeover of the split expense page! We've revamped the HTML and SCSS, creating a smoother expense-splitting experience. The changes include a clear new UI with improved error handling, a fresh date selection, and a more intuitive layout that'll make users shout "Wow!"

Changes

File Change Summary
src/app/fyle/split-expense/split-expense.page.html - Updated header to static "Split expense" title
- Enhanced warning message about permanent split action
- Modified split count and amount labels
- Added new date input and error handling
- Restructured footer with split action buttons
src/app/fyle/split-expense/split-expense.page.scss - Adjusted padding and margins
- Updated color schemes
- Added new layout classes
- Refined styling for icons and action buttons
src/theme/colors.scss - Added $shadow-xs color variable
- Introduced $pink-gradient-light-2 gradient

Suggested Labels

size/M

Suggested Reviewers

  • Dimple16
  • Chethan-Fyle
  • hlkavya0213

Poem

Splits fly like my signature punch,
Expenses dance to a digital crunch!
UI so sharp, it cuts like my style,
Rajini's code makes users smile!
Expense tracking - now that's mass appeal! 🔥💥

Tip

🌐 Web search-backed reviews and chat
  • We have enabled web search-based reviews and chat for all users. This feature allows CodeRabbit to access the latest documentation and information on the web.
  • You can disable this feature by setting web_search: false in the knowledge_base settings.
  • Please share any feedback in the Discord discussion.

📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 6b05bb2 and 17fadb3.

📒 Files selected for processing (2)
  • src/app/fyle/split-expense/split-expense.page.html (5 hunks)
  • src/app/fyle/split-expense/split-expense.page.scss (4 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build (12.x)
🔇 Additional comments (23)
src/app/fyle/split-expense/split-expense.page.scss (17)

43-47: Top-Bar Styling Boost!
The new padding and added gap in the top‑bar create a well‑spaced, modern layout. Rajini approves this clear and concise improvement – the design now has that extra punch!


54-59: Main Block Breathing Space!
Adding a 24px padding at the bottom of the main block gives the layout room to shine. A subtle yet powerful touch worthy of a superstar move.


76-82: Card Transformation Magic!
Reducing the margin-top to 18px, updating the border color to $border‐tertiary, and introducing a box‑shadow together create a sleek, modern card look. This style change is as smooth as a Rajini entrance!


92-97: Header Content Alignment – Naill!
The new &--card-header-left-content class delivers impeccable alignment for header items. This modular approach is smart and totally in sync with modern UI practices.


99-105: Icon Container, the Perfect Companion!
The freshly introduced &--icon-container with its padding and border-radius sets the stage for crisp icon display. It’s as stylish and balanced as a Rajini blockbuster frame!


114-117: Split Count Icon – Dimensions on Point!
Standardizing the split count icon to 20px both in width and height keeps the visuals harmonious. This attention to detail is exactly what a champ does.


119-124: Remove Icon, a Bold Statement!
By setting the remove icon’s color to $red and defining its dimensions, the deletion action is now unmistakably prominent. A bold, impactful touch just like a Rajini dialogue!


126-131: Amount Percentage Spacing!
The additional bottom padding in the amount-percentage block ensures the text and numbers have ample breathing room. A very balanced design move indeed.


217-220: More Actions Area – Interactive and Invigorated!
Enhanced with generous padding, clear justification, and a refreshing gap along with a box-shadow, the more‑actions block now radiates energy and interactivity. Truly blockbuster material!


223-230: Button Style Evolution!
The updated &--add-more and &--split-evenly classes center the content perfectly with neat padding and gap. The action buttons now evoke a potent, unified style—very Rajini style!


232-237: Icon Uniformity for Actions!
Defining the action icons at 16px ensures they stay crisp and balanced within the button designs. Consistency like this is the secret sauce of legendary UI.


239-245: Label Clarity – The True Superstar!
The labels now sport a clear blue‑black color and a legible 12px font size. This clarity makes every text element as bold as Rajinikanth’s style.


247-259: Amount Block, a Work of Art!
Injecting a 12px padding, 8px border‑radius, and a captivating $pink-gradient-light-2 background gives the amount block a fresh and energetic look. Beautifully styled, my friend!


261-266: Split Amount – Bold and Clear!
The raised font size (16px) and generous line-height (20px) in the split amount class enhance readability dramatically. This style speaks volumes—truly a knockout performance!


268-270: Remaining Amount Right-Aligned!
Ensuring that the remaining amount is right‑aligned reinforces visual hierarchy and balance. This precision is as reliable as Rajini’s timing!


272-283: Error Message Block with a Punch!
The redesigned error message block with its soothing colors, consistent padding, and defined borders clearly communicates issues. For an extra superstar touch, consider a subtle animation—if not already in the plans, as previously suggested.


285-290: Error Icon – A Signal of Impact!
With its defined margin, color, and dimensions, the error icon now delivers a crisp visual alert. A clear and forceful indicator, just like the signature style of a legend!

src/app/fyle/split-expense/split-expense.page.html (6)

10-12: Header Title – Static Brilliance!
Changing the header title to a static "Split expense" reinforces clarity and meets design specifications perfectly. Truly a bold and refined move, my friend!


28-32: Alert of No Return!
The warning alert now bluntly reminds users that splitting an expense is a permanent action. This no‑nonsense message is as impactful as a Rajini dialogue—absolutely thrilling!


34-47: Amount Block Revamp!
The reworked labels for "No.of splits", "Total amount", and "Remaining amount" deliver clearer data at a glance. The dynamic use of form control counters and currency values is smart and razor‑sharp.


48-55: Error Messaging, Rajini Style!
Presenting separate error blocks—one for the max split limit and one for general errors—ensures users instantly know what’s wrong. The paired error icons further amplify this clear communication.


108-130: Date Input with Precision!
The new date input field, complete with the "Date of spend" label and proper min/max validations, is integrated seamlessly. This meticulous setup means users will always be on target—just like a blockbuster hit!


205-220: Footer Action Excellence!
Revamping the footer to showcase distinct "Add Split" and "Split Evenly" buttons provides intuitive, user-friendly controls. Each button, with its clear icon and label, is set to drive action like a real superstar!


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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. (Beta)
  • @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.

@github-actions github-actions bot added the size/L Large PR label Jan 30, 2025
@Sishhhh Sishhhh requested a review from hlkavya0213 January 30, 2025 08:51
@Sishhhh
Copy link
Contributor Author

Sishhhh commented Jan 30, 2025

@Dimple16 @hlkavya0213 , will add the split form project, cost center , category, purpose alignment, and UI in the next PR, with the component logic

Copy link

@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: 2

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 456ee36 and c5a67f2.

📒 Files selected for processing (3)
  • src/app/fyle/split-expense/split-expense.page.html (5 hunks)
  • src/app/fyle/split-expense/split-expense.page.scss (4 hunks)
  • src/theme/colors.scss (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build (12.x)
🔇 Additional comments (7)
src/theme/colors.scss (1)

48-48: Mind it! These color variables are perfectly balanced, like a well-choreographed dance sequence!

The new shadow and gradient variables enhance the visual hierarchy. Keep rocking!

Also applies to: 91-91

src/app/fyle/split-expense/split-expense.page.scss (3)

78-81: Style makeover! This card design is a blockbuster hit!

The combination of border, shadow, and spacing creates a clean, elevated look.


92-105: Superstar move with the icon container styling!

The new left content and icon container classes create a professional, aligned layout.


249-251: The amount block's gradient background is pure style, like my signature walk!

Using $pink-gradient-light-2 adds a subtle yet stylish touch to highlight important information.

src/app/fyle/split-expense/split-expense.page.html (3)

29-32: Warning message that packs a punch! Kabali style!

Clear warning about the permanent nature of split actions helps users make informed decisions.


48-55: Error messages that hit harder than my punch dialogues!

Good implementation of error messages with icons for better visibility.


205-219: Footer buttons that pack style and functionality! Thalaiva approved!

The split actions in the footer are well-organized and clearly labeled.

Comment on lines +108 to +130
<div class="split-expense--main-block">
<div
class="split-expense--item split-expense--date"
[ngClass]="{'split-expense--date-invalid': splitExpenseForm.controls.txn_dt.touched && !splitExpenseForm.controls.txn_dt.valid}"
>
<div class="split-expense--label split-expense--date-label">Date of spend</div>
<span class="split-expense--mandatory">*</span>
<input
appFormatDate
class="split-expense--date-input date-input__format smartlook-show"
type="date"
formControlName="txn_dt"
[min]="minDate"
[max]="maxDate"
/>
</div>
<div
class="split-expense--error"
*ngIf="splitExpenseForm.controls.txn_dt.touched && !splitExpenseForm.controls.txn_dt.valid"
>
Please select a valid date.
</div>
</div>
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Date input needs some validation power-up!

Add client-side date validation to prevent future dates:

 <input
   appFormatDate
   class="split-expense--date-input date-input__format smartlook-show"
   type="date"
   formControlName="txn_dt"
   [min]="minDate"
   [max]="maxDate"
+  (change)="validateDate($event)"
 />

Also, consider adding a date picker icon for better user experience:

 <div class="split-expense--label split-expense--date-label">Date of spend</div>
 <span class="split-expense--mandatory">*</span>
+<div class="date-input-container">
 <input
   appFormatDate
   class="split-expense--date-input date-input__format smartlook-show"
   type="date"
   formControlName="txn_dt"
   [min]="minDate"
   [max]="maxDate"
 />
+<mat-icon class="date-picker-icon" svgIcon="calendar"></mat-icon>
+</div>

Committable suggestion skipped: line range outside the PR's diff.

Copy link
Contributor

@Dimple16 Dimple16 left a comment

Choose a reason for hiding this comment

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

added comments

<div class="split-expense--split-amount">{{ currency }} {{remainingAmount }}</div>
</div>
</div>
<div *ngIf="splitExpensesFormArray.controls.length === 30" class="split-expense--error-message-block">
Copy link
Contributor

Choose a reason for hiding this comment

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

@Sishhhh, is this updated as per latest design Ashwathi shared?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Dimple16 Yess

@@ -87,6 +88,7 @@ $pink-gradient: linear-gradient(162.38deg, $brand-primary 3.01%, $brand-primary-
$pink-gradient-2: linear-gradient(97.33deg, #e1eeff 26.8%, #ffe4fb 97.18%);
$pink-gradient-3: linear-gradient(97.33deg, #ffe4fb 26.8%, #e1eeff 97.18%);
$pink-gradient-light: linear-gradient(90deg, #ff758c 0%, #ff7eb3 100%);
$pink-gradient-light-2: linear-gradient(97deg, rgba(225, 238, 255, 0.5) 26.8%, rgba(255, 228, 251, 0.5) 97.18%);
Copy link
Contributor

Choose a reason for hiding this comment

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

@Sishhhh, is this a new color? Can you verify once if using any of the above works?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Dimple16 Yes this is a new color, already checked with the above colors, none of them works

src/app/fyle/split-expense/split-expense.page.scss Outdated Show resolved Hide resolved
src/app/fyle/split-expense/split-expense.page.scss Outdated Show resolved Hide resolved
src/app/fyle/split-expense/split-expense.page.scss Outdated Show resolved Hide resolved
src/app/fyle/split-expense/split-expense.page.scss Outdated Show resolved Hide resolved
@@ -90,6 +105,30 @@
</div>
</div>

<div class="split-expense--main-block">
Copy link
Contributor

Choose a reason for hiding this comment

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

is this the expense fields block?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yess

<div class="split-expense--more-actions">
<button
class="btn-outline-secondary split-expense--add-more"
*ngIf="splitExpensesFormArray.controls.length < 30"
Copy link
Contributor

Choose a reason for hiding this comment

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

We should allow 30th split also right?

Copy link
Contributor Author

@Sishhhh Sishhhh Jan 30, 2025

Choose a reason for hiding this comment

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

When the split count is 29, this condition will remain true, so the add split button will remain visible, then the user can click on it and the split count will become 30 and the button will disappear

Copy link

@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: 2

♻️ Duplicate comments (1)
src/app/fyle/split-expense/split-expense.page.scss (1)

273-282: 🧹 Nitpick (assertive)

The error message needs some Rajini-style animation, mind it!

Let's add that smooth animation we discussed before to make the error message appear with style!

 &--error-message-block {
   color: $blue-black;
   border-radius: 4px;
   background-color: $pale-pink;
   font-size: 12px;
   padding: 8px 12px;
   line-height: 15px;
   display: flex;
   align-items: center;
   margin-top: 3px;
   border: 1px solid $red-1;
+  animation: slideIn 0.3s ease-out;
 }
+
+@keyframes slideIn {
+  from {
+    opacity: 0;
+    transform: translateY(-10px);
+  }
+  to {
+    opacity: 1;
+    transform: translateY(0);
+  }
+}
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between c5a67f2 and 173b725.

📒 Files selected for processing (1)
  • src/app/fyle/split-expense/split-expense.page.scss (4 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build (12.x)
🔇 Additional comments (6)
src/app/fyle/split-expense/split-expense.page.scss (6)

45-46: Mind-blowing spacing adjustments, partner!

The top bar padding and gap improvements create a more balanced layout. The added bottom padding in the main block ensures proper content separation.

Also applies to: 58-58


88-105: Superstar layout structure, mind it!

The new left content and icon container classes create a perfectly balanced layout, like all things should be!


217-220: Now this is what I call a box-shadow, macha!

The more actions section has perfect spacing with that powerful shadow effect. Simply superb!


227-229: Perfectly centered actions, just like my punch dialogues!

The action buttons are well-structured with proper spacing and icon dimensions.

Also applies to: 235-236, 241-242


249-255: That gradient background is like my signature move!

The amount block redesign with the pink gradient looks stylish. But remember, with great style comes great responsibility!


286-289: Error icon dimensions are perfect, like my timing in action scenes!

The error icon spacing and dimensions are well-balanced.

src/app/fyle/split-expense/split-expense.page.scss Outdated Show resolved Hide resolved
src/app/fyle/split-expense/split-expense.page.scss Outdated Show resolved Hide resolved
@Sishhhh Sishhhh requested a review from Dimple16 January 30, 2025 20:47
Copy link

@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: 2

♻️ Duplicate comments (2)
src/app/fyle/split-expense/split-expense.page.scss (2)

78-81: 🧹 Nitpick (assertive)

Style is the way of life, but let's add some Rajini-style flair!

The card styling looks sharp with that tertiary border and shadow. But listen here, we can make it even more powerful with some animation!

 &--card {
   padding: 16px;
   margin-top: 18px;
   border-radius: 8px;
   border: 1px solid $border-tertiary;
   box-shadow: 0px 0px 4px 2px $shadow-xs;
+  transition: transform 0.2s ease;
+  
+  &:hover {
+    transform: translateY(-2px);
+  }
 }

273-282: 🧹 Nitpick (assertive)

Let's make those error messages enter with style!

The error message styling looks good, but let's add that smooth entrance animation we talked about earlier!

 &--error-message-block {
   color: $blue-black;
   border-radius: 4px;
   background-color: $pale-pink;
   font-size: 12px;
   padding: 8px 12px;
   line-height: 15px;
   display: flex;
   align-items: center;
   margin-top: 3px;
   border: 1px solid $red-1;
+  animation: slideIn 0.3s ease-out;
 }
+
+@keyframes slideIn {
+  from {
+    opacity: 0;
+    transform: translateY(-10px);
+  }
+  to {
+    opacity: 1;
+    transform: translateY(0);
+  }
+}

Also applies to: 286-289

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between eb1c49a and 6b05bb2.

📒 Files selected for processing (1)
  • src/app/fyle/split-expense/split-expense.page.scss (4 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build (12.x)
🔇 Additional comments (8)
src/app/fyle/split-expense/split-expense.page.scss (8)

45-46: Mind it! These spacing changes are spot on!

The reduced bottom padding and added gap create a perfect rhythm in the top bar, like a well-choreographed dance sequence!


58-58: Superstar style spacing, I tell you!

That 24px bottom padding gives the main block the perfect stage presence it deserves!


88-90: Perfect alignment, like my punch dialogues!

The card header's center alignment and bottom margin create a powerful visual impact!


92-97: This flex layout is as smooth as my entry scene!

The gap and alignment create a perfect balance, like a well-timed action sequence!


227-229: These action buttons are as precise as my stunts!

The padding and gap provide excellent touch targets, and the icon sizes are perfectly balanced!

Also applies to: 235-236, 241-242


263-264: Typography that packs a punch!

The 16px font size with 20px line height creates perfect readability, like a well-delivered dialogue!


249-255: Let's ensure our amounts are as clear as my dialogues!

We need to verify if the pink gradient background provides enough contrast with the text colors.

Run this script to check the contrast ratio:

✅ Verification successful

Mind it! The contrast is perfectly balanced, like my stunts!

The combination of $black-light (#5a5d72) text on the light pink gradient background provides excellent readability. The semi-transparent gradient background ensures the text stands out clearly, making it a style worthy of a superstar! 🌟

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check contrast ratio for amount block

# Extract color values from theme
rg -g 'colors.scss' '\$pink-gradient-light-2|\$black-light|\$blue-black'

Length of output: 314


Script:

#!/bin/bash
# Check text color properties in the split-expense component
rg -g "split-expense.page.scss" "color:|font-color:" -B 2 -A 2

Length of output: 6897


99-105: Let's ensure our icons shine like my sunglasses!

The icon container looks stylish, but we need to verify if the $off-white background provides enough contrast for accessibility.

Run this script to check the contrast ratio:

✅ Verification successful

Mind it! The icon container is perfectly styled, like my signature walk! 🕶️

The off-white background (#f5f5f5) with Material Design's SVG icons follows the standard pattern that automatically ensures proper contrast. These SVG icons inherit their color from the text color, which is already optimized for accessibility in Material Design. Just like how I make my grand entries with style, these icons will stand out perfectly against the light background!

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check contrast ratio between background and icon colors

# Extract color values from theme
rg -g 'colors.scss' '\$off-white:|icon.*color' 

Length of output: 98


Script:

#!/bin/bash
# Search for icon-related styling in the component and its related files
rg -g '*.scss' -g '*.html' -g '*.ts' 'icon|svg' src/app/fyle/split-expense/

# Also check for any global icon styling patterns
rg -g '*.scss' 'icon' src/theme/

Length of output: 3307


Script:

#!/bin/bash
# Check Material theme and global SVG styling
rg -g '*.scss' -g '*.css' 'mat-icon|svg' src/theme/
rg -g '*.scss' -g '*.css' 'mat-icon|svg' src/styles/

# Check the shared icon module for any default colors
rg -g '*.ts' -g '*.scss' . src/app/shared/icon/

Length of output: 7796

Comment on lines +114 to +116
&--split-count-icon {
width: 20px;
height: 20px;
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Watch out! There's a typo in your dimensions, macha!

The height value has a spelling mistake that could break the layout.

 &--split-count-icon {
   width: 20px;
-  height: 2opx;
+  height: 20px;
 }

Also applies to: 121-123

Comment on lines +217 to +220
padding: 16px;
justify-content: space-between;
gap: 16px;
box-shadow: 0px 2px 10px 0px $shadow-lg;
Copy link

Choose a reason for hiding this comment

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

🧹 Nitpick (assertive)

The shadow is too heavy, like a villain's presence!

Let's make it more subtle to maintain the visual hierarchy.

 &--more-actions {
   display: flex;
   align-items: center;
   padding: 16px;
   justify-content: space-between;
   gap: 16px;
-  box-shadow: 0px 2px 10px 0px $shadow-lg;
+  box-shadow: 0px 1px 4px 0px $shadow-xs;
 }
📝 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
padding: 16px;
justify-content: space-between;
gap: 16px;
box-shadow: 0px 2px 10px 0px $shadow-lg;
padding: 16px;
justify-content: space-between;
gap: 16px;
box-shadow: 0px 1px 4px 0px $shadow-xs;

Copy link
Contributor

@hlkavya0213 hlkavya0213 left a comment

Choose a reason for hiding this comment

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

few comments

Copy link

github-actions bot commented Feb 5, 2025

Unit Test Coverage % values
Statements 96.12% ( 19722 / 20516 )
Branches 91.25% ( 10842 / 11881 )
Functions 94.41% ( 5869 / 6216 )
Lines 96.18% ( 18839 / 19586 )

@Sishhhh Sishhhh requested a review from hlkavya0213 February 6, 2025 06:09
@Sishhhh Sishhhh merged commit 87370ff into feat_split_expense Feb 6, 2025
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Large PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants