Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
263 commits
Select commit Hold shift + click to select a range
396d108
fix: cs
vitormattos Dec 19, 2025
3bf2a68
fix: workaround to send the fileId ahead
vitormattos Dec 19, 2025
c832fa8
feat: add FileUploadHelper for centralized file upload validation
vitormattos Dec 19, 2025
2780f2e
feat: move envelope validation to FileService
vitormattos Dec 19, 2025
d1bd627
fix: add missing Node import in FileService
vitormattos Dec 19, 2025
0298020
refactor: simplify FileController and fix type annotations
vitormattos Dec 19, 2025
1b551c8
test: fix unit tests after FileUploadHelper injection
vitormattos Dec 19, 2025
d485f2d
feat: ensure all envelope files share same folder using envelope UUID
vitormattos Dec 19, 2025
41eabd2
fix: use real FileUploadHelper instance in tests instead of mock
vitormattos Dec 20, 2025
ac83c9c
fix: resolve test warnings and risky tests
vitormattos Dec 20, 2025
3cd32b6
feat: add validateUploadedFile method to FileService
vitormattos Dec 20, 2025
55d98b3
refactor: delay node creation until envelope folder is known
vitormattos Dec 20, 2025
002dd6c
feat: implement atomic envelope creation with rollback
vitormattos Dec 20, 2025
0f50dc3
feat: add envelope feature validation
vitormattos Dec 20, 2025
46bea8a
test: fix expected error message in envelope feature test
vitormattos Dec 20, 2025
f0c8130
fix: handle uploadedFile in getNodeFromData
vitormattos Dec 20, 2025
00426d0
fix: support uploadedFile in single file save flow
vitormattos Dec 20, 2025
a4f4ee3
feat: expose envelope_enabled config to frontend
vitormattos Dec 20, 2025
b98e153
feat: respect envelope_enabled config in file upload
vitormattos Dec 20, 2025
3adf968
fix: allow thumbnail generation for files without sign requests
vitormattos Dec 20, 2025
39a35f8
feat: display folder icon for envelopes in file list
vitormattos Dec 20, 2025
7a5f4e7
feat: centralize envelope validation in EnvelopeService
vitormattos Dec 20, 2025
e23d1c9
refactor: improve envelope file processing architecture
vitormattos Dec 20, 2025
4eaa7f0
refactor: remove envelope validation from FileService
vitormattos Dec 20, 2025
2b35ad7
refactor: remove redundant isEnvelope field from file list response
vitormattos Dec 20, 2025
feeb4f9
fix: use nodeType instead of isEnvelope for icon display
vitormattos Dec 20, 2025
be92a59
refactor: centralize file extension logic in mixin
vitormattos Dec 20, 2025
8585182
feat: add endpoint to add files to envelope
vitormattos Dec 20, 2025
4b18370
feat: add parentFileId support in RequestSignatureService
vitormattos Dec 20, 2025
3fbc56e
feat: add envelope capabilities and migrate from initialState
vitormattos Dec 20, 2025
4fb5186
feat: add UI to add files to envelope
vitormattos Dec 20, 2025
e702146
chore: update OpenAPI documentation
vitormattos Dec 20, 2025
6b7e958
docs: document multipart/form-data requirement in file upload endpoints
vitormattos Dec 20, 2025
2c86c25
feat(api): add statusText to envelope files response
vitormattos Dec 20, 2025
68538d8
refactor(api): unify envelope response structure
vitormattos Dec 20, 2025
b81fd64
test: fix CapabilitiesTest constructor mismatch
vitormattos Dec 20, 2025
2c81674
feat(api): add lazy loading support for envelope files
vitormattos Dec 20, 2025
fa4cd84
fix(ui): handle envelope preview correctly in File component
vitormattos Dec 20, 2025
09f970e
fix: return thumbnail of enevlope as folder icon
vitormattos Dec 20, 2025
b613090
fix: return predefined object instead of handmade handmade created
vitormattos Dec 20, 2025
83c0615
fix: return status text
vitormattos Dec 20, 2025
7bea5aa
chore: update documentation
vitormattos Dec 20, 2025
a5f8b87
chore: delete content of envelope when delete an envelope
vitormattos Dec 20, 2025
c8027da
fix(api): use consistent field names in formatFilesResponse
vitormattos Dec 20, 2025
11139b1
feat: store total files of envelope
vitormattos Dec 20, 2025
d85aff6
chore: replace parentFileId by parentNodeId at filter parameter
vitormattos Dec 20, 2025
a3c9563
chore: store envelope size at metadata field
vitormattos Dec 20, 2025
c25b576
chore: remove unecessary if
vitormattos Dec 20, 2025
b05f867
chore: format return of api when add a file to envelop
vitormattos Dec 20, 2025
d123138
fix: only return the file when exists
vitormattos Dec 20, 2025
2f25e1a
feat(envelope): implement lazy loading and store methods for envelope…
vitormattos Dec 20, 2025
72f21f7
feat(envelope): integrate EnvelopeFilesList into RequestSignatureTab
vitormattos Dec 20, 2025
614c83e
chore: update openapi documentation
vitormattos Dec 20, 2025
ffb7a87
fix(security): remove fileId from API responses
vitormattos Dec 20, 2025
6a4d8c1
chore: update documentation
vitormattos Dec 20, 2025
6a069c9
fix: close sidebar when list files and the file wasn't at the list
vitormattos Dec 20, 2025
513a06d
test: fix EnvelopeService unit tests after API change
vitormattos Dec 20, 2025
c06e868
chore(refactor): Move logic of save multiple files to service
vitormattos Dec 20, 2025
b33c21d
fix: send uploadedFile to save method
vitormattos Dec 20, 2025
4d5ff43
chore: moved the upload responsibility to store
vitormattos Dec 20, 2025
84a3bfc
chore: fallback
vitormattos Dec 20, 2025
f75b39b
chore: propagate signer add to envelope content
vitormattos Dec 20, 2025
ae3d808
fix: only load file metadata when is a file
vitormattos Dec 20, 2025
418858d
chore: return node type
vitormattos Dec 20, 2025
e4fd911
chore: remove unecessary unset
vitormattos Dec 20, 2025
45fc0f0
chore: propagate deletion of signer to children when is an envelope
vitormattos Dec 20, 2025
8b81148
fix: delete identify method using entity
vitormattos Dec 20, 2025
84240ce
fix: clear cache of identify method when work with envelope
vitormattos Dec 20, 2025
29084a2
fix: send node_id instead of id of libresign_file
vitormattos Dec 20, 2025
3944b92
fix: to reorder is necessary to have a file
vitormattos Dec 20, 2025
64a12ff
chore: update documentation
vitormattos Dec 20, 2025
d9cec6a
fix: prevent error when is an envelope
vitormattos Dec 20, 2025
99c239a
chore: make more clear the logic to notify
vitormattos Dec 20, 2025
421d95b
fix: only use file when exists
vitormattos Dec 20, 2025
b08ccc9
feat: add progress bar
vitormattos Dec 20, 2025
4c1b7c4
fix: use nodeId instead of file_id
vitormattos Dec 20, 2025
0c71c84
chore: add back the add signer to top and add an icon to this button
vitormattos Dec 20, 2025
c4d6714
fix: return filesCount from metadata and always return empty the files
vitormattos Dec 22, 2025
ae64c53
feat: return uuid of document at objet of visible element
vitormattos Dec 22, 2025
82e46fc
fix: add typing to return
vitormattos Dec 22, 2025
a545a3f
fix: normalize types of return
vitormattos Dec 22, 2025
78a7dad
chore: update documentation
vitormattos Dec 22, 2025
4382370
fix: send the UUID of file to prevent save to diferent file
vitormattos Dec 22, 2025
bd91f51
chore: update documentation
vitormattos Dec 22, 2025
2d53b0d
feat: add support to multiple documents when add visible elements
vitormattos Dec 22, 2025
e6457c3
feat: add method to get child sign requests by envelope and identify …
vitormattos Dec 23, 2025
d9b1c66
feat: add getPdfUrlsForSigning method for envelope support
vitormattos Dec 23, 2025
9626b83
refactor: change getNextcloudFile to return array
vitormattos Dec 23, 2025
de3beb6
feat: delegate PDF URL generation to service layer
vitormattos Dec 23, 2025
acd5853
feat: validate all files in envelope before signing
vitormattos Dec 23, 2025
aed144a
feat: add multi-PDF support in SignPDF component
vitormattos Dec 23, 2025
d6d09af
refactor: rename setDocumentToSign to setFileToSign
vitormattos Dec 23, 2025
7c2774c
chore: make compatible with sign multiple files
vitormattos Dec 23, 2025
71a8782
fix: cs
vitormattos Dec 23, 2025
1c70e07
fix(FileService): clear mapper cache for fresh nodeType read
vitormattos Dec 23, 2025
d8969af
refactor(PageController): adjust envelope validation logic
vitormattos Dec 23, 2025
d0b3ab9
refactor(Pkcs12Handler): update signature handling
vitormattos Dec 23, 2025
b15ca2a
refactor(MailNotifyListener): adjust notification flow
vitormattos Dec 23, 2025
f5d809d
refactor(IdentifyService): update identification method
vitormattos Dec 23, 2025
6dcee82
refactor(SignFileService): adjust file signing logic
vitormattos Dec 23, 2025
2a23990
refactor(VisibleElements): update component structure
vitormattos Dec 23, 2025
0872063
refactor(RequestSignatureTab): adjust sidebar layout
vitormattos Dec 23, 2025
4bfdeb4
feat(validation): add EnvelopeValidation component
vitormattos Dec 23, 2025
aa1a075
refactor(store/sign): update state management
vitormattos Dec 23, 2025
1861825
refactor(store/signMethods): adjust methods store
vitormattos Dec 23, 2025
a87644e
feat(Validation): integrate EnvelopeValidation component
vitormattos Dec 23, 2025
eda66d6
refactor(SignPDF): update main view structure
vitormattos Dec 23, 2025
f8352c8
refactor(Sign): adjust signing partial component
vitormattos Dec 23, 2025
d434198
fix: cs
vitormattos Dec 23, 2025
228aa14
libresign: PageController: document uuid param for signIdDoc for Open…
vitormattos Dec 23, 2025
2a0b75f
chore: update documentation
vitormattos Dec 23, 2025
e6390d1
fix: SignFileService tests by properly mocking getNextcloudFiles() an…
vitormattos Dec 23, 2025
5e8e977
fix: validate the new initial state
vitormattos Dec 23, 2025
b334f88
fix: consider uuid when is envelope
vitormattos Dec 23, 2025
3c8f7bc
fix: add pending class
vitormattos Dec 23, 2025
75c66ca
fix: indent
vitormattos Dec 23, 2025
ba1931d
refactor: Extract SignRequest entity management into dedicated service
vitormattos Dec 24, 2025
f68767a
fix: cs
vitormattos Dec 24, 2025
75bcc83
fix: visibility of method
vitormattos Dec 24, 2025
4570cb7
refactor: Add Psalm typedefs for envelope child structures
vitormattos Dec 24, 2025
c8353f1
refactor: Improve FileService envelope handling with stateless builder
vitormattos Dec 24, 2025
c7f2028
perf: Add lazy-loading caches to FileMapper for child file queries
vitormattos Dec 24, 2025
b18bd0d
docs: Update API controller docblocks for envelope responses
vitormattos Dec 24, 2025
16bfeb7
feat: Enhance Signer component for envelope display
vitormattos Dec 24, 2025
ebcd2aa
chore: remove unused FrontpageRoute
vitormattos Dec 24, 2025
4e6fc6c
refactor: Extract file response formatting into dedicated classes
vitormattos Dec 24, 2025
f217bfc
refactor: Remove unused FileDataAssembler and delegate to FileRespons…
vitormattos Dec 24, 2025
ca6fce4
refactor: extract signers loading logic to SignersLoader service
vitormattos Dec 24, 2025
dda975c
feat: add FileListService for file list endpoint formatting
vitormattos Dec 24, 2025
a47735b
refactor: remove unused FileResponseFormatter and FileResponseData cl…
vitormattos Dec 24, 2025
f6333c5
refactor: delegate signer loading to SignersLoader service
vitormattos Dec 24, 2025
b31841c
refactor: integrate FileListService in FileController list endpoint
vitormattos Dec 24, 2025
12432c3
feat: add resolveUid method to IdentifyMethodService
vitormattos Dec 24, 2025
33b7180
test: update FileServiceTest for refactored service dependencies
vitormattos Dec 24, 2025
bcc0a2a
fix: update documentation
vitormattos Dec 24, 2025
6ae6c28
fix: add required fields to signer response in SignersLoader
vitormattos Dec 24, 2025
b21f4ae
fix: use correct File parameter in loadCertDataFromLibreSignFile
vitormattos Dec 24, 2025
eca5ae0
fix: use getFile() to obtain file node in loadCertDataFromLibreSignFile
vitormattos Dec 24, 2025
fb4e45d
fix: use stdClass instead of arrays in loadSignersFromCertData
vitormattos Dec 24, 2025
4eb5818
fix: prevent signer overwrite when adding multiple signers to envelope
vitormattos Dec 24, 2025
733da55
fix: only set signer as me when identifier matches current user
vitormattos Dec 24, 2025
efade4a
fix: only expose sign_uuid for current user signer
vitormattos Dec 24, 2025
2af3f8c
fix: return oid to API
vitormattos Dec 24, 2025
ea3e986
fix: return the signer uuid when it's me
vitormattos Dec 24, 2025
ba8a053
fix: error page
vitormattos Dec 24, 2025
75b8e9e
chore: use object instead of array
vitormattos Dec 25, 2025
e916f5c
fix: unsubscribe listeners
vitormattos Dec 25, 2025
946b4b3
fix: make VisibleElements compatible with envelope
vitormattos Dec 25, 2025
0beb613
fix: make edition and retrieve visible elements compatible with envelop
vitormattos Dec 25, 2025
96fa5fe
fix: use same space between all elements
vitormattos Dec 25, 2025
cb4eb62
chore: update documentation
vitormattos Dec 25, 2025
6806dee
fix: remove return type
vitormattos Dec 25, 2025
de9b3a7
chore: update documentation
vitormattos Dec 25, 2025
79cf98e
fix: small improvements
vitormattos Dec 25, 2025
85dcfc9
fix: metadata always is object
vitormattos Dec 25, 2025
0cd1095
fix: always return metadata as object
vitormattos Dec 25, 2025
4feee30
chore: show filename with extension when sign document
vitormattos Dec 25, 2025
916fc77
fix: remove unecessary get
vitormattos Dec 25, 2025
7299150
fix: remove fallback
vitormattos Dec 25, 2025
4170714
fix: remove complex test to mock
vitormattos Dec 25, 2025
8919574
fix: cascade delete signer to identify_method
vitormattos Dec 25, 2025
e117560
fix: return content of envelope when send the parent reference
vitormattos Dec 26, 2025
f37b0dc
fix: load signers every time
vitormattos Dec 26, 2025
c513cb4
refactor: simplify logic
vitormattos Dec 26, 2025
8cf066f
fix: add DB group
vitormattos Dec 26, 2025
a7795a6
refactor: extract file handling into dedicated services\n\nSplit resp…
vitormattos Dec 27, 2025
f6e71f8
refactor: format visible elements using page metadata\n\nCompute top/…
vitormattos Dec 27, 2025
4ed20ff
chore: remove deprecated TFile service\n\nLegacy helper removed after…
vitormattos Dec 27, 2025
96969ca
refactor: align controllers and services with new file workflow\n\nAd…
vitormattos Dec 27, 2025
d3a0b99
docs: regenerate OpenAPI spec and TypeScript types\n\nSync API annota…
vitormattos Dec 27, 2025
a6076c1
refactor: update files store to new API response shape\n\nAdapt store…
vitormattos Dec 27, 2025
daaecc2
test: update unit tests and psalm baseline for refactor\n\nAdjust tes…
vitormattos Dec 27, 2025
db3151a
test: add unit tests for file-related services\n\nIntroduce initial u…
vitormattos Dec 27, 2025
99a174f
refactor: move formatVisibleElements to FileElementService\n\nDelegat…
vitormattos Dec 27, 2025
1aaf933
fix: order of properties
vitormattos Dec 27, 2025
9d1c3dd
chore: add SPDX header
vitormattos Dec 27, 2025
aa691b5
refactor(file): extract and centralize file formatting logic in FileL…
vitormattos Dec 27, 2025
f4b1ae0
test(file): add comprehensive unit tests for FileListService
vitormattos Dec 27, 2025
13ea4a1
feat(envelope): add FileElementService dependency and visibleElements…
vitormattos Dec 27, 2025
d4c9175
refactor(metadata): improve nodeId precedence and test coverage
vitormattos Dec 27, 2025
f63fae7
feat(settings): add getUserIdentificationSettings method with tests
vitormattos Dec 27, 2025
d2defa2
test(service): add FileElementService unit test structure
vitormattos Dec 27, 2025
cdf6c24
feat(migration): normalize file names by removing extensions
vitormattos Dec 27, 2025
2e2633f
chore(services): update service dependencies and imports
vitormattos Dec 27, 2025
d13851a
refactor(controllers): integrate FileListService changes
vitormattos Dec 27, 2025
10fab3d
chore: bump version
vitormattos Dec 27, 2025
c014de2
fix: openapi issues
vitormattos Dec 27, 2025
b061c17
fix: normalize ids
vitormattos Dec 27, 2025
37d5c64
fix: unit test
vitormattos Dec 27, 2025
51520d7
refactor: consolidate file type system to LibresignFileDetail
vitormattos Dec 28, 2025
76b7263
refactor: add return type annotation to SignRequestMapper
vitormattos Dec 28, 2025
fbb0e94
refactor: add LibresignPagination type to Pagination helper
vitormattos Dec 28, 2025
56decf2
refactor: add return type annotations to FileListService
vitormattos Dec 28, 2025
c4bddcb
refactor: initialize all LibresignSettings fields with defaults
vitormattos Dec 28, 2025
9acbf56
refactor: update controllers to use LibresignFileDetail type and fix …
vitormattos Dec 28, 2025
b680f17
refactor: update database mapper and validate helper for file ID cons…
vitormattos Dec 28, 2025
40e6b9c
refactor: update service layer to use canonical file type
vitormattos Dec 28, 2025
548967d
refactor: migrate frontend store from nodeId to id semantics
vitormattos Dec 28, 2025
eb27bee
refactor: update FileEntry components to use id-based semantics
vitormattos Dec 28, 2025
0f57b5e
refactor: update file list and request components to use id semantics
vitormattos Dec 28, 2025
2c2fcaa
refactor: update envelope and signature components to use id semantics
vitormattos Dec 28, 2025
7d2432f
chore: regenerate OpenAPI specs and TypeScript types
vitormattos Dec 28, 2025
4918d6e
test: update unit tests for file service refactoring
vitormattos Dec 28, 2025
a07bb20
refactor(api): rename parentNodeId to parentFileId for consistency
vitormattos Dec 28, 2025
f3e8a70
fix(envelope): correct file ID usage in EnvelopeFilesList
vitormattos Dec 28, 2025
4ef1b02
chore(openapi): update API schema for parentFileId parameter
vitormattos Dec 28, 2025
2f32865
fix(api): add mime and pages to ValidateFile response schema
vitormattos Dec 28, 2025
ab3bb79
refactor(file): remove redundant fileId field from file list response
vitormattos Dec 28, 2025
ddddc7b
test: fix FileListService test to use internal ID instead of nodeId
vitormattos Dec 28, 2025
4907701
test: update SettingsLoader test to expect default settings
vitormattos Dec 28, 2025
efb4021
test: fix API tests to use internal file ID instead of nodeId
vitormattos Dec 28, 2025
88b2a89
test: add comment clarifying settings behavior in FileControllerTest
vitormattos Dec 28, 2025
b9deb66
fix(api): return internal LibreSign id in upload/envelope response
vitormattos Dec 28, 2025
16856a9
fix(FileListService): add missing fileId field in files array
vitormattos Dec 28, 2025
c700165
fix: correct property name for file UUID in FileElementController
vitormattos Dec 28, 2025
9e8f6d4
refactor: replace generic file resolvers
vitormattos Dec 28, 2025
fde3c2a
fix: use file id for signer cleanup
vitormattos Dec 28, 2025
7ebfca9
fix: use fileId and not nodeid
vitormattos Dec 28, 2025
f7185d6
chore: hide open file when is an envelope
vitormattos Dec 28, 2025
7cf021f
fix: date format
vitormattos Dec 28, 2025
29ecf2e
feat(envelope): include child file metadata for envelope children
vitormattos Dec 29, 2025
c257698
refactor(validation): componentize document details and use in envelo…
vitormattos Dec 29, 2025
7bf5bc8
fix(validation): render DocMDP status using status constants
vitormattos Dec 29, 2025
07fbd4a
chore: update documentation
vitormattos Dec 29, 2025
7c3c64d
style(validation): align single-file card UI with envelope view
vitormattos Dec 29, 2025
0f012b6
style(validation): encapsulate NcListItem wrapper normalization in Do…
vitormattos Dec 29, 2025
3b906ad
style(envelope): normalize NcListItem layout in sections and prevent …
vitormattos Dec 29, 2025
acd22de
fix(validation): allow text wrapping in DocMDP description
vitormattos Dec 29, 2025
caffe83
fix(file): ensure non-empty filename for URL imports
vitormattos Dec 29, 2025
1812f71
fix: return necessary data
vitormattos Dec 29, 2025
743f592
feat(request): add envelope name prompt for multi-file uploads
vitormattos Dec 29, 2025
e77630a
feat(api): add name parameter to PATCH request-signature endpoint
vitormattos Dec 29, 2025
2562f18
fix(validation): skip signer validation when users array is empty
vitormattos Dec 29, 2025
64b8e6b
feat(service): implement envelope name update in saveFile method
vitormattos Dec 29, 2025
ac73550
feat(ui): create reusable EditNameDialog component
vitormattos Dec 29, 2025
7897f3e
refactor(ui): use EditNameDialog in RequestPicker for envelope naming
vitormattos Dec 29, 2025
4536b74
feat(ui): add inline envelope name editing with auto-save
vitormattos Dec 29, 2025
9c171da
chore: update documentation
vitormattos Dec 29, 2025
d32770d
feat(store): add rename method to useFilesStore
vitormattos Dec 29, 2025
b56137f
feat(ui): implement inline rename form in FileEntryName component
vitormattos Dec 29, 2025
f356a63
feat(ui): add rename action to FileEntryActions menu
vitormattos Dec 29, 2025
452af76
feat(ui): connect rename events and manage rename state in FileEntry
vitormattos Dec 29, 2025
6a2bef0
feat(fileslist): right-click menu at cursor with clean reset\n\n- Pos…
vitormattos Dec 29, 2025
929dce6
feat(admin): add envelope feature toggle in settings\n\n- Adds Envelo…
vitormattos Dec 29, 2025
8f0258a
feat(request-picker): enable envelope multi-select from Files
vitormattos Dec 29, 2025
8f3d99d
fix: update documentation and fix some unit tests
vitormattos Dec 29, 2025
e9a4ad1
fix: namespace
vitormattos Dec 29, 2025
8b2865a
chore: remove unused props
vitormattos Dec 29, 2025
2a62082
fix: respect openapi contract
vitormattos Dec 29, 2025
8351276
fix: make compatible with newest rule
vitormattos Dec 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,29 @@ cd tests/integration
composer i
chown -R www-data: .

