Skip to content

Commit

Permalink
feat: Update All task cards (Expense / Reports / Advance) to display …
Browse files Browse the repository at this point in the history
…exact amount (#3360)
  • Loading branch information
SahilK-027 authored Dec 17, 2024
1 parent 34e84cb commit 6c60697
Show file tree
Hide file tree
Showing 7 changed files with 202 additions and 136 deletions.
28 changes: 14 additions & 14 deletions src/app/core/mock-data/task.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export const draftExpenseTaskSample = deepFreeze({
});

export const draftExpenseTaskSample2 = deepFreeze({
amount: '132.57B',
amount: '76234.47',
count: 339,
header: 'Incomplete expenses',
subheader: '339 expenses worth ₹132.57B require additional information',
subheader: '339 expenses worth ₹76234.47 require additional information',
icon: TaskIcon.WARNING,
ctas: [
{
Expand All @@ -46,10 +46,10 @@ export const potentailDuplicateTaskSample = deepFreeze({
});

export const teamReportTaskSample = deepFreeze({
amount: '733.48K',
amount: '5177243929.65',
count: 2,
header: 'Reports to be approved',
subheader: '2 reports worth ₹733.48K require your approval',
subheader: '2 reports worth ₹5177243929.65 require your approval',
icon: TaskIcon.REPORT,
ctas: [
{
Expand All @@ -60,10 +60,10 @@ export const teamReportTaskSample = deepFreeze({
});

export const sentBackReportTaskSample = deepFreeze({
amount: '4.5K',
amount: '4500.00',
count: 2,
header: 'Reports sent back!',
subheader: '2 reports worth ₹4.5K were sent back by your approver',
subheader: '2 reports worth ₹4500.00 were sent back by your approver',
icon: TaskIcon.REPORT,
ctas: [
{
Expand All @@ -74,10 +74,10 @@ export const sentBackReportTaskSample = deepFreeze({
});

export const sentBackReportTaskSingularSample = deepFreeze({
amount: '4.5K',
amount: '4500.00',
count: 1,
header: 'Report sent back!',
subheader: '1 report worth ₹4.5K was sent back by your approver',
subheader: '1 report worth ₹4500.00 was sent back by your approver',
icon: TaskIcon.REPORT,
ctas: [
{
Expand All @@ -102,10 +102,10 @@ export const unreportedExpenseTaskSample = deepFreeze({
});

export const unreportedExpenseTaskSample2 = deepFreeze({
amount: '142.26K',
amount: '30.00',
count: 3,
header: 'Expenses are ready to report',
subheader: '3 expenses worth ₹142.26K can be added to a report',
subheader: '3 expenses worth ₹30.00 can be added to a report',
icon: TaskIcon.REPORT,
ctas: [
{
Expand All @@ -116,10 +116,10 @@ export const unreportedExpenseTaskSample2 = deepFreeze({
});

export const unsubmittedReportTaskSample = deepFreeze({
amount: '93.17K',
amount: '93165.91',
count: 2,
header: 'Unsubmitted reports',
subheader: '2 reports worth ₹93.17K remain in draft state',
subheader: '2 reports worth ₹93165.91 remain in draft state',
icon: TaskIcon.REPORT,
ctas: [
{
Expand All @@ -130,10 +130,10 @@ export const unsubmittedReportTaskSample = deepFreeze({
});

export const sentBackAdvanceTaskSample = deepFreeze({
amount: '123.37M',
amount: '123370000.00',
count: 5,
header: 'Advances sent back!',
subheader: '5 advances worth ₹123.37M were sent back by your approver',
subheader: '5 advances worth ₹123370000.00 were sent back by your approver',
icon: TaskIcon.ADVANCE,
ctas: [
{
Expand Down
Loading

0 comments on commit 6c60697

Please sign in to comment.