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

File widget for references #33755

Merged
merged 3 commits into from
Mar 2, 2023
Merged

File widget for references #33755

merged 3 commits into from
Mar 2, 2023

Conversation

juliushaertl
Copy link
Member

@juliushaertl juliushaertl commented Aug 30, 2022

Follow up to #33494 to implement the frontend for a files widget

Screenshot 2022-08-31 at 20 16 40

@juliushaertl juliushaertl changed the base branch from master to enh/references August 30, 2022 13:19
@juliushaertl juliushaertl force-pushed the enh/references branch 2 times, most recently from 94ee906 to 1ab6698 Compare August 31, 2022 16:03
@juliushaertl juliushaertl force-pushed the enh/reference-file branch 2 times, most recently from 8c1abbb to 72d6655 Compare August 31, 2022 18:08
Base automatically changed from enh/references to master August 31, 2022 18:12
@juliushaertl juliushaertl marked this pull request as ready for review August 31, 2022 18:17
@juliushaertl juliushaertl added enhancement 3. to review Waiting for reviews labels Aug 31, 2022
@juliushaertl juliushaertl added this to the Nextcloud 25 milestone Aug 31, 2022
@blizzz blizzz mentioned this pull request Sep 1, 2022
Copy link
Member

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

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

Awesome. Some little remarks.

Also, how do we register a ReferenceProvider? I suppose there is an extra registerReferenceProvider to IRegistrationContext, right?

apps/files/src/reference-files.js Outdated Show resolved Hide resolved
apps/files/src/views/ReferenceFileWidget.vue Show resolved Hide resolved
@juliushaertl
Copy link
Member Author

Also, how do we register a ReferenceProvider? I suppose there is an extra registerReferenceProvider to IRegistrationContext, right?

Yes :)

@juliushaertl
Copy link
Member Author

I've split the event out to get it in separately. #33818

Copy link
Member

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

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

🎉

Copy link
Member

@marcelklehr marcelklehr left a comment

Choose a reason for hiding this comment

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

🐘

Copy link
Member

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

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

The dialog appears with padding in the picker modal:
image
I guess this can be partially solved in this implementation but would also maybe require adjustments in the picker implementation.

Also there are 2 close buttons, one from the picker, one from the dialog. We could hide the one from the dialog IMO.

apps/files/src/views/FileReferencePickerElement.vue Outdated Show resolved Hide resolved
apps/files/src/views/ReferenceFileWidget.vue Show resolved Hide resolved
@julien-nc
Copy link
Member

@juliushaertl It seems that dist/files-reference-files.js is not included in your commits.
If I compile it locally, it loads but then the widget and custom picker are not registered and I get
[link picker] files reference provider is discoverable but does not have any related search provider or custom picker component registered in the browser console log.

Copy link
Member

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

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

Awesome!

@juliushaertl
Copy link
Member Author

Failures unrelated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants