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

fix: preview app image navigation on shared with me page #11893

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

JammingBen
Copy link
Collaborator

fixes #11883

@JammingBen JammingBen self-assigned this Nov 13, 2024
Copy link

update-docs bot commented Nov 13, 2024

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

Comment on lines +49 to +51
// FIXME: this is a somewhat hacky solution to load the shared with me files.
// ideally we should check if there is a current folder and if not, use the
// folder loader to load files. unfortunately, it currently lives in the files app.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As described, this is a bit of a hacky solution. My original idea was to check the presence of a current folder. If none is given, we can assume that the user is on some page where there is no actual space (Shared with me page, search results, etc). In that case we basically want the same logic as the respective folder loader for this page. However, the folder loader currently lives in the files app... Would it maybe make sense to register folder loaders via extension? @dschmidt What do you think?

Copy link
Member

Choose a reason for hiding this comment

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

The idea of the folder loaders was definitely to make them reusable from app contexts, but I'm not sure they really fit our concept of extensions.

At least I currently don't see a use case for third party folder loaders...

Can't we just move the folder loaders to web-pkg and use them here?

Copy link
Member

Choose a reason for hiding this comment

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

We had a quick chat: for the upcoming release we want this quick fix in, as it's easy to backport to the stable branch.
In the long run we think it's best to move the folder loaders to web-pkg.
Making them extensions would be nice for consistency reasons and we can come up with theoretic use cases for that (i.e. when apps register new routes/views which should be reloadable ... but it seems a bit artificial at this point and we suggest to avoid the effort until it's actually needed)

Copy link

sonarcloud bot commented Nov 13, 2024

@JammingBen JammingBen marked this pull request as ready for review November 13, 2024 09:51
@JammingBen JammingBen merged commit d3f72bc into master Nov 14, 2024
3 checks passed
@JammingBen JammingBen deleted the fix/preview-app-folder-loading branch November 14, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Preview app is not respecting filter on Shared with me page
3 participants