Skip to content

Feat/embed filepicker - #249

Open
diocas wants to merge 8 commits into
cernboxfrom
feat/embed_filepicker
Open

Feat/embed filepicker#249
diocas wants to merge 8 commits into
cernboxfrom
feat/embed_filepicker

Conversation

@diocas

@diocas diocas commented May 18, 2026

Copy link
Copy Markdown

New embedded mode to replace the current file picker that we expose to Indico and CodiMD.

Made changes to try to be as close as the current implementation but still needs to be tested.

@diocas
diocas marked this pull request as ready for review June 5, 2026 06:37

@Gerry-Cern Gerry-Cern left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, fixed some small bugs and added some unit test.

@diocas
diocas force-pushed the feat/embed_filepicker branch from 3a5b0e1 to 938cb1a Compare June 17, 2026 11:17
@diocas
diocas force-pushed the feat/embed_filepicker branch from 938cb1a to 8a79585 Compare June 30, 2026 09:58
dschmidt and others added 7 commits July 6, 2026 15:07
To allow them to be downloaded without the user token.
Allows embeding the UI and delegating the attach action (via a post message).
Users have to select files, and the application will then ask cernbox to return the list of files selected with the respective download urls.
Since folders cannot be downloaded, it prevents their selection to make it clear to users.
…on embed mode. Update tests to ensure correct message posting behavior and add checks for file selection in embed mode.
@diocas
diocas force-pushed the feat/embed_filepicker branch from 8a79585 to b9e42a7 Compare July 6, 2026 13:07
The embedded web instance used by FilePickerModal.vue posts the picked
resource back to the parent as-is. On backends that don't return
downloadURL via WebDAV PROPFIND, that field is simply absent, and
downstream consumers (e.g. web-app-external's insertGraphic/insertFile)
had to work around it with a second webdav.getFileInfo round-trip.

Adds useEmbedModeDownloadUrl, mirroring EmbedActions.vue's existing
withSignedUrls (used by the location-picker "Select" flow, gated on
capabilityStore.supportUrlSigning, same signing call as
useDownloadFile.ts's regular download button) but scoped to a single
resource and applied to the file-pick flow that never had it:
ResourceTable.vue's fileClicked and ResourceTiles.vue's emitTileClick
now sign the clicked resource before posting owncloud-embed:file-pick,
if and only if downloadURL isn't already present.
@diocas
diocas requested review from jessegeens and rawe0 July 27, 2026 12:00

@rawe0 rawe0 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good to me, tested on qa.

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.

5 participants