Skip to content

File widget for references - #33755

Merged
juliusknorr merged 3 commits into
masterfrom
enh/reference-file
Mar 2, 2023
Merged

File widget for references#33755
juliusknorr merged 3 commits into
masterfrom
enh/reference-file

Conversation

@juliusknorr

@juliusknorrjuliusknorr commented Aug 30, 2022

Copy link
Copy Markdown
Member

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

Screenshot 2022-08-31 at 20 16 40

@juliusknorr
juliusknorr changed the base branch from master to enh/referencesAugust 30, 2022 13:19
@juliusknorr
juliusknorrforce-pushed the enh/references branch 2 times, most recently from 94ee906 to 1ab6698CompareAugust 31, 2022 16:03
@juliusknorr
juliusknorrforce-pushed the enh/reference-file branch 2 times, most recently from 8c1abbb to 72d6655CompareAugust 31, 2022 18:08
Base automatically changed from enh/references to masterAugust 31, 2022 18:12
@juliusknorr
juliusknorr marked this pull request as ready for review August 31, 2022 18:17
@juliusknorrjuliusknorr added this to the Nextcloud 25 milestone Aug 31, 2022
@blizzzblizzz mentioned this pull request Sep 1, 2022

@julien-ncjulien-nc left a comment

Copy link
Copy Markdown
Member

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?

Comment threadapps/files/src/reference-files.js Outdated
Comment threadapps/files/src/views/ReferenceFileWidget.vue
@juliusknorr

Copy link
Copy Markdown
MemberAuthor

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

Yes :)

@juliusknorr

Copy link
Copy Markdown
MemberAuthor

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

@julien-ncjulien-nc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🎉

@blizzzblizzz mentioned this pull request Sep 9, 2022
@skjnldsvskjnldsv mentioned this pull request Sep 15, 2022
This was referenced Sep 20, 2022
@blizzzblizzz modified the milestones: Nextcloud 25, Nextcloud 26Sep 22, 2022
@blizzzblizzz mentioned this pull request Feb 1, 2023
@skjnldsvskjnldsv mentioned this pull request Feb 23, 2023

@marcelklehrmarcelklehr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🐘

@julien-ncjulien-nc left a comment

Copy link
Copy Markdown
Member

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.

Comment threadapps/files/src/views/FileReferencePickerElement.vue Outdated
Comment threadapps/files/src/views/ReferenceFileWidget.vue
@julien-nc

Copy link
Copy Markdown
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.

@julien-ncjulien-nc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Awesome!

Signed-off-by: Julius Härtl <jus@bitgrid.net>
…to different locations
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr

Copy link
Copy Markdown
MemberAuthor

Failures unrelated

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsenhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@juliusknorr@julien-nc@marcelklehr@blizzz