# List available test steps
cd tests/integration
runuser -u www-data -- vendor/bin/behat -dl

# Running integration tests (from libresign root directory)
cd tests/integration
runuser -u www-data -- vendor/bin/behat features/<path>.feature

# Run with verbose output (shows nextcloud.log entries)
runuser -u www-data -- vendor/bin/behat features/<path>.feature -v

# Example: Run specific feature file
cd tests/integration
runuser -u www-data -- vendor/bin/behat features/auth/login.feature
```

**CRITICAL**: Like unit tests, ALWAYS run specific scenarios, NEVER run the entire integration test suite:
- Always specify which feature file to run and the row of scenario if needed
- Use `-dl` to list available test steps when writing new tests
- Use `-v` flag to see nextcloud.log output during test execution
- **Important**: steps with OCC command outputs (even with `-v`) don't appear in Behat output but are logged to `nextcloud.log`
- Running all integration tests is extremely slow and resource-intensive

**Frontend Testing**:
```bash
npm test # Jest tests
Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Developed with ❤️ by [LibreCode](https://librecode.coop). Help us transform

* [Donate with GitHub Sponsor: ![Donate using GitHub Sponsor](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/libresign)
]]></description>
<version>13.0.0-dev.3</version>
<version>13.0.0-dev.5</version>
<licence>agpl</licence>
<author mail="contact@librecode.coop" homepage="https://librecode.coop">LibreCode</author>
<types>
Expand Down
5 changes: 5 additions & 0 deletions lib/Capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace OCA\Libresign;

use OCA\Libresign\Service\EnvelopeService;
use OCA\Libresign\Service\SignatureTextService;
use OCA\Libresign\Service\SignerElementsService;
use OCP\App\IAppManager;
Expand All @@ -25,6 +26,7 @@ public function __construct(
protected SignerElementsService $signerElementsService,
protected SignatureTextService $signatureTextService,
protected IAppManager $appManager,
protected EnvelopeService $envelopeService,
) {
}

Expand All @@ -46,6 +48,9 @@ public function getCapabilities(): array {
'signature-width' => $this->signatureTextService->getSignatureWidth(),
'signature-height' => $this->signatureTextService->getSignatureHeight(),
],
'envelope' => [
'is-available' => $this->envelopeService->isEnabled(),
],
],
'version' => $this->appManager->getAppVersion('libresign'),
];
Expand Down
Loading
Loading