Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deep link date in room #24914

Open
MadLittleMods opened this issue Mar 24, 2023 · 4 comments
Open

Deep link date in room #24914

MadLittleMods opened this issue Mar 24, 2023 · 4 comments
Labels
A-Jump-To-Date Jump to date headers or slash command T-Enhancement X-Needs-Product More input needed from the Product team Z-Gitter Issues relating to or coming out of the Gitter migration, feature parity, etc

Comments

@MadLittleMods
Copy link
Contributor

MadLittleMods commented Mar 24, 2023

Your use case

What would you like to do?

Originally proposed by @pdurbin in #7677,

Add a way to navigate by URL to a point in time (date/time) of the room.

Examples from other platforms:

Jump to date exists in Element under a feature flag but that requires first loading the room, then manually using the date picker to get to where you want. It's much more convenient to be able to link directly to that point in the room. You can already link people to a given event in the room, ex. https://app.element.io/#/room/#matrix-public-archive:matrix.org/$iVgFrFNtRWAoCALNo1-uLATWSirw27S1XunPUgPoCFM

And this issue is proposing to also be able to link to a point in the room but by date and time. ex.

  • https://app.element.io/#/room/#matrix-public-archive:matrix.org/2023-03-24
  • https://app.element.io/#/room/#matrix-public-archive:matrix.org/2023-03-24T06:20:30
  • These examples are just using the new Date().toISOString() format without the timezone.

Why would you like to do it?

For my own specific use case, I'd like to use it for Gitter in order to setup redirects from the old Gitter URL scheme to the new world at app.gitter.im (Gitter branded Element), see https://gitlab.com/gitterHQ/gitter.im/-/issues/9

How would you like to achieve it?

The jump can be facilitated with MSC3030's /timestamp_to_event (also known as jump to date) API.

Should the dates be in UTC or the users local timezome? It kinda makes most sense to keep them in UTC so anyone visiting the same link will end up in the same place.

Have you considered any alternatives?

No response

Additional context

No response

@MadLittleMods MadLittleMods added T-Enhancement A-Jump-To-Date Jump to date headers or slash command Z-Gitter Issues relating to or coming out of the Gitter migration, feature parity, etc labels Mar 24, 2023
@t3chguy t3chguy added the X-Needs-Product More input needed from the Product team label Mar 24, 2023
@pdurbin
Copy link

pdurbin commented Mar 26, 2023

@MadLittleMods thanks for opening this issue! 🎉 🚀 ❤️

I'm especially interested in making Matrix friendly to open source projects who want to discuss their projects in the open, allowing people who don't have Matrix accounts to view the decision making, etc.

Notes on improving Element onboarding

The #matrix-spec link you mentioned ( https://app.element.io/#/room/#matrix-spec:matrix.org/$DdmM10clLdpwEUlZKvR1_eICIFZn4G4jdocorPOXCzM ) doesn't show the message to someone who isn't on Matrix:

Screenshot 2023-03-26 at 8 54 26 AM

However, here's a nice example from #matrix-public-archive (where you and I hang out) that does: https://app.element.io/#/room/#matrix-public-archive:matrix.org/$HfJZVb15vGDEEkhwApLYeydnP1b4Wbehx4ZwJpS3fmA

Screenshot 2023-03-26 at 8 54 30 AM

I had to construct that second link manually but I'm so happy it works! 🎉

What if the "share" feature allowed us to get at the app.element.io link rather that just the matrix.to link, which is problematic for people who aren't on Matrix. Please allow me to illustrate.

If I use the "share" feature within Element to get the link...

Screenshot 2023-03-26 at 9 01 27 AM

... and give it to someone who isn't on Matrix, they don't see the message:

Screenshot 2023-03-26 at 9 01 38 AM

At best, they click "Continue" and see this:

Screenshot 2023-03-26 at 9 03 05 AM

Maybe they click the default, Element and see this:

Screenshot 2023-03-26 at 9 03 55 AM

And hopefully they power through to continue with Element in their browser to finally see the message:

Screenshot 2023-03-26 at 9 04 03 AM

@t3chguy
Copy link
Member

t3chguy commented Mar 27, 2023

The #matrix-spec link you mentioned ( app.element.io/#/room/#matrix-spec:matrix.org/$DdmM10clLdpwEUlZKvR1_eICIFZn4G4jdocorPOXCzM ) doesn't show the message to someone who isn't on Matrix:

That's up to the room adminship:

image

Its set to Members only so it isn't shown to non-members.

What if the "share" feature allowed us to get at the app.element.io link rather that just the matrix.to link, which is problematic for people who aren't on Matrix. Please allow me to illustrate.

It can do, it depends on permalinkPrefix in the config.json of the deployment, app.element.io won't be re-configured as such though so I suggest hosting your own deployment. Keep in mind you'd actually end up adding difficulty for users on non-web platforms, e.g. Desktop or Mobile or non-Element users.

@MadLittleMods
Copy link
Contributor Author

MadLittleMods commented Mar 27, 2023

@pdurbin Updating the onboarding flows into Matrix is probably best discussed in another issue like element-hq/element-meta#534

Feel free to create an Element Web issue for having both a "Copy matrix.to permalink" and "Copy permalink" option. For example, we will have that in the Matrix Public Archive because sometimes you want to link to the archive and sometimes you want the matrix.to permalink for that position. This could also makes sense for Element.

Overall, I think being able to configure a trusted web instance would help the onboarding friction with matrix.to.

There is still a separate problem of "I just want to see the content" that matrix.to doesn't solve whereas a link to Element can show content even if Element is a bit slow to load. But this is where I think adapting some flows once Matrix Public Archive comes to fruition will help a lot.

@pdurbin
Copy link

pdurbin commented Mar 28, 2023

@MadLittleMods subscribed!! Thank you!! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Jump-To-Date Jump to date headers or slash command T-Enhancement X-Needs-Product More input needed from the Product team Z-Gitter Issues relating to or coming out of the Gitter migration, feature parity, etc
Projects
None yet
Development

No branches or pull requests

3 participants