Skip to content

Commit

Permalink
Merge branch 'mobile_release_2023_12_08' of github.com:fylein/fyle-mo…
Browse files Browse the repository at this point in the history
…bile-app into mobile_release_2023_12_08
  • Loading branch information
Jay Budhadev authored and Jay Budhadev committed Dec 12, 2023
2 parents 67b94d2 + aaa8ad6 commit 76cb0c2
Show file tree
Hide file tree
Showing 60 changed files with 200 additions and 163 deletions.
81 changes: 81 additions & 0 deletions .github/workflows/appflow-release-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Appflow Release Branch

on:
push:
branches:
- mobile_release_*

jobs:
build-app:
runs-on: ubuntu-latest
steps:
- name: Build Android with Appflow
uses: ionic-team/appflow-build@v1
with:
token: ${{ secrets.APPFLOW_TOKEN }}
app-id: 32316914
platform: Android
build-type: debug
environment: staging
native-config: staging
upload-artifact: Android

- uses: actions/download-artifact@v2
id: download
with:
name: 'Android'
path: ./

- name: Rename file
run: mv *.apk android.apk

- name: Upload apk to Diawi
uses: rnkdsh/action-upload-diawi@v1.2.0
id: diwaiAndroid
with:
token: ${{ secrets.DIAWI_TOKEN }}
file: android.apk

- name: Build iOS on Appflow
uses: ionic-team/appflow-build@v1
with:
token: ${{ secrets.APPFLOW_TOKEN }}
app-id: 32316914
platform: iOS
build-type: development
certificate: Fyle signing
environment: staging
native-config: prod
upload-artifact: ios

- uses: actions/download-artifact@v2
id: ios
with:
name: 'ios'
path: ./

- name: Rename file
run: mv *.ipa ios.ipa

- name: Upload ipa to diawi
uses: rnkdsh/action-upload-diawi@v1.2.0
id: diwaiIos
with:
token: ${{ secrets.DIAWI_TOKEN }}
file: ios.ipa

- name: Get branch name
id: get-branch
uses: xom9ikk/split@v1
with:
string: ${{ github.ref }}
separator: refs/heads/

- name: Send Message to Slack
uses: archive/github-actions-slack@v2.0.1
id: notify
with:
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
slack-channel: C029QPGHSQL
slack-text: ${{github.event.sender.login}} pushed to ${{github.ref_name}}. \r\n \r\n APK Link ${{steps.diwaiAndroid.outputs.url}} \r\n IPA link ${{steps.diwaiIos.outputs.url}}

