Skip to content

Commit

Permalink
Merge pull request #43 from IAM5K/expense/UI-uniformity-improvements
Browse files Browse the repository at this point in the history
Expense/UI uniformity improvements
  • Loading branch information
IAM5K authored May 30, 2024
2 parents 9b7d6a0 + b65d481 commit b208775
Show file tree
Hide file tree
Showing 27 changed files with 663 additions and 472 deletions.
15 changes: 0 additions & 15 deletions .browserslistrc

This file was deleted.

2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ trim_trailing_whitespace = true
quote_type = double

[*.md]
max_line_length = off
max_line_length = 100
trim_trailing_whitespace = false
46 changes: 40 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
"Sandeep",
"subdir"
],
"editor.formatOnSave": true,
"prettier.htmlWhitespaceSensitivity": "ignore",
"[github-actions-workflow]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
Expand All @@ -43,5 +38,44 @@
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"prettier.htmlWhitespaceSensitivity": "ignore",
"editor.formatOnSave": true,
"[github-actions-workflow]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"todohighlight.keywords": [
{
"text": "Note:",
"color": "lime",
"backgroundColor": "rgba(0, 0, 0, 0.2)",
"overviewRulerColor": "grey",
"isWholeLine": true // Highlight the complete line
},
{
"text": "Info:",
"color": "#00FFFF", // Aqua color
"backgroundColor": "rgba(0, 0, 0, 0.2)",
"isWholeLine": true // Highlight the complete line
},
{
"text": "FIXME:",
"color": "orange",
"backgroundColor": "rgba(0, 0, 0, 0.2)",
"isWholeLine": true // Highlight the complete line
},
{
"text": "TODO:",
"color": "red",
"backgroundColor": "rgba(0, 0, 0, 0.2)",
"borderRadius": "2px", // Using borderRadius along with `border`
"isWholeLine": true // Highlight the complete line
},
{
"text": "CHORE:",
"color": "#FF00FF", // Magenta color
"backgroundColor": "rgba(0, 0, 0, 0.2)",
"isWholeLine": true // Highlight the complete line
}
]
}
8 changes: 8 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions src/app/models/class/seoTags/seo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,17 @@ export class SeoTags {
content: "Sandeep Kumar",
},
];

public static expensePageTags: seoMetaTag[] = [
{
name: "description",
content:
"Summarize all your expenses here. Summarize will help you to check them down in the list immediately and later Analyze them to have an understanding about where you can spend wisely and how to manage your expenses in better way. Soon we will also give finance tips that will help you better.",
},
{
name: "keyword",
content:
"Summarize, Summarize, arise, arize, money management, expense management, cost analysis,summarize-ng, summarize-ng, digital dairy, expense analysis",
},
];
}
17 changes: 17 additions & 0 deletions src/app/models/interface/expense.interface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export interface ExpenseData {
createdAt: {
seconds: number;
nanoseconds: number;
};
date: string;
spentOn?: string;
spendedOn: string;
description: string;
amount: number;
type: string;
updatedAt: {
seconds: number;
nanoseconds: number;
};
idField?: string;
}
1 change: 1 addition & 0 deletions src/app/models/interface/masterData.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface seoMetaTag {
content: string;
}

