Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
265 commits
Select commit Hold shift + click to select a range
cc8faa0
feat: add FileUploadHelper for centralized file upload validation
vitormattos Dec 19, 2025
1374c7d
feat: move envelope validation to FileService
vitormattos Dec 19, 2025
167f765
fix: add missing Node import in FileService
vitormattos Dec 19, 2025
d708403
refactor: simplify FileController and fix type annotations
vitormattos Dec 19, 2025
6725fe1
test: fix unit tests after FileUploadHelper injection
vitormattos Dec 19, 2025
e7e5cb2
feat: ensure all envelope files share same folder using envelope UUID
vitormattos Dec 19, 2025
55205db
fix: use real FileUploadHelper instance in tests instead of mock
vitormattos Dec 20, 2025
f3c54c3
fix: resolve test warnings and risky tests
vitormattos Dec 20, 2025
22eea4c
feat: add validateUploadedFile method to FileService
vitormattos Dec 20, 2025
4516c1c
refactor: delay node creation until envelope folder is known
vitormattos Dec 20, 2025
6ed6629
feat: implement atomic envelope creation with rollback
vitormattos Dec 20, 2025
383cbe7
feat: add envelope feature validation
vitormattos Dec 20, 2025
75f3213
test: fix expected error message in envelope feature test
vitormattos Dec 20, 2025
61a2952
fix: handle uploadedFile in getNodeFromData
vitormattos Dec 20, 2025
8da1f0a
fix: support uploadedFile in single file save flow
vitormattos Dec 20, 2025
fd19eb2
feat: expose envelope_enabled config to frontend
vitormattos Dec 20, 2025
1f6488a
feat: respect envelope_enabled config in file upload
vitormattos Dec 20, 2025
5ec4657
fix: allow thumbnail generation for files without sign requests
vitormattos Dec 20, 2025
3eb6c2d
feat: display folder icon for envelopes in file list
vitormattos Dec 20, 2025
1ae926b
feat: centralize envelope validation in EnvelopeService
vitormattos Dec 20, 2025
dd9a80e
refactor: improve envelope file processing architecture
vitormattos Dec 20, 2025
89e43c9
refactor: remove envelope validation from FileService
vitormattos Dec 20, 2025
cf96985
refactor: remove redundant isEnvelope field from file list response
vitormattos Dec 20, 2025
c26dc43
fix: use nodeType instead of isEnvelope for icon display
vitormattos Dec 20, 2025
5f032a3
refactor: centralize file extension logic in mixin
vitormattos Dec 20, 2025
bf8fe87
feat: add endpoint to add files to envelope
vitormattos Dec 20, 2025
dfa9117
feat: add parentFileId support in RequestSignatureService
vitormattos Dec 20, 2025
d0c168b
feat: add envelope capabilities and migrate from initialState
vitormattos Dec 20, 2025
930ef0a
feat: add UI to add files to envelope
vitormattos Dec 20, 2025
68b61e0
chore: update OpenAPI documentation
vitormattos Dec 20, 2025
bf1632a
docs: document multipart/form-data requirement in file upload endpoints
vitormattos Dec 20, 2025
6a64bb4
feat(api): add statusText to envelope files response
vitormattos Dec 20, 2025
a8e11e9
refactor(api): unify envelope response structure
vitormattos Dec 20, 2025
7029581
test: fix CapabilitiesTest constructor mismatch
vitormattos Dec 20, 2025
9eb84c5
feat(api): add lazy loading support for envelope files
vitormattos Dec 20, 2025
c8dc376
fix(ui): handle envelope preview correctly in File component
vitormattos Dec 20, 2025
299f1ed
fix: return thumbnail of enevlope as folder icon
vitormattos Dec 20, 2025
b635617
fix: return predefined object instead of handmade handmade created
vitormattos Dec 20, 2025
13a5e28
fix: return status text
vitormattos Dec 20, 2025
292ae6f
chore: update documentation
vitormattos Dec 20, 2025
d2f463e
chore: delete content of envelope when delete an envelope
vitormattos Dec 20, 2025
6245083
fix(api): use consistent field names in formatFilesResponse
vitormattos Dec 20, 2025
915aeee
feat: store total files of envelope
vitormattos Dec 20, 2025
0a2d39b
chore: replace parentFileId by parentNodeId at filter parameter
vitormattos Dec 20, 2025
ad6a426
chore: store envelope size at metadata field
vitormattos Dec 20, 2025
a62c496
chore: remove unecessary if
vitormattos Dec 20, 2025
d31d20c
chore: format return of api when add a file to envelop
vitormattos Dec 20, 2025
ec84bab
fix: only return the file when exists
vitormattos Dec 20, 2025
b03fb0c
feat(envelope): implement lazy loading and store methods for envelope…
vitormattos Dec 20, 2025
68e5d91
feat(envelope): integrate EnvelopeFilesList into RequestSignatureTab
vitormattos Dec 20, 2025
783e6ce
chore: update openapi documentation
vitormattos Dec 20, 2025
6f3d7ae
fix(security): remove fileId from API responses
vitormattos Dec 20, 2025
9f688bd
chore: update documentation
vitormattos Dec 20, 2025
cbcf107
fix: close sidebar when list files and the file wasn't at the list
vitormattos Dec 20, 2025
8750cd6
test: fix EnvelopeService unit tests after API change
vitormattos Dec 20, 2025
2ff216b
chore(refactor): Move logic of save multiple files to service
vitormattos Dec 20, 2025
31c1642
fix: send uploadedFile to save method
vitormattos Dec 20, 2025
120bc1c
chore: moved the upload responsibility to store
vitormattos Dec 20, 2025
1431307
chore: fallback
vitormattos Dec 20, 2025
30b632c
chore: propagate signer add to envelope content
vitormattos Dec 20, 2025
78910b4
fix: only load file metadata when is a file
vitormattos Dec 20, 2025
e0e300a
chore: return node type
vitormattos Dec 20, 2025
6586c77
chore: remove unecessary unset
vitormattos Dec 20, 2025
d4aad87
chore: propagate deletion of signer to children when is an envelope
vitormattos Dec 20, 2025
8e39bb2
fix: delete identify method using entity
vitormattos Dec 20, 2025
01f367b
fix: clear cache of identify method when work with envelope
vitormattos Dec 20, 2025
b1c9f91
fix: send node_id instead of id of libresign_file
vitormattos Dec 20, 2025
4df3f0d
fix: to reorder is necessary to have a file
vitormattos Dec 20, 2025
246fd7a
chore: update documentation
vitormattos Dec 20, 2025
9289942
fix: prevent error when is an envelope
vitormattos Dec 20, 2025
fd7a200
chore: make more clear the logic to notify
vitormattos Dec 20, 2025
9de1551
fix: only use file when exists
vitormattos Dec 20, 2025
981b181
feat: add progress bar
vitormattos Dec 20, 2025
d56bfcc
fix: use nodeId instead of file_id
vitormattos Dec 20, 2025
419c7b1
chore: add back the add signer to top and add an icon to this button
vitormattos Dec 20, 2025
9ca320f
fix: return filesCount from metadata and always return empty the files
vitormattos Dec 22, 2025
12e4f73
feat: return uuid of document at objet of visible element
vitormattos Dec 22, 2025
b762529
fix: add typing to return
vitormattos Dec 22, 2025
2282235
fix: normalize types of return
vitormattos Dec 22, 2025
2e80086
chore: update documentation
vitormattos Dec 22, 2025
d9742bb
fix: send the UUID of file to prevent save to diferent file
vitormattos Dec 22, 2025
d50f41f
chore: update documentation
vitormattos Dec 22, 2025
3f11b39
feat: add support to multiple documents when add visible elements
vitormattos Dec 22, 2025
6902713
feat: add method to get child sign requests by envelope and identify …
vitormattos Dec 23, 2025
c6a7cc8
feat: add getPdfUrlsForSigning method for envelope support
vitormattos Dec 23, 2025
a33751d
refactor: change getNextcloudFile to return array
vitormattos Dec 23, 2025
be177b8
feat: delegate PDF URL generation to service layer
vitormattos Dec 23, 2025
29204c5
feat: validate all files in envelope before signing
vitormattos Dec 23, 2025
ef9a0d1
feat: add multi-PDF support in SignPDF component
vitormattos Dec 23, 2025
b09abc6
refactor: rename setDocumentToSign to setFileToSign
vitormattos Dec 23, 2025
508346c
chore: make compatible with sign multiple files
vitormattos Dec 23, 2025
ba2ee7a
fix: cs
vitormattos Dec 23, 2025
ce9c07c
fix(FileService): clear mapper cache for fresh nodeType read
vitormattos Dec 23, 2025
d5b8752
refactor(PageController): adjust envelope validation logic
vitormattos Dec 23, 2025
bf5e214
refactor(Pkcs12Handler): update signature handling
vitormattos Dec 23, 2025
6c0d40b
refactor(MailNotifyListener): adjust notification flow
vitormattos Dec 23, 2025
e7d808d
refactor(IdentifyService): update identification method
vitormattos Dec 23, 2025
612f119
refactor(SignFileService): adjust file signing logic
vitormattos Dec 23, 2025
abbb5f2
refactor(VisibleElements): update component structure
vitormattos Dec 23, 2025
49a6e83
refactor(RequestSignatureTab): adjust sidebar layout
vitormattos Dec 23, 2025
7e25347
feat(validation): add EnvelopeValidation component
vitormattos Dec 23, 2025
e1eb358
refactor(store/sign): update state management
vitormattos Dec 23, 2025
8f4756c
refactor(store/signMethods): adjust methods store
vitormattos Dec 23, 2025
faf5e89
feat(Validation): integrate EnvelopeValidation component
vitormattos Dec 23, 2025
2d8ea4c
refactor(SignPDF): update main view structure
vitormattos Dec 23, 2025
03fa99e
refactor(Sign): adjust signing partial component
vitormattos Dec 23, 2025
1479b90
fix: cs
vitormattos Dec 23, 2025
c7c9997
libresign: PageController: document uuid param for signIdDoc for Open…
vitormattos Dec 23, 2025
67b0ade
chore: update documentation
vitormattos Dec 23, 2025
c1ec710
fix: SignFileService tests by properly mocking getNextcloudFiles() an…
vitormattos Dec 23, 2025
ed13251
fix: validate the new initial state
vitormattos Dec 23, 2025
64c1584
fix: consider uuid when is envelope
vitormattos Dec 23, 2025
0454f0a
fix: add pending class
vitormattos Dec 23, 2025
273954f
fix: indent
vitormattos Dec 23, 2025
c1770b8
refactor: Extract SignRequest entity management into dedicated service
vitormattos Dec 24, 2025
e070dc8
fix: cs
vitormattos Dec 24, 2025
bedf6eb
fix: visibility of method
vitormattos Dec 24, 2025
bed549b
refactor: Add Psalm typedefs for envelope child structures
vitormattos Dec 24, 2025
9de8ef4
refactor: Improve FileService envelope handling with stateless builder
vitormattos Dec 24, 2025
07830b7
perf: Add lazy-loading caches to FileMapper for child file queries
vitormattos Dec 24, 2025
c61a99e
docs: Update API controller docblocks for envelope responses
vitormattos Dec 24, 2025
ee2597f
feat: Enhance Signer component for envelope display
vitormattos Dec 24, 2025
89672fd
chore: remove unused FrontpageRoute
vitormattos Dec 24, 2025
a1ea711
refactor: Extract file response formatting into dedicated classes
vitormattos Dec 24, 2025
1edbfb2
refactor: Remove unused FileDataAssembler and delegate to FileRespons…
vitormattos Dec 24, 2025
98d616a
refactor: extract signers loading logic to SignersLoader service
vitormattos Dec 24, 2025
6e9190f
feat: add FileListService for file list endpoint formatting
vitormattos Dec 24, 2025
235ebcc
refactor: remove unused FileResponseFormatter and FileResponseData cl…
vitormattos Dec 24, 2025
f60e9eb
refactor: delegate signer loading to SignersLoader service
vitormattos Dec 24, 2025
43761ed
refactor: integrate FileListService in FileController list endpoint
vitormattos Dec 24, 2025
8d8bfc9
feat: add resolveUid method to IdentifyMethodService
vitormattos Dec 24, 2025
eeaac07
test: update FileServiceTest for refactored service dependencies
vitormattos Dec 24, 2025
edc9878
fix: update documentation
vitormattos Dec 24, 2025
2755f5e
fix: add required fields to signer response in SignersLoader
vitormattos Dec 24, 2025
86adfba
fix: use correct File parameter in loadCertDataFromLibreSignFile
vitormattos Dec 24, 2025
0456c90
fix: use getFile() to obtain file node in loadCertDataFromLibreSignFile
vitormattos Dec 24, 2025
72e97f7
fix: use stdClass instead of arrays in loadSignersFromCertData
vitormattos Dec 24, 2025
a413245
fix: prevent signer overwrite when adding multiple signers to envelope
vitormattos Dec 24, 2025
45029bc
fix: only set signer as me when identifier matches current user
vitormattos Dec 24, 2025
44b7a4d
fix: only expose sign_uuid for current user signer
vitormattos Dec 24, 2025
a99e8c4
fix: return oid to API
vitormattos Dec 24, 2025
79f6787
fix: return the signer uuid when it's me
vitormattos Dec 24, 2025
f7c86a2
fix: error page
vitormattos Dec 24, 2025
8882715
chore: use object instead of array
vitormattos Dec 25, 2025
df38991
fix: unsubscribe listeners
vitormattos Dec 25, 2025
2128c80
fix: make VisibleElements compatible with envelope
vitormattos Dec 25, 2025
e93b40d
fix: make edition and retrieve visible elements compatible with envelop
vitormattos Dec 25, 2025
3585528
fix: use same space between all elements
vitormattos Dec 25, 2025
1ebe6da
chore: update documentation
vitormattos Dec 25, 2025
09fd6b9
fix: remove return type
vitormattos Dec 25, 2025
d672ae0
chore: update documentation
vitormattos Dec 25, 2025
1df609f
fix: small improvements
vitormattos Dec 25, 2025
228c40f
fix: metadata always is object
vitormattos Dec 25, 2025
6335a89
fix: always return metadata as object
vitormattos Dec 25, 2025
84eed7e
chore: show filename with extension when sign document
vitormattos Dec 25, 2025
f1d2acc
fix: remove unecessary get
vitormattos Dec 25, 2025
ba84882
fix: remove fallback
vitormattos Dec 25, 2025
880ee04
fix: remove complex test to mock
vitormattos Dec 25, 2025
b2d484b
fix: cascade delete signer to identify_method
vitormattos Dec 25, 2025
85f663f
fix: return content of envelope when send the parent reference
vitormattos Dec 26, 2025
0834dbf
fix: load signers every time
vitormattos Dec 26, 2025
3d939f1
refactor: simplify logic
vitormattos Dec 26, 2025
fb5b7bd
fix: add DB group
vitormattos Dec 26, 2025
71cdba5
refactor: extract file handling into dedicated services\n\nSplit resp…
vitormattos Dec 27, 2025
f2f2971
refactor: format visible elements using page metadata\n\nCompute top/…
vitormattos Dec 27, 2025
96f7f12
chore: remove deprecated TFile service\n\nLegacy helper removed after…
vitormattos Dec 27, 2025
fe620f4
refactor: align controllers and services with new file workflow\n\nAd…
vitormattos Dec 27, 2025
67e18f6
docs: regenerate OpenAPI spec and TypeScript types\n\nSync API annota…
vitormattos Dec 27, 2025
e405fd8
refactor: update files store to new API response shape\n\nAdapt store…
vitormattos Dec 27, 2025
5a97404
test: update unit tests and psalm baseline for refactor\n\nAdjust tes…
vitormattos Dec 27, 2025
71a5965
test: add unit tests for file-related services\n\nIntroduce initial u…
vitormattos Dec 27, 2025
b9aac19
refactor: move formatVisibleElements to FileElementService\n\nDelegat…
vitormattos Dec 27, 2025
0de7388
fix: order of properties
vitormattos Dec 27, 2025
6be2095
chore: add SPDX header
vitormattos Dec 27, 2025
c0d3b6e
refactor(file): extract and centralize file formatting logic in FileL…
vitormattos Dec 27, 2025
c4469db
test(file): add comprehensive unit tests for FileListService
vitormattos Dec 27, 2025
8e10b39
feat(envelope): add FileElementService dependency and visibleElements…
vitormattos Dec 27, 2025
45a76e0
refactor(metadata): improve nodeId precedence and test coverage
vitormattos Dec 27, 2025
a852c44
feat(settings): add getUserIdentificationSettings method with tests
vitormattos Dec 27, 2025
acf2a91
test(service): add FileElementService unit test structure
vitormattos Dec 27, 2025
bb642e4
feat(migration): normalize file names by removing extensions
vitormattos Dec 27, 2025
0cef50f
chore(services): update service dependencies and imports
vitormattos Dec 27, 2025
b8ae5cb
refactor(controllers): integrate FileListService changes
vitormattos Dec 27, 2025
b9880e1
chore: bump version
vitormattos Dec 27, 2025
d178c35
fix: openapi issues
vitormattos Dec 27, 2025
c0a2492
fix: normalize ids
vitormattos Dec 27, 2025
f814feb
fix: unit test
vitormattos Dec 27, 2025
47a3194
refactor: consolidate file type system to LibresignFileDetail
vitormattos Dec 28, 2025
e76e16e
refactor: add return type annotation to SignRequestMapper
vitormattos Dec 28, 2025
f0b0de2
refactor: add LibresignPagination type to Pagination helper
vitormattos Dec 28, 2025
db135e8
refactor: add return type annotations to FileListService
vitormattos Dec 28, 2025
4dc1e93
refactor: initialize all LibresignSettings fields with defaults
vitormattos Dec 28, 2025
49ec06e
refactor: update controllers to use LibresignFileDetail type and fix …
vitormattos Dec 28, 2025
3ecd6fd
refactor: update database mapper and validate helper for file ID cons…
vitormattos Dec 28, 2025
d65d494
refactor: update service layer to use canonical file type
vitormattos Dec 28, 2025
9985e38
refactor: migrate frontend store from nodeId to id semantics
vitormattos Dec 28, 2025
b7ade1d
refactor: update FileEntry components to use id-based semantics
vitormattos Dec 28, 2025
7097f79
refactor: update file list and request components to use id semantics
vitormattos Dec 28, 2025
b0e062d
refactor: update envelope and signature components to use id semantics
vitormattos Dec 28, 2025
7c37a26
chore: regenerate OpenAPI specs and TypeScript types
vitormattos Dec 28, 2025
dd9bbd5
test: update unit tests for file service refactoring
vitormattos Dec 28, 2025
d66f0e4
refactor(api): rename parentNodeId to parentFileId for consistency
vitormattos Dec 28, 2025
5e7abef
fix(envelope): correct file ID usage in EnvelopeFilesList
vitormattos Dec 28, 2025
233401c
chore(openapi): update API schema for parentFileId parameter
vitormattos Dec 28, 2025
dfdb9bd
fix(api): add mime and pages to ValidateFile response schema
vitormattos Dec 28, 2025
086ea04
refactor(file): remove redundant fileId field from file list response
vitormattos Dec 28, 2025
cb669bd
test: fix FileListService test to use internal ID instead of nodeId
vitormattos Dec 28, 2025
000425a
test: update SettingsLoader test to expect default settings
vitormattos Dec 28, 2025
fd2bdea
test: fix API tests to use internal file ID instead of nodeId
vitormattos Dec 28, 2025
9b0e3d7
test: add comment clarifying settings behavior in FileControllerTest
vitormattos Dec 28, 2025
9349c1e
fix(api): return internal LibreSign id in upload/envelope response
vitormattos Dec 28, 2025
10d96ac
fix(FileListService): add missing fileId field in files array
vitormattos Dec 28, 2025
d165a7f
fix: correct property name for file UUID in FileElementController
vitormattos Dec 28, 2025
d72f435
refactor: replace generic file resolvers
vitormattos Dec 28, 2025
45b5f1e
fix: use file id for signer cleanup
vitormattos Dec 28, 2025
311ce53
fix: use fileId and not nodeid
vitormattos Dec 28, 2025
20d006c
chore: hide open file when is an envelope
vitormattos Dec 28, 2025
6b94e9b
fix: date format
vitormattos Dec 28, 2025
826cfc7
feat(envelope): include child file metadata for envelope children
vitormattos Dec 29, 2025
972da8b
refactor(validation): componentize document details and use in envelo…
vitormattos Dec 29, 2025
292cb08
fix(validation): render DocMDP status using status constants
vitormattos Dec 29, 2025
c04c504
chore: update documentation
vitormattos Dec 29, 2025
eea478e
style(validation): align single-file card UI with envelope view
vitormattos Dec 29, 2025
e2f83b1
style(validation): encapsulate NcListItem wrapper normalization in Do…
vitormattos Dec 29, 2025
917a009
style(envelope): normalize NcListItem layout in sections and prevent …
vitormattos Dec 29, 2025
816ec9b
fix(validation): allow text wrapping in DocMDP description
vitormattos Dec 29, 2025
8333711
fix(file): ensure non-empty filename for URL imports
vitormattos Dec 29, 2025
e28097e
fix: return necessary data
vitormattos Dec 29, 2025
efb47db
feat(request): add envelope name prompt for multi-file uploads
vitormattos Dec 29, 2025
d3e8b3e
feat(api): add name parameter to PATCH request-signature endpoint
vitormattos Dec 29, 2025
ae3abce
fix(validation): skip signer validation when users array is empty
vitormattos Dec 29, 2025
80083b3
feat(service): implement envelope name update in saveFile method
vitormattos Dec 29, 2025
c68fe19
feat(ui): create reusable EditNameDialog component
vitormattos Dec 29, 2025
8596cd0
refactor(ui): use EditNameDialog in RequestPicker for envelope naming
vitormattos Dec 29, 2025
46e05c9
feat(ui): add inline envelope name editing with auto-save
vitormattos Dec 29, 2025
78a0ee1
chore: update documentation
vitormattos Dec 29, 2025
d5db141
feat(store): add rename method to useFilesStore
vitormattos Dec 29, 2025
cbab20e
feat(ui): implement inline rename form in FileEntryName component
vitormattos Dec 29, 2025
086bbd9
feat(ui): add rename action to FileEntryActions menu
vitormattos Dec 29, 2025
30dd397
feat(ui): connect rename events and manage rename state in FileEntry
vitormattos Dec 29, 2025
7e477aa
feat(fileslist): right-click menu at cursor with clean reset\n\n- Pos…
vitormattos Dec 29, 2025
225fe31
feat(admin): add envelope feature toggle in settings\n\n- Adds Envelo…
vitormattos Dec 29, 2025
57fc7a8
feat(request-picker): enable envelope multi-select from Files
vitormattos Dec 29, 2025
72795d2
fix: update documentation and fix some unit tests
vitormattos Dec 29, 2025
8ac0c01
fix: namespace
vitormattos Dec 29, 2025
3d3db97
chore: remove unused props
vitormattos Dec 29, 2025
886864f
fix: respect openapi contract
vitormattos Dec 29, 2025
d172989
fix: make compatible with newest rule
vitormattos Dec 29, 2025
3660375
chore: Bump dependencies
vitormattos Dec 29, 2025
da41c10
fix: psalm issues
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
172 changes: 102 additions & 70 deletions composer.lock

Large diffs are not rendered by default.

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 @@ -45,6 +47,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