2 changes: 1 addition & 1 deletion src/app/auth/sign-in/sign-in.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
[loading]="googleSignInLoading"
>
<div class="sign-in--secondary-cta-btn">
<img class="sign-in--secondary-cta-btn-logo" src="../../../assets/svg/google-logo.svg" alt="fyle-logo" />
<img class="sign-in--secondary-cta-btn-logo" src="../../../assets/svg/logo-google.svg" alt="fyle-logo" />
Sign in with Google
</div>
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/mock-data/sidemenu-item.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const sidemenuItemData1: SidemenuItem = {
export const sidemenuItemData2: SidemenuItem = {
title: 'Team',
isVisible: true,
icon: 'teams',
icon: 'user-three',
isDropdownOpen: false,
disabled: false,
dropdownOptions: [
Expand Down
16 changes: 8 additions & 8 deletions src/app/core/mock-data/sidemenu.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const sidemenuData1 = [
{
title: 'Settings',
isVisible: true,
icon: 'fy-settings',
icon: 'gear',
route: ['/', 'enterprise', 'my_profile'],
},
];
Expand Down Expand Up @@ -69,7 +69,7 @@ export const PrimaryOptionsRes2: Partial<SidemenuItem>[] = [
{
title: 'Team',
isVisible: true,
icon: 'teams',
icon: 'user-three',
isDropdownOpen: false,
disabled: false,
dropdownOptions: [
Expand Down Expand Up @@ -119,7 +119,7 @@ export const getPrimarySidemenuOptionsRes1 = [
title: 'Team Reports',
isVisible: true,
route: ['/', 'enterprise', 'team_reports'],
icon: 'teams',
icon: 'user-three',
disabled: false,
},
];
Expand All @@ -135,7 +135,7 @@ export const getSecondarySidemenuOptionsRes1 = [
{
title: 'Settings',
isVisible: true,
icon: 'fy-settings',
icon: 'gear',
route: ['/', 'enterprise', 'my_profile'],
},
{
Expand All @@ -148,7 +148,7 @@ export const getSecondarySidemenuOptionsRes1 = [
{
title: 'Help',
isVisible: true,
icon: 'help',
icon: 'question-square-outline',
route: ['/', 'enterprise', 'help'],
disabled: false,
},
Expand Down Expand Up @@ -185,7 +185,7 @@ export const setSideMenuRes: Partial<SidemenuItem>[] = [
title: 'Team Reports',
isVisible: true,
route: ['/', 'enterprise', 'team_reports'],
icon: 'teams',
icon: 'user-three',
disabled: false,
},
{
Expand All @@ -198,7 +198,7 @@ export const setSideMenuRes: Partial<SidemenuItem>[] = [
{
title: 'Settings',
isVisible: true,
icon: 'fy-settings',
icon: 'gear',
route: ['/', 'enterprise', 'my_profile'],
},
{
Expand All @@ -211,7 +211,7 @@ export const setSideMenuRes: Partial<SidemenuItem>[] = [
{
title: 'Help',
isVisible: true,
icon: 'help',
icon: 'question-square-outline',
route: ['/', 'enterprise', 'help'],
disabled: false,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="camera-options--icon-container">
<mat-icon
class="camera-options--icon-container camera-options--icon-container--gallery"
svgIcon="fy-gallery"
svgIcon="image"
></mat-icon>
</div>
<div class="camera-options--content">Upload from Gallery</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="camera-options--icon-container">
<mat-icon
class="camera-options--icon-container__icon camera-options--icon-container__icon--gallery"
svgIcon="fy-gallery"
svgIcon="image"
></mat-icon>
</div>
<div class="camera-options--content">Upload from Gallery</div>
Expand Down
4 changes: 2 additions & 2 deletions src/app/fyle/my-expenses-v2/my-expenses-v2.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
</ion-button>
<ion-button class="my-expenses--header-btn" (click)="openFilters()">
<ng-container *ngIf="filterPills?.length; else noFilterAppliedIcon">
<ion-icon slot="icon-only" src="../../../assets/svg/fy-applied-filter.svg"></ion-icon>
<ion-icon slot="icon-only" src="../../../assets/svg/filter-applied.svg"></ion-icon>
</ng-container>
<ng-template #noFilterAppliedIcon>
<ion-icon slot="icon-only" src="../../../assets/svg/fy-unapplied-filter.svg"></ion-icon>
<ion-icon slot="icon-only" src="../../../assets/svg/filter.svg"></ion-icon>
</ng-template>
</ion-button>
<ng-container *ngIf="isConnected$ | async">
Expand Down
2 changes: 1 addition & 1 deletion src/app/fyle/my-view-advance/my-view-advance.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<div class="view-advance--element">
<app-fy-statistic
[icon]="'../../../../assets/svg/profile.svg'"
[icon]="'../../../../assets/svg/user-one.svg'"
[type]="StatisticTypes.STRING"
[label]="'Issued By'"
[value]="advance.creator_us_full_name || '-'"
Expand Down
2 changes: 1 addition & 1 deletion src/app/fyle/view-expense/view-expense.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
<ion-row>
<ion-col class="view-expense--icon-container">
<div class="view-expense--icon-container__background">
<ion-icon class="view-expense--icon-container__icon" src="../../../assets/svg/profile.svg"></ion-icon>
<ion-icon class="view-expense--icon-container__icon" src="../../../assets/svg/user-one.svg"></ion-icon>
</div>
</ion-col>
<ion-col class="view-expense--content-container">
Expand Down
7 changes: 5 additions & 2 deletions src/app/fyle/view-mileage/view-mileage.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@
<ion-row>
<ion-col class="view-mileage--icon-container">
<div class="view-mileage--icon-container__background">
<ion-icon class="view-mileage--icon-container__icon" src="../../../assets/svg/return-home.svg"></ion-icon>
<ion-icon
class="view-mileage--icon-container__icon"
src="../../../assets/svg/house-filled-arrow-clockwise.svg"
></ion-icon>
</div>
</ion-col>
<ion-col class="view-mileage--content-container">
Expand Down Expand Up @@ -156,7 +159,7 @@
<ion-row>
<ion-col class="view-mileage--icon-container">
<div class="view-mileage--icon-container__background">
<ion-icon class="view-mileage--icon-container__icon" src="../../../assets/svg/profile.svg"></ion-icon>
<ion-icon class="view-mileage--icon-container__icon" src="../../../assets/svg/user-one.svg"></ion-icon>
</div>
</ion-col>
<ion-col class="view-mileage--content-container">
Expand Down
2 changes: 1 addition & 1 deletion src/app/fyle/view-per-diem/view-per-diem.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<ion-row>
<ion-col class="view-per-diem--icon-container">
<div class="view-per-diem--icon-container__background">
<ion-icon class="view-per-diem--icon-container__icon" src="../../../assets/svg/profile.svg"></ion-icon>
<ion-icon class="view-per-diem--icon-container__icon" src="../../../assets/svg/user-one.svg"></ion-icon>
</div>
</ion-col>
<ion-col class="view-per-diem--content-container">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
<div class="view-team-advance-request--divider"></div>
<div class="view-team-advance-request__element">
<app-fy-statistic
icon="../../../../assets/svg/profile.svg"
icon="../../../../assets/svg/user-one.svg"
[type]="StatisticTypes.STRING"
[label]="'Employee'"
[value]="advanceRequest?.us_full_name || '-'"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CurrencyPipe } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, EventEmitter } from '@angular/core';
import { ComponentFixture, TestBed, fakeAsync, tick, waitForAsync } from '@angular/core/testing';
import { ComponentFixture, TestBed, fakeAsync, flushMicrotasks, tick, waitForAsync } from '@angular/core/testing';
import { FormsModule } from '@angular/forms';
import { MatSnackBar } from '@angular/material/snack-bar';
import { By } from '@angular/platform-browser';
Expand Down Expand Up @@ -1006,6 +1006,7 @@ describe('ViewTeamReportPageV2', () => {

const editReportButton = getElementBySelector(fixture, '.view-reports--card ion-icon') as HTMLElement;
click(editReportButton);
flushMicrotasks();
tick(2000);

expect(popoverController.create).toHaveBeenCalledOnceWith({
Expand All @@ -1032,6 +1033,7 @@ describe('ViewTeamReportPageV2', () => {

const editReportButton = getElementBySelector(fixture, '.view-reports--card ion-icon') as HTMLElement;
click(editReportButton);
flushMicrotasks();
tick(2000);

expect(popoverController.create).toHaveBeenCalledOnceWith({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('AddMorePopupComponent', () => {
expect(containerElements.length).toBe(2); // Check that there are 2 action buttons
expect(addMorePopupComponent.actionButtons).toEqual([
{ icon: 'fy-camera', title: 'Capture Receipts', mode: 'camera' },
{ icon: 'fy-gallery', title: 'Upload from Gallery', mode: 'gallery' },
{ icon: 'image', title: 'Upload from Gallery', mode: 'gallery' },
]);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class AddMorePopupComponent implements OnInit {
mode: 'camera',
},
{
icon: 'fy-gallery',
icon: 'image',
title: 'Upload from Gallery',
mode: 'gallery',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
(click)="cardOptionsClick.emit(card)"
data-testid="more-options-btn"
>
<ion-icon class="corporate-card__more-options-btn-icon" src="../../../../assets/svg/more.svg"></ion-icon>
<ion-icon
class="corporate-card__more-options-btn-icon"
src="../../../../assets/svg/vertical-dots-menu.svg"
></ion-icon>
</button>
</ion-col>
</ion-row>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,6 @@
&__more-options-btn-icon {
width: 20px;
height: 20px;
color: $dark-grey;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,7 @@
class="expenses-card--icons__policy-violated-icon"
>error</mat-icon
>
<mat-icon
*ngIf="expense.is_split"
class="expenses-card--icons__split-icon"
svgIcon="split-new"
></mat-icon>
<mat-icon *ngIf="expense.is_split" class="expenses-card--icons__split-icon" svgIcon="split"></mat-icon>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
margin-left: 4px;
width: 16px;
height: 16px;
color: $brand-primary-light;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
<mat-icon
*ngIf="expense.tx_is_split_expense"
class="expenses-card--icons__split-icon"
svgIcon="split-new"
svgIcon="split"
></mat-icon>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
margin-left: 4px;
width: 16px;
height: 16px;
color: $brand-primary-light;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<mat-icon
*ngIf="type === 'warning'"
class="alert-info-container--icon icon--alert-warning"
svgIcon="danger"
svgIcon="warning-fill"
></mat-icon>
<mat-icon *ngIf="type === 'error'" class="alert-info-container--icon" svgIcon="error-filled"></mat-icon>
<div class="alert-info-container--message">{{ message }}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
</div>
</div>
<div *ngIf="type === 'TEAM_REPORT' || type === 'ADVANCE_REQUEST'" (click)="openApproverListDialog()">
<img [src]="'../../../../assets/svg/edit.svg'" class="approver--icon" />
<ion-icon [src]="'../../../../assets/svg/edit.svg'" class="approver--icon" slot="icon-only"></ion-icon>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,7 @@
&--icon {
margin-bottom: -2px;
color: $brand-primary-light;
height: 18px;
width: 18px;
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div *ngIf="showPolicyInfo" class="policy-violation-info--container">
<div class="policy-violation-info--block">
<mat-icon class="icon--alert-warning" svgIcon="danger"></mat-icon>
<mat-icon class="icon--alert-warning" svgIcon="warning-fill"></mat-icon>
<div class="policy-violation-info--list-container">
<ul
class="policy-violation-info--list"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

<ng-container *ngIf="isPrimaryApproverSkipped">
<app-policy-violation-action
[icon]="'../../../../assets/svg/profile-outline.svg'"
[icon]="'../../../../assets/svg/user-one.svg'"
[message]="'Primary approver will be skipped'"
[actionsCount]="policyAction?.run_summary?.length"
></app-policy-violation-action>
Expand Down
Loading

0 comments on commit 76cb0c2

Please sign in to comment.