Skip to content

Conversation

paultranvan
Copy link
Contributor

@paultranvan paultranvan commented Jun 11, 2025

Add support to Docs notes: https://github.com/suitenumerique/docs

This allows to:

  • Create a Docs note, that will make a redirection to the Docs app
  • Display the icon of a Docs note when listed in a directory

A Docs note is represented as a io.cozy.files, with a special extension,
.docs-note, and its Docs id, stored in metadata.externalId.
The mimeType is text/markdown as it is indeed a markdown file,
exported from Docs, but the extension is not .md to avoid any local
edition in an external editor, that would be eventually overwritten
by Docs.

A flag drive-lasuitedocs.enabled is required to enable this feature.

@paultranvan paultranvan force-pushed the hackdays branch 3 times, most recently from 401072d to 9b4832f Compare June 11, 2025 16:19
Copy link

bundlemon bot commented Jun 11, 2025

BundleMon

Files updated (8)
Status Path Size Limits
public/static/js/cozy.(hash).js
711.37KB (+106.93KB +17.69%) -
static/js/cozy.(hash).js
845.7KB (+106.89KB +14.47%) -
public/static/js/(chunkId).(hash).js
856.47KB (+3.49KB +0.41%) -
static/js/(chunkId).(hash).js
967.44KB (+3.17KB +0.33%) -
static/js/main.(hash).js
116.95KB (+1.17KB +1.01%) -
public/static/js/public.(hash).js
85.31KB (+951B +1.1%) -
services/dacc.js
264.79KB (-377B -0.14%) -
services/qualificationMigration.js
282.53KB (-502B -0.17%) -
Unchanged files (13)
Status Path Size Limits
(hash).js
337.62KB -
public/(hash).js
337.62KB -
public/static/js/lib-react.(hash).js
39.37KB -
static/js/lib-react.(hash).js
39.37KB -
public/static/css/cozy.(hash).css
33.73KB -
static/css/cozy.(hash).css
33.73KB -
public/static/js/lib-router.(hash).js
22.05KB -
static/js/lib-router.(hash).js
22.05KB -
static/css/main.(hash).css
16.28KB -
public/static/css/public.(hash).css
5.63KB -
manifest.webapp
1.89KB -
index.html
687B -
assets/manifest.json
185B -

Total files change +221.71KB +4.62%

Groups updated (1)
Status Path Size Limits
**/*.js
6.43MB (+222.8KB +3.5%) -
Unchanged groups (2)
Status Path Size Limits
**/*.{png,svg,ico}
2.15MB -
**/*.css
128.42KB -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

!!(file as IOCozyFile).metadata.externalId
)
}

Copy link
Member

Choose a reason for hiding this comment

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

You can now use the one from cozy-client

Add support to Docs notes: https://github.com/suitenumerique/docs

This allows to:
- Create a Docs note, that will make a redirection to the Docs app
- Display the icon of a Docs note when listed in a directory

A Docs note is represented as a io.cozy.files, with a special extension,
`.docs-note`, and its Docs id, stored in `metadata.externalId`.
The mimeType is `text/markdown` as it is indeed a markdown file,
exported from Docs, but the extension is not `.md` to avoid any local
edition in an external editor, that would be eventually overwritten
by Docs.

A flag `docs.embedded-app-url` is required to enable this feature, which
is the same flag used by the wrapper app cozy-lasuite-docs
@paultranvan paultranvan merged commit 9bb9856 into master Jun 13, 2025
4 checks passed
@paultranvan paultranvan deleted the hackdays branch June 13, 2025 08:44
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.

2 participants