-
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
feat: Mileage/ Per Diem expenses to depend on category #2461
Conversation
PR description must contain a link to a clickup |
1 similar comment
PR description must contain a link to a clickup |
PR description must contain a link to a clickup |
getMileageOrPerDiemCategories(): Observable<PlatformCategory[]> { | ||
const data = { | ||
params: { | ||
is_enabled: 'eq.' + true, |
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.
is_enabled: 'eq.true'
@@ -29,6 +29,7 @@ import { expectedAssignedCCCStats } from '../../core/mock-data/ccc-expense.detai | |||
import { of } from 'rxjs'; |
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.
will remove these unwanted changes
|
||
describe('MyExpensesPage', () => { | ||
fdescribe('MyExpensesPage', () => { |
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.
will remove this
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.
minor comment
margin-right: 12px; | ||
width: 24px; | ||
height: 24px; | ||
border-radius: 5px; |
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.
should it be 4/6?
@arjunaj5 please check if the tests are failing because of your changes? |
* coverage * test description update * fix tests * fix * more tests
|
* initial changes for dashboard * done * fix failing tests * pr comment fi * added categories service spy to tests * minor * remove unwanted changes * minor * remove fdescribe * test: Mileage/ Per Diem expenses to depend on category (#2468) * coverage * test description update * fix tests * fix * more tests
DOC section: https://www.notion.so/fyleuniverse/Application-Engineering-2b25fffe7b3641c3a5d90d4417a0e360?pvs=4#bb4e8bc013f140999e0937e99149c29d
https://app.clickup.com/t/85ztzt5y6
Description
🤖 Generated by Copilot at 1b53cfa
This pull request enables the creation of mileage and per diem expenses using special categories from the platform. It modifies the
dashboard.page.ts
and thecategories.service.ts
files to fetch and use these categories.🤖 Generated by Copilot at 1b53cfa
Walkthrough
🤖 Generated by Copilot at 1b53cfa
getMileageOrPerDiemCategories
to fetch the special categories for mileage and per diem expenses (link)forkJoin
operator,PlatformCategory
model, andCategoriesService
indashboard.page.ts
file (link, link)specialCategories$
to store the special categories observable (link)CategoriesService
as a dependency in the constructor ofDashboardPage
class (link)orgSettings$
andspecialCategories$
observables usingforkJoin
and passallowedExpenseTypes
object tosetupActionSheet
method (link)setupActionSheet
method to checkallowedExpenseTypes
object and display action sheet buttons accordingly (link)Clickup
Please add link here
Code Coverage
Please add code coverage here
UI Preview
Please add screenshots for UI changes