Skip to content

Commit a541b1f

Browse files
authored
Merge pull request #6242 from LibreSign/feature/envelope-support
feat: envelope support
2 parents b3f6166 + 8351276 commit a541b1f

File tree

132 files changed

+13728
-3310
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+13728
-3310
lines changed

.github/copilot-instructions.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,29 @@ cd tests/integration
7272
composer i
7373
chown -R www-data: .
7474

75+
# List available test steps
76+
cd tests/integration
77+
runuser -u www-data -- vendor/bin/behat -dl
78+
7579
# Running integration tests (from libresign root directory)
7680
cd tests/integration
7781
runuser -u www-data -- vendor/bin/behat features/<path>.feature
7882

83+
# Run with verbose output (shows nextcloud.log entries)
84+
runuser -u www-data -- vendor/bin/behat features/<path>.feature -v
85+
7986
# Example: Run specific feature file
8087
cd tests/integration
8188
runuser -u www-data -- vendor/bin/behat features/auth/login.feature
8289
```
8390

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

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Developed with ❤️ by [LibreCode](https://librecode.coop). Help us transform
2525
2626
* [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)
2727
]]></description>
28-
<version>13.0.0-dev.3</version>
28+
<version>13.0.0-dev.5</version>
2929
<licence>agpl</licence>
3030
<author mail="contact@librecode.coop" homepage="https://librecode.coop">LibreCode</author>
3131
<types>

lib/Capabilities.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
namespace OCA\Libresign;
1010

11+
use OCA\Libresign\Service\EnvelopeService;
1112
use OCA\Libresign\Service\SignatureTextService;
1213
use OCA\Libresign\Service\SignerElementsService;
1314
use OCP\App\IAppManager;
@@ -25,6 +26,7 @@ public function __construct(
2526
protected SignerElementsService $signerElementsService,
2627
protected SignatureTextService $signatureTextService,
2728
protected IAppManager $appManager,
29+
protected EnvelopeService $envelopeService,
2830
) {
2931
}
3032

@@ -46,6 +48,9 @@ public function getCapabilities(): array {
4648
'signature-width' => $this->signatureTextService->getSignatureWidth(),
4749
'signature-height' => $this->signatureTextService->getSignatureHeight(),
4850
],
51+
'envelope' => [
52+
'is-available' => $this->envelopeService->isEnabled(),
53+
],
4954
],
5055
'version' => $this->appManager->getAppVersion('libresign'),
5156
];

0 commit comments

Comments
 (0)