-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename project from "Matrix Public Archive" to "Matrix Viewer" (#280)
Mentioned in the recent blog post: https://matrix.org/blog/2023/07/what-happened-with-the-archive/#next-steps The canonical `view.matrix.org` instance is not live yet but this is pre-requisite work for that to happen.
- Loading branch information
1 parent
1d1d7d2
commit 5d444d5
Showing
60 changed files
with
611 additions
and
641 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
# 0.2.0 - _upcoming_ | ||
# 0.2.0 - _upcoming_ - Matrix Viewer | ||
|
||
- Prevent Cloudflare from overriding our own 504 timeout page, https://github.com/matrix-org/matrix-public-archive/pull/228 | ||
- Catch NSFW rooms with underscores, https://github.com/matrix-org/matrix-public-archive/pull/231 | ||
- Fix `18+` false positives with NSFW check, https://github.com/matrix-org/matrix-public-archive/pull/279 | ||
- Fix room cards sorting in the wrong direction on Firefox, https://github.com/matrix-org/matrix-public-archive/pull/261 | ||
- Remove `libera.chat` as a default since their rooms are not accessible in the archive, https://github.com/matrix-org/matrix-public-archive/pull/263 | ||
- Add reason why the archive bot is joining the room, https://github.com/matrix-org/matrix-public-archive/pull/262 | ||
- Add `/faq` redirect, https://github.com/matrix-org/matrix-public-archive/pull/265 | ||
- Use `rel=canonical` link to de-duplicate event permalinks, https://github.com/matrix-org/matrix-public-archive/pull/266, https://github.com/matrix-org/matrix-public-archive/pull/269 | ||
- Prevent join event spam with stable `reason`, https://github.com/matrix-org/matrix-public-archive/pull/268 | ||
- Don't allow previewing `shared` history rooms, https://github.com/matrix-org/matrix-public-archive/pull/239 | ||
- Prevent Cloudflare from overriding our own 504 timeout page, https://github.com/matrix-org/matrix-viewer/pull/228 | ||
- Catch NSFW rooms with underscores, https://github.com/matrix-org/matrix-viewer/pull/231 | ||
- Fix `18+` false positives with NSFW check, https://github.com/matrix-org/matrix-viewer/pull/279 | ||
- Fix room cards sorting in the wrong direction on Firefox, https://github.com/matrix-org/matrix-viewer/pull/261 | ||
- Remove `libera.chat` as a default since their rooms are not accessible, https://github.com/matrix-org/matrix-viewer/pull/263 | ||
- Add reason why the bot is joining the room, https://github.com/matrix-org/matrix-viewer/pull/262 | ||
- Add `/faq` redirect, https://github.com/matrix-org/matrix-viewer/pull/265 | ||
- Use `rel=canonical` link to de-duplicate event permalinks, https://github.com/matrix-org/matrix-viewer/pull/266, https://github.com/matrix-org/matrix-viewer/pull/269 | ||
- Prevent join event spam with stable `reason`, https://github.com/matrix-org/matrix-viewer/pull/268 | ||
- Don't allow previewing `shared` history rooms, https://github.com/matrix-org/matrix-viewer/pull/239 | ||
- Contributed by [@tulir](https://github.com/tulir) | ||
- Update FAQ to explain `world_readable` only, https://github.com/matrix-org/matrix-public-archive/pull/277 | ||
- Indicate when the room was set to `world_readable` and by who, https://github.com/matrix-org/matrix-public-archive/pull/278 | ||
- Only show `world_readable` rooms in the room directory, https://github.com/matrix-org/matrix-public-archive/pull/276 | ||
- Update FAQ to explain `world_readable` only, https://github.com/matrix-org/matrix-viewer/pull/277 | ||
- Indicate when the room was set to `world_readable` and by who, https://github.com/matrix-org/matrix-viewer/pull/278 | ||
- Only show `world_readable` rooms in the room directory, https://github.com/matrix-org/matrix-viewer/pull/276 | ||
|
||
Developer facing: | ||
|
||
- Fix eslint trying to look at `node_modules/`, https://github.com/matrix-org/matrix-public-archive/pull/275 | ||
- Fix eslint trying to look at `node_modules/`, https://github.com/matrix-org/matrix-viewer/pull/275 | ||
|
||
# 0.1.0 - 2023-05-11 | ||
|
||
- Initial public release with good enough functionality to be generally available including: room directory homepage, room archive view with calendar jump-to-date, drill-down with the time selector, following room upgrades (tombstone/predecessor), and more. Completed milestone: https://github.com/matrix-org/matrix-public-archive/milestone/1 | ||
- Initial public release with good enough functionality to be generally available including: room directory homepage, room archive view with calendar jump-to-date, drill-down with the time selector, following room upgrades (tombstone/predecessor), and more. Completed milestone: https://github.com/matrix-org/matrix-viewer/milestone/1 |
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 |
---|---|---|
@@ -1,21 +1,28 @@ | ||
# Matrix Public Archive | ||
# Matrix Viewer | ||
|
||
<a href="https://matrix.to/#/#matrix-public-archive:matrix.org"><img src="https://img.shields.io/matrix/matrix-public-archive:matrix.org.svg?label=%23matrix-public-archive%3Amatrix.org&logo=matrix&server_fqdn=matrix.org" alt="Join the community and get support at #matrix-public-archive:matrix.org" /></a> | ||
<a href="https://matrix.to/#/#matrix-viewer:matrix.org"><img src="https://img.shields.io/matrix/matrix-viewer:matrix.org.svg?label=%23matrix-viewer%3Amatrix.org&logo=matrix&server_fqdn=matrix.org" alt="Join the community and get support at #matrix-viewer:matrix.org" /></a> | ||
|
||
> **Note** | ||
> The Matrix Public Archive has been renamed to Matrix Viewer to better reflect what it | ||
> actually does and doesn't do. It's a viewer for world-readable Matrix rooms and | ||
> doesn't actually archive anything. | ||
In the vein of [feature parity with | ||
Gitter](https://github.com/vector-im/roadmap/issues/26), the goal is to make a | ||
public archive site for `world_readable` Matrix rooms like Gitter's archives | ||
Gitter](https://github.com/vector-im/roadmap/issues/26), the goal is to make an | ||
accessible public site for `world_readable` Matrix rooms like Gitter's archives | ||
which search engines can index and keep all of the content accessible/available. | ||
|
||
#### Try it out: [archive.matrix.org](https://archive.matrix.org/) 🌌 | ||
#### Try it out: [view.matrix.org](https://view.matrix.org/) 🌌 | ||
|
||
<!-- prettier-ignore --> | ||
Room directory homepage | Archive room view | ||
Room directory homepage | Room view | ||
--- | --- | ||
<img alt="A reference for how the Matrix Public Archive homepage looks. Search bar where you can find thousands of rooms using Matrix and homeserver selector. Grid of room cards showing the results." src="https://user-images.githubusercontent.com/558581/236579462-fee0f9c0-29d2-4c3d-a695-c9eaf0f744ef.png" width="440"> | ![A reference for how the Matrix Public Archive looks. Showing off a day of messages in `#gitter:matrix.org` on 2021-08-06. There is a date picker calendar in the right sidebar and a traditional chat app layout on the left.](https://user-images.githubusercontent.com/558581/234765275-28c70c49-c27f-473a-88ba-f4392ddae871.png) | ||
<img alt="A reference for how the Matrix Viewer homepage looks. Search bar where you can find thousands of rooms using Matrix and homeserver selector. Grid of room cards showing the results." src="https://user-images.githubusercontent.com/558581/236579462-fee0f9c0-29d2-4c3d-a695-c9eaf0f744ef.png" width="440"> | ![A reference for how the Matrix Viewer looks. Showing off a day of messages in `#gitter:matrix.org` on 2021-08-06. There is a date picker calendar in the right sidebar and a traditional chat app layout on the left.](https://user-images.githubusercontent.com/558581/234765275-28c70c49-c27f-473a-88ba-f4392ddae871.png) | ||
|
||
## Demo videos | ||
|
||
The demo's refer to this project as the "Matrix Public Archive" which has now been renamed to "Matrix Viewer". | ||
|
||
- [![](https://user-images.githubusercontent.com/558581/206083768-d18456de-caa3-463f-a891-96eed8054686.png) May 2023](https://www.youtube.com/watch?v=4KlNILNItGQ&t=1046s): Introducing [archive.matrix.org](https://archive.matrix.org/), the shiny new public instance of the Matrix Public Archive that everyone can share and link to. | ||
- [![](https://user-images.githubusercontent.com/558581/206083768-d18456de-caa3-463f-a891-96eed8054686.png) Aug 2022](https://www.youtube.com/watch?v=6KHQSeJTXm0&t=583s) ([blog post](https://matrix.org/blog/2022/08/05/this-week-in-matrix-2022-08-05#matrix-public-archive-website)): A quick intro of what the project looks like, the goals, what it accomplishes, and how it's a new portal into the Matrix ecosystem. | ||
- [![](https://user-images.githubusercontent.com/558581/206083768-d18456de-caa3-463f-a891-96eed8054686.png) Oct 2022](https://www.youtube.com/watch?v=UT6KSEqDUf8&t=548s): Showing off the room directory landing page used to browse everything available in the archive. | ||
|
@@ -25,7 +32,7 @@ Room directory homepage | Archive room view | |
We server-side render (SSR) the [Hydrogen](https://github.com/vector-im/hydrogen-web) | ||
Matrix client on a Node.js server (since both use JavaScript) and serve pages on the fly | ||
(with some Cloudflare caching on top) when someone requests | ||
`/archives/r/matrixhq:matrix.org/${year}/${month}/${day}`. To fetch the events for a | ||
`/r/matrixhq:matrix.org/${year}/${month}/${day}`. To fetch the events for a | ||
given day/time, we use [MSC3030](https://github.com/matrix-org/matrix-doc/pull/3030)'s | ||
`/timestamp_to_event` endpoint to jump to a given day in the timeline and fetch the | ||
messages from a Matrix homeserver. | ||
|
@@ -70,9 +77,9 @@ $ npm run start | |
## Development | ||
|
||
```sh | ||
# Clone and install the `matrix-public-archive` project | ||
$ git clone [email protected]:matrix-org/matrix-public-archive.git | ||
$ cd matrix-public-archive | ||
# Clone and install the `matrix-viewer` project | ||
$ git clone [email protected]:matrix-org/matrix-viewer.git | ||
$ cd matrix-viewer | ||
$ npm install | ||
|
||
# Edit `config/config.user-overrides.json` so that `matrixServerUrl` points to | ||
|
@@ -88,7 +95,7 @@ it into this project with the following instructions: | |
|
||
```sh | ||
# We need to use a draft branch of Hydrogen to get the custom changes needed for | ||
# `matrix-public-archive` to run. Hopefully soon, we can get all of the custom | ||
# `matrix-viewer` to run. Hopefully soon, we can get all of the custom | ||
# changes mainlined so this isn't necessary. | ||
$ git clone [email protected]:vector-im/hydrogen-web.git | ||
$ cd hydrogen-web | ||
|
@@ -98,7 +105,7 @@ $ yarn build:sdk | |
$ cd target/ && npm link && cd .. | ||
$ cd .. | ||
|
||
$ cd matrix-public-archive | ||
$ cd matrix-viewer | ||
$ npm link hydrogen-view-sdk | ||
``` | ||
|
||
|
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
File renamed without changes
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
Oops, something went wrong.