Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 5d89230

Browse files
authored
Remove IA 1.1 feedback toast (#7720)
1 parent 472115c commit 5d89230

File tree

4 files changed

+0
-66
lines changed

4 files changed

+0
-66
lines changed

res/img/ia-design-changes.png

-97.1 KB
Binary file not shown.

src/components/structures/MatrixChat.tsx

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ import { PosthogAnalytics } from '../../PosthogAnalytics';
114114
import { initSentry } from "../../sentry";
115115
import CallHandler from "../../CallHandler";
116116
import { showSpaceInvite } from "../../utils/space";
117-
import GenericToast from "../views/toasts/GenericToast";
118-
import InfoDialog from "../views/dialogs/InfoDialog";
119-
import FeedbackDialog from "../views/dialogs/FeedbackDialog";
120117
import AccessibleButton from "../views/elements/AccessibleButton";
121118
import { ActionPayload } from "../../dispatcher/payloads";
122119
import { SummarizedNotificationState } from "../../stores/notifications/SummarizedNotificationState";
@@ -1554,61 +1551,6 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
15541551
showNotificationsToast(false);
15551552
}
15561553

1557-
if (!localStorage.getItem("mx_seen_ia_1.1_changes_toast") && SettingsStore.getValue(UIFeature.Feedback)) {
1558-
const key = "IA_1.1_TOAST";
1559-
ToastStore.sharedInstance().addOrReplaceToast({
1560-
key,
1561-
title: _t("Testing small changes"),
1562-
props: {
1563-
description: _t("Your feedback is wanted as we try out some design changes."),
1564-
acceptLabel: _t("More info"),
1565-
onAccept: () => {
1566-
Modal.createDialog(InfoDialog, {
1567-
title: _t("We're testing some design changes"),
1568-
description: <>
1569-
<img
1570-
src={require("../../../res/img/ia-design-changes.png")}
1571-
width="636"
1572-
height="303"
1573-
alt=""
1574-
/>
1575-
<p>{ _t(
1576-
"Your ongoing feedback would be very welcome, so if you see anything " +
1577-
"different you want to comment on, <a>please let us know about it</a>. " +
1578-
"Click your avatar to find a quick feedback link.",
1579-
{},
1580-
{
1581-
a: sub => <AccessibleButton
1582-
kind="link"
1583-
onClick={(ev) => {
1584-
ev.preventDefault();
1585-
ev.stopPropagation();
1586-
Modal.createTrackedDialog('Feedback Dialog', '', FeedbackDialog);
1587-
}}
1588-
>
1589-
{ sub }
1590-
</AccessibleButton>,
1591-
},
1592-
) }</p>
1593-
<p>{ _t("If you'd like to preview or test some potential upcoming changes, " +
1594-
"there's an option in feedback to let us contact you.") }</p>
1595-
</>,
1596-
}, "mx_DialogDesignChanges_wrapper");
1597-
localStorage.setItem("mx_seen_ia_1.1_changes_toast", "true");
1598-
ToastStore.sharedInstance().dismissToast(key);
1599-
},
1600-
rejectLabel: _t("Dismiss"),
1601-
onReject: () => {
1602-
localStorage.setItem("mx_seen_ia_1.1_changes_toast", "true");
1603-
ToastStore.sharedInstance().dismissToast(key);
1604-
},
1605-
},
1606-
icon: "labs",
1607-
component: GenericToast,
1608-
priority: 9,
1609-
});
1610-
}
1611-
16121554
dis.fire(Action.FocusSendMessageComposer);
16131555
this.setState({
16141556
ready: true,

src/i18n/strings/en_EN.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3037,12 +3037,6 @@
30373037
"Failed to forget room %(errCode)s": "Failed to forget room %(errCode)s",
30383038
"Unable to copy room link": "Unable to copy room link",
30393039
"Unable to copy a link to the room to the clipboard.": "Unable to copy a link to the room to the clipboard.",
3040-
"Testing small changes": "Testing small changes",
3041-
"Your feedback is wanted as we try out some design changes.": "Your feedback is wanted as we try out some design changes.",
3042-
"More info": "More info",
3043-
"We're testing some design changes": "We're testing some design changes",
3044-
"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.",
3045-
"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.",
30463040
"Signed Out": "Signed Out",
30473041
"For security, this session has been signed out. Please sign in again.": "For security, this session has been signed out. Please sign in again.",
30483042
"Terms and Conditions": "Terms and Conditions",

test/end-to-end-tests/src/scenarios/toast.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export async function toastScenarios(alice: ElementSession, bob: ElementSession)
2727

2828
alice.log.step(`accepts analytics toast`);
2929
await acceptToast(alice, "Help improve Element");
30-
await rejectToast(alice, "Testing small changes");
3130
alice.log.done();
3231

3332
alice.log.step(`checks no remaining toasts`);
@@ -42,7 +41,6 @@ export async function toastScenarios(alice: ElementSession, bob: ElementSession)
4241

4342
bob.log.step(`reject analytics toast`);
4443
await rejectToast(bob, "Help improve Element");
45-
await rejectToast(bob, "Testing small changes");
4644
bob.log.done();
4745

4846
bob.log.step(`checks no remaining toasts`);

0 commit comments

Comments
 (0)