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

Add support for opening files through viewer #2778

Merged
merged 3 commits into from
Mar 13, 2020

Conversation

danxuliu
Copy link
Member

@danxuliu danxuliu commented Jan 16, 2020

Fix #2002

At this time the Viewer can open only internal files, which are available only for registered users. Therefore the Viewer is not loaded for guests.

Also, for the time being, due to a limitation in the Viewer API, when a file is opened the Viewer allows the user to iterate through all the files in the directory of that file instead of through all the files in the conversation, as it would have been expected.

Both issues will be solved in future releases of the viewer, so when that happens how the viewer is used will be updated in Talk.

@szaimen
Copy link
Contributor

szaimen commented Mar 6, 2020

Wouldn't this PR fix also #1805?

@nickvergessen
Copy link
Member

Well you would have to click it once, it still wouldn't play "inline" as we only show the small thumbs inline

@szaimen
Copy link
Contributor

szaimen commented Mar 6, 2020

Well you would have to click it once, it still wouldn't play "inline" as we only show the small thumbs inline

That is okay for me 👍

@danxuliu danxuliu force-pushed the add-support-for-opening-files-through-viewer branch from 140ecca to 8363053 Compare March 9, 2020 18:36
@danxuliu danxuliu marked this pull request as ready for review March 12, 2020 09:40
Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works

@danxuliu
Copy link
Member Author

I have noticed that the highlight when hovering on a file overlaps the author name (although the hovering is fine when the file is grouped with the previous message from the user, in that case there is no overlap with the previous message). However right now I can not think of a way to fix that and after all it is not something terrible, so this can be fixed later.

@nickvergessen
Copy link
Member

Time to fixup 😎

Note that the "path" property was already being passed to FilePreview,
although it was not explicitly declared.

At this time the Viewer can open only internal files, which are
available only for registered users. Therefore the Viewer is not loaded
for guests.

Also, for the time being, due to a limitation in the Viewer API, when a
file is opened the Viewer allows the user to iterate through all the
files in the directory of that file instead of through all the files in
the conversation, as it would have been expected.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
A hover colour is shown around the file preview when
hovered/focused/active in a similar way to how list items or non primary
buttons are highlighted.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Like done on links, " ↗" is now added to the name of file previews to
hint that the file will be opened in a different tab/window.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu force-pushed the add-support-for-opening-files-through-viewer branch from 4326dc4 to 6ab75d7 Compare March 12, 2020 16:38
@nickvergessen nickvergessen merged commit 826bb80 into master Mar 13, 2020
@nickvergessen nickvergessen deleted the add-support-for-opening-files-through-viewer branch March 13, 2020 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve the way of opening attached pictures (and videos)
3 participants