From f572cd937e29838364a1d6641e6706adf4aec3e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tao=20Bror=20Bojl=C3=A9n?= Date: Thu, 29 Aug 2019 16:15:04 +0100 Subject: [PATCH] add disclaimer to neighbors tab --- CHANGELOG.md | 1 + .../src/components/screens/InstanceScreen.tsx | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3baf1c5..4b1ec65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add support for logging in via an ActivityPub direct message to the instance admin. - Added option to hide edges between instances if there are only mentions in one direction (off by default). +- Added note to neighbors tab to make it explicit that blocked instances _may_ appear. ### Changed diff --git a/frontend/src/components/screens/InstanceScreen.tsx b/frontend/src/components/screens/InstanceScreen.tsx index 9e64947..ac0561f 100644 --- a/frontend/src/components/screens/InstanceScreen.tsx +++ b/frontend/src/components/screens/InstanceScreen.tsx @@ -67,6 +67,10 @@ const StyledCallout = styled(Callout)` margin: 10px 20px; width: auto; `; +const NeighborsCallout = styled(Callout)` + margin: 10px 0; + width: auto; +`; const StyledTabs = styled(Tabs)` width: 100%; padding: 0 20px; @@ -383,9 +387,16 @@ class InstanceScreenImpl extends React.PureComponent + +

+ Instances that {this.props.instanceName} has blocked may appear on this list. This can happen if users on a + blocked instance attempted to mention someone on {this.props.instanceName}. +

+

- The mention ratio is the average of how many times the two instances mention each other per status. A mention - ratio of 1 would mean that every single status contained a mention of a user on the other instance. + The mention ratio is how often people on the two instances mention each other per status. A mention ratio of 1 + would mean that every single status on {this.props.instanceName} contained a mention of someone on the other + instance, and vice versa.