export interface Expense {}
export interface Options {
title: string;
value: string | Date | null;
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/achievement/achievement.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class AchievementPage implements OnInit {
{
name: "keyword",
content:
"summarize-ng, Summarize, arise, arize, achievement managemnet, achievements, achievement analysis,summarize-ng, summarize-ng, digital dairy, motivation from Achievement",
"summarize-ng, Summarize, arise, arize, achievement management, achievements, achievement analysis,summarize-ng, summarize-ng, digital dairy, motivation from Achievement",
},
{
name: "author",
Expand All @@ -34,7 +34,7 @@ export class AchievementPage implements OnInit {
currentTime = new Date().getHours() + ":" + new Date().getMinutes();
achievementTypes = [
{ title: "Adventure", value: "Adventure" },
{ title: "Bussiness", value: "Bussiness" },
{ title: "Business", value: "Business" },
{ title: "Career", value: "Career" },
{ title: "Enjoyment", value: "Enjoyment" },
{ title: "Family", value: "Family" },
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>
filter-expense works!
</p>
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';

import { FilterExpenseComponent } from './filter-expense.component';

describe('FilterExpenseComponent', () => {
let component: FilterExpenseComponent;
let fixture: ComponentFixture<FilterExpenseComponent>;

beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ FilterExpenseComponent ],
imports: [IonicModule.forRoot()]
}).compileComponents();

fixture = TestBed.createComponent(FilterExpenseComponent);
component = fixture.componentInstance;
fixture.detectChanges();
}));

it('should create', () => {
expect(component).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-filter-expense',
templateUrl: './filter-expense.component.html',
styleUrls: ['./filter-expense.component.scss'],
})
export class FilterExpenseComponent implements OnInit {

constructor() { }

ngOnInit() {}

}
41 changes: 12 additions & 29 deletions src/app/pages/expense/components/analyze/analyze.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
</ion-card>
<ion-card color="primary">
<ion-card-header>
<ion-card-title>₹ {{ totalBudget }}</ion-card-title>
<ion-card-subtitle>Total Budget</ion-card-subtitle>
<ion-card-title>₹ {{totalBudget}}</ion-card-title>
<ion-card-subtitle>Budget</ion-card-subtitle>
</ion-card-header>
</ion-card>
<ion-card color="secondary">
Expand All @@ -36,46 +36,29 @@
<span *ngIf="currentExpense === 0">Calculating</span>
<span *ngIf="currentExpense !== 0">{{ currentExpense }}</span>
</ion-card-title>
<ion-card-subtitle>This Month Expenses</ion-card-subtitle>
<ion-card-subtitle>Remaining Balance</ion-card-subtitle>
</ion-card-header>
</ion-card>
<ion-card color="danger">
<ion-card-header>
<ion-card-title>₹ {{ currentBudget }}</ion-card-title>
<ion-card-subtitle>This Month Budget</ion-card-subtitle>
<ion-card-title>₹ {{currentBudget}}</ion-card-title>
<ion-card-subtitle>Exceeding Amount</ion-card-subtitle>
</ion-card-header>
</ion-card>
</div>
<div class="card ion-padding line-graph">
<h2 class="ion-text-center">Under migration for new UI <br> Will be available soon!</h2>
<!-- <div class="card ion-padding line-graph">
<div class="linechart">
<h1>Current month total expenses</h1>
<canvas
#chartA
baseChart
[width]="graphWidth"
[height]="graphHeight"
[type]="'line'"
[data]="currentMonthExpenseData"
[options]="monthlyChartOptions"
[legend]="monthlyChartLegend"
></canvas>
<canvas #chartA baseChart [width]="graphWidth" [height]="graphHeight" [type]="'line'" [data]="currentMonthExpenseData" [options]="monthlyChartOptions" [legend]="monthlyChartLegend">
</canvas>
</div>
</div>
<div class="card ion-padding">
<div class="pie-chart">
<h2>Current month category wise expenses</h2>
<canvas
#chartP
baseChart
[type]="'pie'"
[width]="graphWidth"
[height]="graphHeight"
[datasets]="pieChartDatasets"
[labels]="pieChartLabels"
[options]="pieChartOptions"
[plugins]="pieChartPlugins"
[legend]="pieChartLegend"
></canvas>
<canvas #chartP baseChart [type]="'pie'" [width]="graphWidth" [height]="graphHeight" [datasets]="pieChartDatasets" [labels]="pieChartLabels" [options]="pieChartOptions" [plugins]="pieChartPlugins" [legend]="pieChartLegend">
</canvas>
</div>
</div>
</div> -->
</ion-content>
Loading

0 comments on commit b208775

Please sign in to comment.