mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
add email link to request new extension or webhook
This commit is contained in:
@@ -12,6 +12,8 @@ import {
|
||||
IconButton,
|
||||
Menu,
|
||||
MenuItem,
|
||||
Divider,
|
||||
ListItemIcon,
|
||||
Switch,
|
||||
Tooltip,
|
||||
Typography,
|
||||
@@ -21,6 +23,7 @@ import ExtensionIcon from "@src/assets/icons/Extension";
|
||||
import DuplicateIcon from "@src/assets/icons/Copy";
|
||||
import EditIcon from "@mui/icons-material/EditOutlined";
|
||||
import DeleteIcon from "@mui/icons-material/DeleteOutlined";
|
||||
import EmailIcon from "@mui/icons-material/EmailOutlined";
|
||||
|
||||
import EmptyState from "@src/components/EmptyState";
|
||||
import {
|
||||
@@ -30,6 +33,7 @@ import {
|
||||
ExtensionType,
|
||||
} from "./utils";
|
||||
import { DATE_TIME_FORMAT } from "@src/constants/dates";
|
||||
import { EMAIL_REQUEST } from "@src/constants/externalLinks";
|
||||
|
||||
export interface IExtensionListProps {
|
||||
extensions: IExtension[];
|
||||
@@ -105,6 +109,20 @@ export default function ExtensionList({
|
||||
{extensionNames[type]}
|
||||
</MenuItem>
|
||||
))}
|
||||
|
||||
<Divider variant="middle" />
|
||||
|
||||
<MenuItem
|
||||
component="a"
|
||||
href={EMAIL_REQUEST}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<ListItemIcon>
|
||||
<EmailIcon aria-label="Send email" />
|
||||
</ListItemIcon>
|
||||
Request new Extension…
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
</Stack>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useState, useRef } from "react";
|
||||
import { useAtom } from "jotai";
|
||||
import { format, formatRelative } from "date-fns";
|
||||
import CopyIcon from "@src/assets/icons/Copy";
|
||||
|
||||
import {
|
||||
Stack,
|
||||
@@ -13,22 +13,25 @@ import {
|
||||
IconButton,
|
||||
Menu,
|
||||
MenuItem,
|
||||
Divider,
|
||||
ListItemIcon,
|
||||
Switch,
|
||||
Tooltip,
|
||||
Typography,
|
||||
Link,
|
||||
} from "@mui/material";
|
||||
import AddIcon from "@mui/icons-material/Add";
|
||||
import WebhookIcon from "@src/assets/icons/Webhook";
|
||||
import LogsIcon from "@src/assets/icons/CloudLogs";
|
||||
import EditIcon from "@mui/icons-material/EditOutlined";
|
||||
import DeleteIcon from "@mui/icons-material/DeleteOutlined";
|
||||
import CopyIcon from "@src/assets/icons/Copy";
|
||||
import EmailIcon from "@mui/icons-material/EmailOutlined";
|
||||
|
||||
import EmptyState from "@src/components/EmptyState";
|
||||
import { webhookTypes, webhookNames, IWebhook, WebhookType } from "./utils";
|
||||
import { DATE_TIME_FORMAT } from "@src/constants/dates";
|
||||
import { useProjectContext } from "@src/contexts/ProjectContext";
|
||||
import { useAtom } from "jotai";
|
||||
import { EMAIL_REQUEST } from "@src/constants/externalLinks";
|
||||
import {
|
||||
modalAtom,
|
||||
cloudLogFiltersAtom,
|
||||
@@ -109,6 +112,20 @@ export default function WebhookList({
|
||||
{webhookNames[type]}
|
||||
</MenuItem>
|
||||
))}
|
||||
|
||||
<Divider variant="middle" />
|
||||
|
||||
<MenuItem
|
||||
component="a"
|
||||
href={EMAIL_REQUEST}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<ListItemIcon>
|
||||
<EmailIcon aria-label="Send email" />
|
||||
</ListItemIcon>
|
||||
Request new webhook…
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
</Stack>
|
||||
|
||||
|
||||
@@ -53,3 +53,5 @@ export const WIKI_LINKS = _mapValues(
|
||||
WIKI_PATHS,
|
||||
(path) => EXTERNAL_LINKS.docs + path
|
||||
);
|
||||
|
||||
export const EMAIL_REQUEST = `mailto:hello@rowy.io?subject=Feature%20request%3A%20Webhooks%2FExtension%2FOther&body=**Please%20describe%20the%20problem%20you%20are%20trying%20to%20solve%3A**%0D%0A(Please%20provide%20as%20much%20information%20as%20you%20can%20to%20help%20us%20address%20faster)%0D%0A%0D%0A%0D%0A**Describe%20the%20solution%20you%E2%80%99d%20like%3A**%0D%0A%0D%0A%0D%0A**Optionally%2C%20describe%20how%20you%20currently%20solve%20this%20problem%20or%20any%20alternatives%20that%20you've%20considered%3A**%0D%0A%0D%0A%0D%0A**Optionally%2C%20additional%20context%3A**%0D%0A(Add%20any%20other%20context%2C%20screenshots%2C%20or%20screen%20recordings)%0D%0A%0D%0A`;
|
||||
|
||||
Reference in New Issue
Block a user