mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Remove IA 1.1 feedback toast (#7720)
This commit is contained in:
parent
472115cd9c
commit
5d89230271
Binary file not shown.
Before Width: | Height: | Size: 97 KiB |
@ -114,9 +114,6 @@ import { PosthogAnalytics } from '../../PosthogAnalytics';
|
||||
import { initSentry } from "../../sentry";
|
||||
import CallHandler from "../../CallHandler";
|
||||
import { showSpaceInvite } from "../../utils/space";
|
||||
import GenericToast from "../views/toasts/GenericToast";
|
||||
import InfoDialog from "../views/dialogs/InfoDialog";
|
||||
import FeedbackDialog from "../views/dialogs/FeedbackDialog";
|
||||
import AccessibleButton from "../views/elements/AccessibleButton";
|
||||
import { ActionPayload } from "../../dispatcher/payloads";
|
||||
import { SummarizedNotificationState } from "../../stores/notifications/SummarizedNotificationState";
|
||||
@ -1554,61 +1551,6 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
||||
showNotificationsToast(false);
|
||||
}
|
||||
|
||||
if (!localStorage.getItem("mx_seen_ia_1.1_changes_toast") && SettingsStore.getValue(UIFeature.Feedback)) {
|
||||
const key = "IA_1.1_TOAST";
|
||||
ToastStore.sharedInstance().addOrReplaceToast({
|
||||
key,
|
||||
title: _t("Testing small changes"),
|
||||
props: {
|
||||
description: _t("Your feedback is wanted as we try out some design changes."),
|
||||
acceptLabel: _t("More info"),
|
||||
onAccept: () => {
|
||||
Modal.createDialog(InfoDialog, {
|
||||
title: _t("We're testing some design changes"),
|
||||
description: <>
|
||||
<img
|
||||
src={require("../../../res/img/ia-design-changes.png")}
|
||||
width="636"
|
||||
height="303"
|
||||
alt=""
|
||||
/>
|
||||
<p>{ _t(
|
||||
"Your ongoing feedback would be very welcome, so if you see anything " +
|
||||
"different you want to comment on, <a>please let us know about it</a>. " +
|
||||
"Click your avatar to find a quick feedback link.",
|
||||
{},
|
||||
{
|
||||
a: sub => <AccessibleButton
|
||||
kind="link"
|
||||
onClick={(ev) => {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
Modal.createTrackedDialog('Feedback Dialog', '', FeedbackDialog);
|
||||
}}
|
||||
>
|
||||
{ sub }
|
||||
</AccessibleButton>,
|
||||
},
|
||||
) }</p>
|
||||
<p>{ _t("If you'd like to preview or test some potential upcoming changes, " +
|
||||
"there's an option in feedback to let us contact you.") }</p>
|
||||
</>,
|
||||
}, "mx_DialogDesignChanges_wrapper");
|
||||
localStorage.setItem("mx_seen_ia_1.1_changes_toast", "true");
|
||||
ToastStore.sharedInstance().dismissToast(key);
|
||||
},
|
||||
rejectLabel: _t("Dismiss"),
|
||||
onReject: () => {
|
||||
localStorage.setItem("mx_seen_ia_1.1_changes_toast", "true");
|
||||
ToastStore.sharedInstance().dismissToast(key);
|
||||
},
|
||||
},
|
||||
icon: "labs",
|
||||
component: GenericToast,
|
||||
priority: 9,
|
||||
});
|
||||
}
|
||||
|
||||
dis.fire(Action.FocusSendMessageComposer);
|
||||
this.setState({
|
||||
ready: true,
|
||||
|
@ -3037,12 +3037,6 @@
|
||||
"Failed to forget room %(errCode)s": "Failed to forget room %(errCode)s",
|
||||
"Unable to copy room link": "Unable to copy room link",
|
||||
"Unable to copy a link to the room to the clipboard.": "Unable to copy a link to the room to the clipboard.",
|
||||
"Testing small changes": "Testing small changes",
|
||||
"Your feedback is wanted as we try out some design changes.": "Your feedback is wanted as we try out some design changes.",
|
||||
"More info": "More info",
|
||||
"We're testing some design changes": "We're testing some design changes",
|
||||
"Your ongoing feedback would be very welcome, so if you see anything different you want to comment on, <a>please let us know about it</a>. Click your avatar to find a quick feedback link.": "Your ongoing feedback would be very welcome, so if you see anything different you want to comment on, <a>please let us know about it</a>. Click your avatar to find a quick feedback link.",
|
||||
"If you'd like to preview or test some potential upcoming changes, there's an option in feedback to let us contact you.": "If you'd like to preview or test some potential upcoming changes, there's an option in feedback to let us contact you.",
|
||||
"Signed Out": "Signed Out",
|
||||
"For security, this session has been signed out. Please sign in again.": "For security, this session has been signed out. Please sign in again.",
|
||||
"Terms and Conditions": "Terms and Conditions",
|
||||
|
@ -27,7 +27,6 @@ export async function toastScenarios(alice: ElementSession, bob: ElementSession)
|
||||
|
||||
alice.log.step(`accepts analytics toast`);
|
||||
await acceptToast(alice, "Help improve Element");
|
||||
await rejectToast(alice, "Testing small changes");
|
||||
alice.log.done();
|
||||
|
||||
alice.log.step(`checks no remaining toasts`);
|
||||
@ -42,7 +41,6 @@ export async function toastScenarios(alice: ElementSession, bob: ElementSession)
|
||||
|
||||
bob.log.step(`reject analytics toast`);
|
||||
await rejectToast(bob, "Help improve Element");
|
||||
await rejectToast(bob, "Testing small changes");
|
||||
bob.log.done();
|
||||
|
||||
bob.log.step(`checks no remaining toasts`);
|
||||
|
Loading…
Reference in New Issue
Block a user