-
Notifications
You must be signed in to change notification settings - Fork 15
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: delete personal_card.model.ts and places where it was used #3398
fix: delete personal_card.model.ts and places where it was used #3398
Conversation
Caution Review failedThe pull request is closed. WalkthroughIn a thunderous display of code refactoring, this pull request obliterates the Changes
Suggested labels
Suggested reviewers
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (28)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (7)
src/app/core/mock-data/personal-cards.data.ts
(0 hunks)src/app/core/models/personal_card.model.ts
(0 hunks)src/app/core/services/personal-cards.service.spec.ts
(2 hunks)src/app/core/services/personal-cards.service.ts
(1 hunks)src/app/fyle/personal-cards/personal-cards.page.spec.ts
(0 hunks)src/app/shared/components/bank-account-cards/bank-account-card/bank-account-card.component.spec.ts
(3 hunks)src/app/shared/components/bank-account-cards/bank-account-card/bank-account-card.component.ts
(2 hunks)
💤 Files with no reviewable changes (3)
- src/app/core/models/personal_card.model.ts
- src/app/fyle/personal-cards/personal-cards.page.spec.ts
- src/app/core/mock-data/personal-cards.data.ts
🔇 Additional comments (7)
src/app/shared/components/bank-account-cards/bank-account-card/bank-account-card.component.ts (1)
36-36
: Aiyoo! Constructor is much leaner now, thalaiva.Removing the
LaunchDarklyService
from the constructor is like removing extra baggage, making this code unstoppable. Great work, boss!src/app/shared/components/bank-account-cards/bank-account-card/bank-account-card.component.spec.ts (3)
10-10
: Ayya, this import be looking fine!
No major concerns, boss!
107-107
: Thalaiva, referencingdeletePersonalCardPlatformRes.data
is neat!
That’s a well-structured approach, saar!
117-117
: Aiyoo, verifying thedeleteAccount
call is perfect!
All lined up well, friend!src/app/core/services/personal-cards.service.ts (1)
Line range hint
242-250
: Saar, the freshdeleteAccount
method is straightforward and powerful!
Removing the old parameter clearly simplifies the design.src/app/core/services/personal-cards.service.spec.ts (2)
8-8
: Magizhchi! The import fordeletePersonalCardPlatformRes
is in harmony with your tidy clean-up, boss.
Carry on, no trouble here!
169-169
: Aiyoo, the test’sdeleteAccount
usage is top-notch!
All set like a blockbuster scene, my friend!
src/app/shared/components/bank-account-cards/bank-account-card/bank-account-card.component.ts
Show resolved
Hide resolved
* fix: remove model PersonalCardTxnExpenseSuggestion * fix: transform personal card public queryParams to platform (#3400) * fix: transform personal card public queryParams to platform * fix: remove use of old PersonalCardTxn model (#3401) * remove use of old PersonalCardTxn model * delete public PersonalCardTxn model and corresponding ldFlag (#3402)
|
* fix: remove old getPersonalCardsCount method * remove old getPersonalCards method * replace use of PersonalCard model with PlatformPersonalCard * fix: delete personal_card.model.ts and places where it was used (#3398) * delete personal_card.model.ts and places where it was used * fix: remove model PersonalCardTxnExpenseSuggestion (#3399) * fix: remove model PersonalCardTxnExpenseSuggestion * fix: transform personal card public queryParams to platform (#3400) * fix: transform personal card public queryParams to platform * fix: remove use of old PersonalCardTxn model (#3401) * remove use of old PersonalCardTxn model * delete public PersonalCardTxn model and corresponding ldFlag (#3402)
* fix: remove old getPersonalCardsCount method * remove old getPersonalCards method * replace use of PersonalCard model with PlatformPersonalCard * fix: delete personal_card.model.ts and places where it was used (#3398) * delete personal_card.model.ts and places where it was used * fix: remove model PersonalCardTxnExpenseSuggestion (#3399) * fix: remove model PersonalCardTxnExpenseSuggestion * fix: transform personal card public queryParams to platform (#3400) * fix: transform personal card public queryParams to platform * fix: remove use of old PersonalCardTxn model (#3401) * remove use of old PersonalCardTxn model * delete public PersonalCardTxn model and corresponding ldFlag (#3402)
Clickup
https://app.clickup.com/t/86cx8awe8
Code Coverage
Please add code coverage here
UI Preview
Please add screenshots for UI changes
Summary by CodeRabbit
Refactor
PersonalCard
model and associated mock data.LaunchDarklyService
dependencies from account deletion logic.Bug Fixes
Chores