This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 830
Delete groups (legacy communities system) #8027
Merged
Merged
Changes from 16 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
3e9c166
Remove deprecated feature_communities_v2_prototypes
t3chguy ab34071
Update _components
t3chguy 74368ec
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy 86201cf
i18n
t3chguy b7c832a
delint
t3chguy d279ef7
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy f44d05f
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy 8aac666
Merge branch 'develop' into t3chguy/remove-communities-v2
turt2live da4f779
Cut out a bit more dead code
turt2live afcf1e7
Merge branch 't3chguy/remove-communities-v2' into travis/del-groups
turt2live f2237d9
Carve into legacy components
turt2live 244184f
Carve into mostly the room list code
turt2live a9aeb91
Carve into instances of "groupId"
turt2live 52b35b7
Carve out more of what comes up with "groups"
turt2live 63f2be9
Carve out some settings
turt2live d461f37
ignore related groups state
turt2live a4a3b70
Remove instances of spacesEnabled
turt2live 9855105
Fix some obvious issues
turt2live c0583ea
Remove now-unused css
turt2live 3dbd7f5
Fix variable naming for legacy components
turt2live 02a63b1
Update i18n
turt2live 0d3520f
Misc cleanup from manual review
turt2live ed96634
Update snapshot for changed flag
turt2live 3f90d66
Appease linters
turt2live 5754fa1
rethemedex
turt2live e5c056f
Remove now-unused AddressPickerDialog
turt2live af28b70
Make ConfirmUserActionDialog's member a required prop
turt2live 9828acf
Remove useless override from RightPanelStore
turt2live d801d0f
Remove extraneous CSS
turt2live 36e0e09
Update i18n
turt2live 28c53b9
Merge remote-tracking branch 'origin/develop' into travis/del-groups
turt2live ad96002
Demo: "Communities are now Spaces" landing page
turt2live afa79cb
Restore linkify for group IDs
turt2live b822aa0
Demo: Dialog on click for communities->spaces notice
turt2live 41cdb40
i18n for demos
turt2live 8081b5e
Merge branch 'develop' into travis/del-groups
turt2live a45073c
i18n post-merge
turt2live 90c59fc
Update copy
turt2live a242d5f
Merge branch 'develop' into travis/del-groups
turt2live d3ffb63
Appease the linter
turt2live 7eb17a9
Merge branch 'develop' into travis/del-groups
turt2live 1257be7
Merge branch 'develop' into travis/del-groups
turt2live 46022b9
Post-merge cleanup
turt2live 8fa0189
Re-add spaces_learn_more_url to the new SdkConfig place
turt2live 4172c4c
Merge branch 'develop' into travis/del-groups
turt2live 16aec3d
Merge branch 'develop' into travis/del-groups
turt2live 1d65b4a
Round 1 of post-merge fixes
turt2live 9beb398
Merge remote-tracking branch 'origin/develop' into travis/del-groups
turt2live d33fb97
i18n
turt2live acde78a
Merge branch 'develop' into travis/del-groups
turt2live 3d7f695
Fix lint on behalf of develop
turt2live ee271c5
Appease the linter again
turt2live File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
Copyright 2020 The Matrix.org Foundation C.I.C. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
import * as React from "react"; | ||
|
||
import AutoHideScrollbar from './AutoHideScrollbar'; | ||
import { _t } from "../../languageHandler"; | ||
import SdkConfig, { DEFAULTS } from "../../SdkConfig"; | ||
|
||
interface IProps { | ||
groupId: string; | ||
} | ||
|
||
const LegacyGroupView: React.FC<IProps> = ({ groupId }) => { | ||
// XXX: Stealing classes from the HomePage component for CSS simplicity. | ||
// XXX: Inline CSS because this is all temporary | ||
const learnMoreUrl = SdkConfig.get().spaces_learn_more_url ?? DEFAULTS.spaces_learn_more_url; | ||
return <AutoHideScrollbar className="mx_HomePage mx_HomePage_default"> | ||
<div className="mx_HomePage_default_wrapper"> | ||
<h1 style={{ fontSize: '24px' }}>{ _t("That link is no longer supported") }</h1> | ||
<p> | ||
{ _t( | ||
"You're trying to access a community link (%(groupId)s).<br/>" + | ||
"Communities are no longer supported and have been replaced by spaces.<br2/>" + | ||
"<a>Learn more about spaces here.</a>", | ||
{ groupId }, | ||
{ | ||
br: () => <br />, | ||
br2: () => <br />, | ||
a: (sub) => <a href={learnMoreUrl} rel="noreferrer noopener" target="_blank">{ sub }</a>, | ||
}, | ||
) } | ||
</p> | ||
</div> | ||
</AutoHideScrollbar>; | ||
}; | ||
|
||
export default LegacyGroupView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think making it configurable solves this, given we have no control over the configs of other deployments and the link could break there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The config is mostly for branded clients, not the longevity of the link tbh.