-
Notifications
You must be signed in to change notification settings - Fork 770
WEB-411: Improve alignment of Debit and Credit Amount fields #2774
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
base: dev
Are you sure you want to change the base?
WEB-411: Improve alignment of Debit and Credit Amount fields #2774
Conversation
|
Note
|
| Cohort / File(s) | Summary |
|---|---|
Journal Entry Form — layout & controls src/app/accounting/create-journal-entry/create-journal-entry.component.html |
Changed Debit and Credit Amount field classes from flex-43 to flex-24. Updated entry action buttons: show a plus-circle button when i === 0 to add an entry; show minus for i !== 0 to remove entries. |
Sequence Diagram(s)
sequenceDiagram
participant User
participant UI as JournalEntryComponent (template)
participant C as Component TS
rect `#e8f0fe`
Note right of UI: Render fields with `flex-24` and action buttons
end
User->>UI: Click plus (i===0)
UI->>C: call addEntry()
C-->>UI: update entries model
UI-->>User: re-render list (new entry added)
User->>UI: Click minus (i!==0)
UI->>C: call removeEntry(index)
C-->>UI: update entries model
UI-->>User: re-render list (entry removed)
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~10 minutes
- Areas needing attention:
- Verify corresponding component methods (
addEntry,removeEntry) exist and handle index/state correctly. - Check responsive layout to ensure
flex-24doesn't introduce wrapping or visual regressions across breakpoints. - Confirm ARIA/accessible labels for the new plus-circle button and that icons/buttons have proper click targets.
- Verify corresponding component methods (
Suggested reviewers
- gkbishnoi07
- alberto-art3ch
Pre-merge checks and finishing touches
✅ Passed checks (3 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title clearly and specifically describes the main change: improving alignment of Debit and Credit Amount fields, which matches the core objective of adjusting field positioning and spacing in the create-journal-entry component. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
✨ Finishing touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Post copyable unit tests in a comment
📜 Recent review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/app/accounting/create-journal-entry/create-journal-entry.component.html(4 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
src/app/**
⚙️ CodeRabbit configuration file
src/app/**: For Angular code: verify component separation, trackBy on *ngFor,
strict type safety, and clean observable patterns.
Files:
src/app/accounting/create-journal-entry/create-journal-entry.component.html
⏰ 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: Run Lint, Build and Deploy
🔇 Additional comments (2)
src/app/accounting/create-journal-entry/create-journal-entry.component.html (2)
52-52: Verify alignment changes achieve intended result; conflicting reviewer feedback raises concerns.The CSS class changes from
flex-43toflex-24(amount field) and fromflex-filltoflex-24(button container) represent a significant width reduction that fundamentally alters the layout proportions. However, the reviewer (gkbishnoi07) explicitly stated the change "doesn't look good" and appears to add more empty space rather than fix alignment issues.Given this feedback contradicts your stated intent to remove unnecessary gaps, please verify:
- The visual appearance matches the intended alignment improvement
- Whether the width reduction from flex-43 to flex-24 (50% narrower) achieves better alignment or inadvertently creates the spacing issue the reviewer observed
- Test on different viewport sizes (the template uses
responsive-columnbreakpoints)Also applies to: 61-61
65-73: AI summary conflicts with code changes shown.The AI-generated summary states: "Added plus-circle button when i === 0 to add an entry in both debit and credit sections; minus button remains for i !== 0." However, these button logic blocks (lines 65–73 and 106–114) are not marked as changed (
~) in the annotated code, implying they existed prior to this PR.Please clarify whether the button logic is part of this PR's scope or if only the CSS class changes are intentional.
Also applies to: 106-114
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.
Comment @coderabbitai help to get the list of available commands and usage tips.
|
heyy @gkbishnoi07 please consider |
steinwinde
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide a single commit instead of two, i.e. squash your commits.
0bcef74 to
1bc6f3c
Compare
|
@steinwinde just updated my pr ! |
|
@steinwinde you can check now |
|
@steinwinde @gkbishnoi07 please take a look |
|
@AnvayKharb please create or mention jira ticket related to this PRs |
|
heyy @gkbishnoi07 my jira ticket number is web-411 as I've mentioned |
|
Please mention in Pr description! Where it mentioned?? |
|
Hey @gkbishnoi07 , that was my mistake — I hadn’t mentioned it earlier. I’ve now updated my PR description accordingly. |
|
@AnvayKharb this change doesn’t look good to me. What exactly did you modify? It seems like you’ve just added more empty space instead of fixing the issue. |
gkbishnoi07
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you want to make it good you can align the fields properly
“Affected GL Entry (Debit)” and “Debit Amount” should be placed directly under “Office”, and “Affected GL Entry (Credit)” and “Credit Amount” should be under “Currency” and “External Asset Owner” respectively.
…e Journal Entry form - Changed Debit Amount field from flex-43 to flex-24 to align under Currency field - Changed Credit Amount field from flex-43 to flex-24 to align under External Asset Owner field - Kept all add/remove button functionality intact
1bc6f3c to
cb57e85
Compare
On the Create Journal Entry page, the alignment of the Debit Amount and Credit Amount fields is inconsistent. These fields leave unnecessary empty space and are not aligned with the corresponding GL Entry fields, which affects the visual balance of the form.
This update adjusts only the alignment of these two fields so they fill the vacant space appropriately. No other UI elements or layout sections were changed.
What Was Improved
Aligned Debit Amount field next to “Affected GL Entry (Debit)” by removing the empty gap.
Aligned Credit Amount field next to “Affected GL Entry (Credit)” in the same way.
Ensured no other form layout, spacing, or styling was modified.
Related Issues and Discussion
Fixes: #WEB-411
Before:
After:
Summary by CodeRabbit
Style
New Features