Merge branch 'master' of github.com:appsmithorg/appsmith
This commit is contained in:
commit
3e9547a8d6
28
.github/workflows/client.yml
vendored
28
.github/workflows/client.yml
vendored
|
|
@ -24,10 +24,16 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Checkout the code
|
# Checkout the code
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout the merged commit from PR and base branch
|
||||||
|
if: ${{ github.event_name == 'pull_request_target' }}
|
||||||
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
||||||
|
|
||||||
|
- name: Checkout the head commit of the branch
|
||||||
|
if: ${{ github.event_name == 'push' }}
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Figure out the PR number
|
- name: Figure out the PR number
|
||||||
run: echo ${{ github.event.pull_request.number }}
|
run: echo ${{ github.event.pull_request.number }}
|
||||||
|
|
||||||
|
|
@ -103,7 +109,15 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Checkout the code
|
# Checkout the code
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout the merged commit from PR and base branch
|
||||||
|
if: ${{ github.event_name == 'pull_request_target' }}
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
||||||
|
|
||||||
|
- name: Checkout the head commit of the branch
|
||||||
|
if: ${{ github.event_name == 'push' }}
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Use Node.js 10.16.3
|
- name: Use Node.js 10.16.3
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
|
|
@ -207,7 +221,15 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Checkout the code
|
# Checkout the code
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout the merged commit from PR and base branch
|
||||||
|
if: ${{ github.event_name == 'pull_request_target' }}
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
||||||
|
|
||||||
|
- name: Checkout the head commit of the branch
|
||||||
|
if: ${{ github.event_name == 'push' }}
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Download the react build artifact
|
- name: Download the react build artifact
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import { retryPromise } from "utils/AppsmithUtils";
|
||||||
import PerformanceTracker, {
|
import PerformanceTracker, {
|
||||||
PerformanceTransactionName,
|
PerformanceTransactionName,
|
||||||
} from "utils/PerformanceTracker";
|
} from "utils/PerformanceTracker";
|
||||||
|
import AnalyticsUtil from "utils/AnalyticsUtil";
|
||||||
|
|
||||||
class ApplicationListLoader extends React.PureComponent<any, { Page: any }> {
|
class ApplicationListLoader extends React.PureComponent<any, { Page: any }> {
|
||||||
constructor(props: any) {
|
constructor(props: any) {
|
||||||
|
|
@ -17,6 +18,7 @@ class ApplicationListLoader extends React.PureComponent<any, { Page: any }> {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
PerformanceTracker.stopTracking(PerformanceTransactionName.SIGN_UP);
|
PerformanceTracker.stopTracking(PerformanceTransactionName.SIGN_UP);
|
||||||
PerformanceTracker.stopTracking(PerformanceTransactionName.LOGIN_CLICK);
|
PerformanceTracker.stopTracking(PerformanceTransactionName.LOGIN_CLICK);
|
||||||
|
AnalyticsUtil.logEvent("APPLICATIONS_PAGE_LOAD");
|
||||||
retryPromise(() =>
|
retryPromise(() =>
|
||||||
import(/* webpackChunkName: "applications" */ "./index"),
|
import(/* webpackChunkName: "applications" */ "./index"),
|
||||||
).then(module => {
|
).then(module => {
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,7 @@ export type EventName =
|
||||||
| "OPEN_HELP"
|
| "OPEN_HELP"
|
||||||
| "INVITE_USER"
|
| "INVITE_USER"
|
||||||
| "PROPERTY_PANE_CLOSE_CLICK"
|
| "PROPERTY_PANE_CLOSE_CLICK"
|
||||||
|
| "APPLICATIONS_PAGE_LOAD"
|
||||||
| "EXECUTE_ACTION";
|
| "EXECUTE_ACTION";
|
||||||
|
|
||||||
function getApplicationId(location: Location) {
|
function getApplicationId(location: Location) {
|
||||||
|
|
@ -161,7 +162,7 @@ class AnalyticsUtil {
|
||||||
})(window);
|
})(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
static logEvent(eventName: EventName, eventData: any) {
|
static logEvent(eventName: EventName, eventData: any = {}) {
|
||||||
const windowDoc: any = window;
|
const windowDoc: any = window;
|
||||||
let finalEventData = eventData;
|
let finalEventData = eventData;
|
||||||
const userData = AnalyticsUtil.user;
|
const userData = AnalyticsUtil.user;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user