Skip to content

Commit

Permalink
Merge branch 'Expensify:main' into Fix_26829_After_Logout_unsubscribe…
Browse files Browse the repository at this point in the history
…_keyboardshortcut's_documentedShortcuts
  • Loading branch information
Charan-hs authored Sep 26, 2023
2 parents 2e3bbcd + 461d694 commit 8187b3e
Show file tree
Hide file tree
Showing 253 changed files with 1,600 additions and 609 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deployExpensifyHelp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
name: Deploy ExpensifyHelp

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001037401
versionName "1.3.74-1"
versionCode 1001037402
versionName "1.3.74-2"
}

flavorDimensions "default"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ protected NotificationCompat.Builder onExtendBuilder(@NonNull Context context, @
if (payload.containsKey(ONYX_DATA_KEY)) {
Objects.requireNonNull(payload.get(ONYX_DATA_KEY)).isNull();
Log.d(TAG, "payload contains onxyData");
applyMessageStyle(context, builder, payload, arguments.getNotificationId());
String alert = message.getExtra(PushMessage.EXTRA_ALERT);
applyMessageStyle(context, builder, payload, arguments.getNotificationId(), alert);
}
} catch (Exception e) {
Log.e(TAG, "Failed to parse conversation, falling back to default notification style. SendID=" + message.getSendId(), e);
Expand Down Expand Up @@ -163,7 +164,7 @@ public Bitmap getCroppedBitmap(Bitmap bitmap) {
* @param payload Notification payload, which contains all the data we need to build the notifications.
* @param notificationID Current notification ID
*/
private void applyMessageStyle(@NonNull Context context, NotificationCompat.Builder builder, JsonMap payload, int notificationID) {
private void applyMessageStyle(@NonNull Context context, NotificationCompat.Builder builder, JsonMap payload, int notificationID, String alert) {
long reportID = payload.get("reportID").getLong(-1);
if (reportID == -1) {
return;
Expand All @@ -181,7 +182,9 @@ private void applyMessageStyle(@NonNull Context context, NotificationCompat.Buil
String name = messageData.get("person").getList().get(0).getMap().get("text").getString();
String avatar = messageData.get("avatar").getString();
String accountID = Integer.toString(messageData.get("actorAccountID").getInt(-1));
String message = messageData.get("message").getList().get(0).getMap().get("text").getString();

// Use the formatted alert message from the backend. Otherwise fallback on the message in the Onyx data.
String message = alert != null ? alert : messageData.get("message").getList().get(0).getMap().get("text").getString();
String conversationName = payload.get("roomName") == null ? "" : payload.get("roomName").getString("");

// Retrieve or create the Person object who sent the latest report comment
Expand Down
69 changes: 69 additions & 0 deletions assets/images/expensify-card.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 41 additions & 39 deletions docs/_data/_routes.yml
Original file line number Diff line number Diff line change
@@ -1,142 +1,144 @@
home:
href: home
title: Welcome to ExpensifyHelp!
description: Questions? Find the answers by clicking a Category or using the search bar located in the left-hand menu.
description: Find answers by using the search bar in the left-hand menu or by clicking the version of Expensify you're using to access the relevant resources.

platforms:
- href: expensify-classic
title: Expensify Classic
hub-title: Expensify Classic - Help & Resources
url: expensify.com
description: Your account settings will look something like this
image: /assets/images/paper-airplane.svg
hub-description: Questions? Find the answers by clicking a Category or using the search bar located in the left-hand menu.
url: www.expensify.com
description: "Your account settings look like this:"
image: /assets/images/settings-old-dot.svg

# Hubs are comprised of sections and articles. Sections contain multiple related articles, but there can be standalone articles as well
hubs:
- href: getting-started
title: Getting Started
icon: /assets/images/accounting.svg
description: From setting up your account to ensuring you get the most out of Expensify’s suite of features, click here to get started on streamlining your expense management journey.

- href: account-settings
title: Account Settings
icon: /assets/images/gears.svg
description: With only a couple of clicks, split bills with your friends or coworkers.
description: Discover how to personalize your profile, add secondary logins, and grant delegated access to employees with our comprehensive guide on Account Settings.

- href: bank-accounts-and-credit-cards
title: Bank Accounts & Credit Cards
icon: /assets/images/bank-card.svg
description: Request money for work expenses, bills, or a night out with friends.
description: Find out how to connect Expensify to your financial institutions, track credit card transactions, and best practices for reconciling company cards.

- href: billing-and-subscriptions
title: Billing & Subscriptions
icon: /assets/images/money-wings.svg
description: Best practices for how to best deploy Expensify for your business
description: Here is where you can review Expensify's billing and subscription options, plan types, and payment methods.

- href: expense-and-report-features
title: Expense & Report Features
icon: /assets/images/money-receipt.svg
description: Everything else you're looking for is right here.
description: From enabling automatic expense auditing to tracking attendees, here is where you can review tips and tutorials to streamline expense management.

- href: expensify-card
title: Expensify Card
icon: /assets/images/hand-card.svg
description: Request money for work expenses, bills, or a night out with friends.
description: Explore how the Expensify Card combines convenience and security to enhance everyday business transactions. Discover how to apply for, oversee, and maximize your card perks here.

- href: exports
title: Exports
icon: /assets/images/monitor.svg
description: Best practices for how to best deploy Expensify for your business
description: From exporting reports to creating custom templates, here is where you can learn more about Expensify's versatile export options.

- href: get-paid-back
title: Get Paid Back
description: Everything else you're looking for is right here.
icon: /assets/images/money-into-wallet.svg

- href: getting-started
title: Getting Started
description: Everything else you're looking for is right here.
icon: /assets/images/accounting.svg
description: Whether you submit an expense report or an invoice, find out here how to ensure a smooth and timely payback process every time.

- href: integrations
title: Integrations
description: Everything else you're looking for is right here.
icon: /assets/images/workflow.svg
description: Enhance Expensify’s capabilities by integrating it with your accounting or HR software. Here is where you can learn more about creating a synchronized financial management ecosystem.

- href: manage-employees-and-report-approvals
title: Manage Employees & Report Approvals
icon: /assets/images/envelope-receipt.svg
description: Everything else you're looking for is right here.
description: Master the art of overseeing employees and reports by utilizing Expensify’s automation features and approval workflows.

- href: policy-and-domain-settings
title: Policy & Domain Setting
title: Policy & Domain Settings
icon: /assets/images/shield.svg
description: Everything else you're looking for is right here.
description: Discover how to set up and manage policies, define user permissions, and implement compliance rules to maintain a secure and compliant financial management landscape.

- href: send-payments
title: Send Payments
icon: /assets/images/money-wings.svg
description: Everything else you're looking for is right here.
description: Uncover step-by-step guidance on sending direct reimbursements to employees, paying an invoice to a vendor, and utilizing third-party payment options.

- href: new-expensify
title: New Expensify
hub-title: New Expensify - Help & Resources
hub-description: Questions? Find the answers by clicking a Category or using the search bar located in the left-hand menu.
url: new.expensify.com
description: Your account settings will look something like this
image: /assets/images/paper-airplane.svg
description: "Your account settings look like this:"
image: /assets/images/settings-new-dot.svg

hubs:
- href: getting-started
title: Getting Started
icon: /assets/images/accounting.svg
description: From setting up your account to ensuring you get the most out of Expensify’s suite of features, click here to get started on streamlining your expense management journey.

- href: account-settings
title: Account Settings
icon: /assets/images/gears.svg
description: With only a couple of clicks, split bills with your friends or coworkers.
description: Discover how to personalize your profile, add secondary logins, and grant delegated access to employees with our comprehensive guide on Account Settings.

- href: bank-accounts-and-credit-cards
title: Bank Accounts & Credit Cards
icon: /assets/images/bank-card.svg
description: description
description: Find out how to connect Expensify to your financial institutions, track credit card transactions, and best practices for reconciling company cards.

- href: billing-and-plan-types
title: Billing & Plan Types
icon: /assets/images/money-wings.svg
description: description
description: Here is where you can review Expensify's billing and subscription options, plan types, and payment methods.

- href: expense-and-report-features
title: Expense & Report Features
icon: /assets/images/money-receipt.svg
description: description
description: From enabling automatic expense auditing to tracking attendees, here is where you can review tips and tutorials to streamline expense management.

- href: expensify-card
title: Expensify Card
icon: /assets/images/hand-card.svg
description: description
description: Explore how the Expensify Card combines convenience and security to enhance everyday business transactions. Discover how to apply for, oversee, and maximize your card perks here.

- href: exports
title: Exports
icon: /assets/images/monitor.svg
description: description
description: From exporting reports to creating custom templates, here is where you can learn more about Expensify's versatile export options.

- href: get-paid-back
title: Get Paid Back
icon: /assets/images/money-into-wallet.svg
description: description

- href: getting-started
title: Getting Started
icon: /assets/images/accounting.svg
description: description
description: Whether you submit an expense report or an invoice, find out here how to ensure a smooth and timely payback process every time.

- href: integrations
title: Integrations
icon: /assets/images/workflow.svg
description: description
description: Enhance Expensify’s capabilities by integrating it with your accounting or HR software. Here is where you can learn more about creating a synchronized financial management ecosystem.

- href: manage-employees-and-report-approvals
title: Manage Employees & Report Approvals
icon: /assets/images/envelope-receipt.svg
description: description
description: Master the art of overseeing employees and reports by utilizing Expensify’s automation features and approval workflows.

- href: send-payments
title: Send Payments
icon: /assets/images/money-wings.svg
description: description.
description: Uncover step-by-step guidance on sending direct reimbursements to employees, paying an invoice to a vendor, and utilizing third-party payment options.

- href: workspace-and-domain-settings
title: Workspace & Domain Settings
icon: /assets/images/shield.svg
description: description.
description: Discover how to set up and manage your workspace, define user permissions, and implement domain-level rules.
4 changes: 2 additions & 2 deletions docs/_includes/article-card.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<a class="card" href="/articles/{{ include.platform }}/{{ include.hub }}/{{ include.href }}">
<a class="article-card" href="/articles/{{ include.platform }}/{{ include.hub }}/{{ include.href }}">
<div class="body">
<h3 class="title">{{ include.title }}</h3>
<h4 class="title">{{ include.title }}</h4>
</div>
<div class="right-icon">
<img src="/assets/images/arrow-right.svg" class="base-icon"></img>
Expand Down
4 changes: 2 additions & 2 deletions docs/_includes/hub-card.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% assign hub = include.hub %}
{% assign platform = include.platform %}
<a class="card" href="/{{ platform }}/hubs/{{ hub.href }}">
<a class="hub-card" href="/{{ platform }}/hubs/{{ hub.href }}">
<div class="row">
<div class="left-icon">
<div>
<img class="icon" src="{{ hub.icon }}" alt="{{ hub.href }}"/>
</div>
<div class="body">
Expand Down
Loading

0 comments on commit 8187b3e

Please sign in to comment.