Skip to content

Commit

Permalink
mito: convert rest of links
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Diamond-Reivich committed Oct 3, 2022
1 parent ac143d6 commit df53398
Show file tree
Hide file tree
Showing 10 changed files with 118 additions and 135 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
name: 'Installation issue - post in #install-help on Discord'
name: 'Installation issue - post in #install-help on Discord or Slack'
about: 'If you''re having trouble getting started with Mito, post in #install-help
on Discord for the fastest response!'
on Discord or Slack for the fastest response!'
title: ''
labels: ''
assignees: ''

---

Hiya! You've come here looking for install help probably. We'd love to help, and the fastest way for us to do that is if you post in #install-help on Discord!
Hiya! You've come here looking for install help probably. We'd love to help, and the fastest way for us to do that is if you post in #install-help on Discord or Slack!

You can join our discord [here](https://discord.com/invite/XdJSZyejJU). Thanks - and can't wait to get you sorted!
You can join our [discord](https://discord.com/invite/XdJSZyejJU) or [Slack](https://join.slack.com/t/trymito/shared_invite/zt-1h6t163v7-xLPudO7pjQNKccXz7h7GSg). Thanks - and can't wait to get you sorted!
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ When contributing to Mito, first make sure that the changes you wish to make are

## Communication

If you're thinking of contributing to Mito, join our [discord](https://discord.gg/XdJSZyejJU).
If you're thinking of contributing to Mito, join our [discord](https://discord.gg/XdJSZyejJU) or [slack](https://join.slack.com/t/trymito/shared_invite/zt-1h6t163v7-xLPudO7pjQNKccXz7h7GSg).

## Issue Policy

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ You can find all Mito documentation available [here](https://docs.trymito.io).

## Getting Help

To get support, [join our Discord](https://discord.com/invite/XdJSZyejJU).
To get support, join our [Discord](https://discord.com/invite/XdJSZyejJU) or [Slack](https://join.slack.com/t/trymito/shared_invite/zt-1h6t163v7-xLPudO7pjQNKccXz7h7GSg).

## Docker Quick Start

Expand Down
4 changes: 2 additions & 2 deletions mitosheet/src/components/elements/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component, ReactNode } from "react";
import MitoAPI from "../../jupyter/api";
import { DISCORD_INVITE_LINK } from "../../data/documentationLinks";
import { SLACK_INVITE_LINK } from "../../data/documentationLinks";

interface Props {
children: ReactNode;
Expand Down Expand Up @@ -33,7 +33,7 @@ class ErrorBoundary extends Component<Props, State> {
if (this.state.hasError) {
return (
<p className='text-body-1 text-color-red p-10px'>
Looks like Mito had an error! Sorry about that. Rerun the Jupyter Cell above, and <a className='text-body-1-link' href={DISCORD_INVITE_LINK} target='_blank' rel="noreferrer">join our Discord for support</a> if this error occurs again.
Looks like Mito had an error! Sorry about that. Rerun the Jupyter Cell above, and <a className='text-body-1-link' href={SLACK_INVITE_LINK} target='_blank' rel="noreferrer">join our Slack for support</a> if this error occurs again.
</p>
)
}
Expand Down
6 changes: 3 additions & 3 deletions mitosheet/src/components/modals/ErrorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ModalEnum } from './modals';
import TextButton from '../elements/TextButton';
import MitoAPI from '../../jupyter/api';
import { MitoError, UIState } from '../../types';
import { DISCORD_INVITE_LINK } from '../../data/documentationLinks';
import { SLACK_INVITE_LINK } from '../../data/documentationLinks';

/*
A modal that displays error messages and gives
Expand Down Expand Up @@ -65,7 +65,7 @@ const ErrorModal = (
<TextButton
variant='dark'
width='medium'
href={DISCORD_INVITE_LINK}
href={SLACK_INVITE_LINK}
target='_blank'
onClick={() => {
props.setUIState((prevUIState) => {
Expand All @@ -74,7 +74,7 @@ const ErrorModal = (
currOpenModal: {type: ModalEnum.None}
}
})
void props.mitoAPI.log('clicked_discord_invite', {
void props.mitoAPI.log('clicked_slack_invite', {
'location': 'error modal'
});
return true;
Expand Down
4 changes: 2 additions & 2 deletions mitosheet/src/components/modals/ReplayAnalysisModals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React, { Fragment, useState } from 'react';
import MitoAPI from '../../jupyter/api';
import { DISCORD_INVITE_LINK } from '../../data/documentationLinks';
import { SLACK_INVITE_LINK } from '../../data/documentationLinks';
import { overwriteAnalysisToReplayToMitosheetCall } from '../../jupyter/jupyterUtils';
import { MitoError, UIState } from '../../types';
import DefaultModal from '../DefaultModal';
Expand Down Expand Up @@ -58,7 +58,7 @@ const ErrorReplayedAnalysisModal = (
<TextButton
variant='light'
width='medium'
href={DISCORD_INVITE_LINK}
href={SLACK_INVITE_LINK}
target='_blank'
>
Get Support
Expand Down
3 changes: 2 additions & 1 deletion mitosheet/src/data/documentationLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
export const DOCUMENTATION_LINK_TUTORIAL = "https://docs.trymito.io/getting-started/tutorial";
export const DOCUMENTATION_LINK_IMPORT = "https://docs.trymito.io/how-to/importing-data-to-mito";
export const DOCUMENTATION_LINK_SPREADSHEET_FORMULAS = "https://docs.trymito.io/how-to/interacting-with-your-data";
export const DISCORD_INVITE_LINK = "https://discord.gg/XdJSZyejJU";
export const DISCORD_INVITE_LINK = "https://discord.gg/XdJSZyejJU";
export const SLACK_INVITE_LINK = "https://join.slack.com/t/trymito/shared_invite/zt-1h6t163v7-xLPudO7pjQNKccXz7h7GSg"
10 changes: 5 additions & 5 deletions mitosheet/src/utils/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ModalEnum } from "../components/modals/modals";
import { ControlPanelTab } from "../components/taskpanes/ControlPanel/ControlPanelTaskpane";
import { getDefaultGraphParams } from "../components/taskpanes/Graph/graphUtils";
import { ALLOW_UNDO_REDO_EDITING_TASKPANES, TaskpaneType } from "../components/taskpanes/taskpanes";
import { DISCORD_INVITE_LINK } from "../data/documentationLinks";
import { SLACK_INVITE_LINK } from "../data/documentationLinks";
import { FunctionDocumentationObject, functionDocumentationObjects } from "../data/function_documentation";
import { Action, DFSource, EditorState, GridState, SheetData, UIState, ActionEnum, AnalysisData, DataframeFormat } from "../types"
import { getColumnHeaderParts, getDisplayColumnHeader, getNewColumnHeader } from "./columnHeaders";
Expand Down Expand Up @@ -567,12 +567,12 @@ export const createActions = (
// We turn off editing mode, if it is on
setEditorState(undefined);

// Open discord
window.open(DISCORD_INVITE_LINK, '_blank')
// Open slack
window.open(SLACK_INVITE_LINK, '_blank')
},
isDisabled: () => {return undefined},
searchTerms: ['help', 'contact', 'support'],
tooltip: "Join our Discord for more help."
searchTerms: ['help', 'contact', 'support', 'slack', 'discord'],
tooltip: "Join our Slack for more help."
},
[ActionEnum.Import_Dropdown]: {
type: ActionEnum.Import_Dropdown,
Expand Down
Loading

0 comments on commit df53398

Please sign in to comment.