allow dismissing instance load error

This commit is contained in:
Tao Bror Bojlén 2019-08-22 12:09:06 +02:00
parent 1bf600b1ac
commit 93ef16589a
No known key found for this signature in database
GPG key ID: C6EC7AAB905F9E6F
3 changed files with 13 additions and 2 deletions

View file

@ -21,7 +21,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added ON DELETE to `most_recent_crawl` table, such that it can handle previously-crawled but now-dead instances. - Added ON DELETE to `most_recent_crawl` table, such that it can handle previously-crawled but now-dead instances.
- You can now login to the admin view by clicking, not just by pressing enter. - You can now login to the admin view by clicking, not just by pressing enter.
- Add handling for weirdly-formatted Friendica peers - Add handling for weirdly-formatted Friendica peers.
- If the details of an instance fail to load, it's now easy to dismiss the error.
## [2.7.0 - 2018-08-18] ## [2.7.0 - 2018-08-18]

View file

@ -14,6 +14,15 @@ const AboutScreen: React.FC = () => (
. It works by crawling every instance it can find and aggregating statistics on communication between these. . It works by crawling every instance it can find and aggregating statistics on communication between these.
</p> </p>
<p>
You can follow the project on{" "}
<a href="https://x0r.be/@fediversespace" target="_blank" rel="noopener noreferrer">
Mastodon
</a>
.
</p>
<br />
<H2>FAQ</H2> <H2>FAQ</H2>
<H4>Why can't I see details about my instance?</H4> <H4>Why can't I see details about my instance?</H4>
@ -44,6 +53,7 @@ const AboutScreen: React.FC = () => (
to reflect that smaller instances can play a large role in a community. to reflect that smaller instances can play a large role in a community.
</p> </p>
<br />
<H2>Credits</H2> <H2>Credits</H2>
<a href="https://nlnet.nl/project/fediverse_space/" target="_blank" rel="noopener noreferrer"> <a href="https://nlnet.nl/project/fediverse_space/" target="_blank" rel="noopener noreferrer">

View file

@ -105,7 +105,7 @@ class InstanceScreenImpl extends React.PureComponent<IInstanceScreenProps, IInst
if (this.props.isLoadingInstanceDetails || this.state.isProcessingNeighbors || this.state.isLoadingLocalGraph) { if (this.props.isLoadingInstanceDetails || this.state.isProcessingNeighbors || this.state.isLoadingLocalGraph) {
content = this.renderLoadingState(); content = this.renderLoadingState();
} else if (this.props.instanceLoadError || this.state.localGraphLoadError || !this.props.instanceDetails) { } else if (this.props.instanceLoadError || this.state.localGraphLoadError || !this.props.instanceDetails) {
return (content = <ErrorState />); content = <ErrorState />;
} else if (this.props.instanceDetails.status.toLowerCase().indexOf("personal instance") > -1) { } else if (this.props.instanceDetails.status.toLowerCase().indexOf("personal instance") > -1) {
content = this.renderPersonalInstanceErrorState(); content = this.renderPersonalInstanceErrorState();
} else if (this.props.instanceDetails.status.toLowerCase().indexOf("robots.txt") > -1) { } else if (this.props.instanceDetails.status.toLowerCase().indexOf("robots.txt") > -1) {