Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1561 commits
Select commit Hold shift + click to select a range
0ba45ee
fix: handle AppConfigTypeConflictException in PolicySource and apply …
vitormattos May 17, 2026
718cd35
test: add DataProvider unit tests for ResultFilter and ResultEnricher
vitormattos May 17, 2026
5e0c89b
test: migrate E2E and integration tests to use policy/admin API endpo…
vitormattos May 17, 2026
b50970e
fix: cs
vitormattos May 17, 2026
502b131
test: fix invalid certificate engine value 'PhpNative' to 'openssl' i…
vitormattos May 17, 2026
a7e7075
feat: update policy signature flow controllers and tests
vitormattos May 17, 2026
1f33ce0
fix: run policy migration after latest version
vitormattos May 17, 2026
b6d2798
fix: align footer template routes with policy access
vitormattos May 17, 2026
be90f8f
test: make footer policy explicit in playwright setup
vitormattos May 18, 2026
09f8eb3
test: align footer preview integration scenarios with policy rules
vitormattos May 18, 2026
418ec60
fix: add missing IdentifyMethodService to Admin constructor and updat…
vitormattos May 18, 2026
069f2ec
fix: stabilize identify methods policy flow
vitormattos May 18, 2026
95d4b89
refactor: simplify identification docs rule UX
vitormattos May 18, 2026
e93106d
feat: consolidate signature stamp policy flow
vitormattos May 18, 2026
fec4b0b
fix: resolve policy signature CI failures
vitormattos May 18, 2026
8c507b2
fix: stabilize signature stamp policy behavior
vitormattos May 19, 2026
bff68e6
test: fix policy preference integration flakes
vitormattos May 19, 2026
7ec32ec
fix: remove double scaling in signature stamp preview zoom
vitormattos May 20, 2026
fed9d3b
refactor: consolidate worker config migration into Version18003
vitormattos May 20, 2026
2233a53
fix: adjust policy controller
vitormattos May 20, 2026
43a4ce4
fix: update signature stamp preview controller
vitormattos May 20, 2026
1909c41
fix: update JSignPdfHandler for signature text policy
vitormattos May 20, 2026
214bd90
refactor: update migration metadata
vitormattos May 20, 2026
e9a989a
refactor: consolidate worker config migration
vitormattos May 20, 2026
1604ab2
fix: register policy providers
vitormattos May 20, 2026
5665ed8
fix: update signature text policy
vitormattos May 20, 2026
bd92cfa
fix: update signature text policy value
vitormattos May 20, 2026
0221c20
fix: update signing mode policy
vitormattos May 20, 2026
a69e68b
fix: update signature background service
vitormattos May 20, 2026
ef1158b
fix: update signature text service
vitormattos May 20, 2026
3b8f27f
test: update admin initial state coverage
vitormattos May 20, 2026
14db29e
test: update signature stamp preview coverage
vitormattos May 20, 2026
fda0604
test: update signature text policy coverage
vitormattos May 20, 2026
21ed529
test: update JSignPdfHandler coverage
vitormattos May 20, 2026
4280f75
test: update signature text policy coverage
vitormattos May 20, 2026
dac3d22
test: update signing mode policy coverage
vitormattos May 20, 2026
dd6f58a
test: add worker config policy coverage
vitormattos May 20, 2026
6764da1
test: update signature background service coverage
vitormattos May 20, 2026
ded6468
test: update signature text service coverage
vitormattos May 20, 2026
85dcdac
test: update signature text real definition coverage
vitormattos May 20, 2026
babdefe
test: update worker config rule editor coverage
vitormattos May 20, 2026
83a4d03
test: update signing mode real definitions coverage
vitormattos May 20, 2026
81068d5
test: update real policy workbench coverage
vitormattos May 20, 2026
f1f53e5
test: update signature text policy workbench coverage
vitormattos May 20, 2026
1177d5a
fix: update signature text rule editor
vitormattos May 20, 2026
3293cb5
fix: update signature text policy model
vitormattos May 20, 2026
e6a402f
fix: add signature text real definition
vitormattos May 20, 2026
a741af1
fix: update worker config rule editor
vitormattos May 20, 2026
388e4b2
fix: update signing mode real definitions
vitormattos May 20, 2026
e74c50b
fix: update real policy workbench hook
vitormattos May 20, 2026
d03d1a7
feat: update openapi contracts and generated types
vitormattos May 20, 2026
34293d4
test: fix markdown editor wrapper typing
vitormattos May 20, 2026
914eaed
test: fix request expiration input element typing
vitormattos May 20, 2026
0af6892
test: fix signature text rule editor modelValue typing
vitormattos May 20, 2026
abd5cef
fix: handle undefined in request expiration merge
vitormattos May 20, 2026
6cd4e81
test: fix policy preferences boolean locators
vitormattos May 20, 2026
1d8c182
test(e2e): adjust unauthenticated envelope visible signature scenario
vitormattos May 20, 2026
44cab50
test(e2e): refine self-sign with drawn signature flow
vitormattos May 20, 2026
34e4d13
test(e2e): add policy workbench signature processing scenarios
vitormattos May 20, 2026
b7ec1d4
test(front): update signing mode real definitions coverage
vitormattos May 20, 2026
c2b579a
test(front): extend policy workbench composable assertions
vitormattos May 20, 2026
2dbba1a
test(front): expand settings policy workbench integration checks
vitormattos May 20, 2026
94c322e
test(front): add default user folder rule editor tests
vitormattos May 20, 2026
f40aff2
test(front): add signing mode rule editor tests
vitormattos May 20, 2026
5773523
feat(front): update policy workbench catalog behavior
vitormattos May 20, 2026
4876844
feat(front): refine default user folder rule editor
vitormattos May 20, 2026
07e0dd0
feat(front): adjust policy settings real definitions
vitormattos May 20, 2026
99d1a6c
feat(front): update policy settings real types
vitormattos May 20, 2026
804c413
feat(front): improve signing mode rule editor
vitormattos May 20, 2026
bdcb3a9
feat(front): evolve signing mode model
vitormattos May 20, 2026
46fd4a3
feat(front): refine signing mode real definitions
vitormattos May 20, 2026
fb9c7ff
feat(front): update real policy workbench orchestration
vitormattos May 20, 2026
42ee8cd
test(php): extend signing mode policy worker coverage
vitormattos May 20, 2026
d679832
refactor: Replace Bezier curve signature with PNG asset in preview
vitormattos May 21, 2026
3bb5e28
fix: Simplify preview signature asset loading
vitormattos May 21, 2026
68cf33c
fix: Correct PDF XObject dictionary structure
vitormattos May 21, 2026
dc505a4
fix: Only include /XObject dictionary when references exist
vitormattos May 21, 2026
9397e3c
fix: Use absolute SERVERROOT path for signature asset
vitormattos May 21, 2026
c2fe12a
fix: cs
vitormattos May 21, 2026
4e4b18f
fix: update signature stamp preview native service
vitormattos May 21, 2026
144391b
test: stabilize boolean policy preferences e2e
vitormattos May 21, 2026
0ea8975
feat: refine signature text preview section
vitormattos May 21, 2026
614320f
test: update policy source runtime coverage
vitormattos May 21, 2026
90e3eff
fix: prevent pdf worker unhandled rejection in tests
vitormattos May 21, 2026
b5de959
test: allow known pdfjs node warning in setup
vitormattos May 21, 2026
d98d836
fix: remove legacy pdf worker test workaround
vitormattos May 21, 2026
06362b6
test: stop suppressing pdfjs node warning
vitormattos May 21, 2026
dc7240f
test(e2e): remove swallowed scroll assertion catch
vitormattos May 21, 2026
3576298
test(e2e): remove redundant target selection wait
vitormattos May 21, 2026
0145d26
test(e2e): remove redundant target selection wait in persistence flow
vitormattos May 21, 2026
f76ab70
test: use legacy pdfjs build in vitest node runtime
vitormattos May 21, 2026
0ec21de
test: remove legacy pdfjs alias from vitest
vitormattos May 21, 2026
bab2c14
refactor: adjust native signature stamp preview service
vitormattos May 21, 2026
0a7f931
test: update native signature stamp preview service tests
vitormattos May 21, 2026
a97a1a1
refactor: update policy catalog CRUD table composable
vitormattos May 21, 2026
5138dbc
refactor: update real policy workbench state logic
vitormattos May 21, 2026
8d783a9
refactor: update signature text rule editor
vitormattos May 21, 2026
540e3e0
refactor: update policy catalog removal flow
vitormattos May 21, 2026
90eef31
test: expand real policy workbench coverage
vitormattos May 21, 2026
40feb61
test: update settings policy workbench specs
vitormattos May 21, 2026
ed44fab
feat: use NcEmptyContent for rules empty state
vitormattos May 21, 2026
7b38e15
fix: use contextual empty-state copy and icon in rules table
vitormattos May 21, 2026
2702f08
fix: use CRUD filter state in rules empty feedback
vitormattos May 21, 2026
1c6918d
fix: render signature preview above background image
vitormattos May 21, 2026
fe82e1d
fix: preserve preview signature alpha and placement
vitormattos May 21, 2026
9fcecc5
feat: set signature font default to 20
vitormattos May 21, 2026
2837366
feat: improve policy workbench table UX
vitormattos May 21, 2026
0561f0b
fix: normalize translation strings for account wording
vitormattos May 21, 2026
f3017a8
fix: replace user labels with account wording in UI
vitormattos May 21, 2026
3b31ed8
fix: use person wording in root certificate helper text
vitormattos May 21, 2026
944b3f5
test: align policy workbench dialog spec
vitormattos May 21, 2026
9d8d062
test: update policy editor copy expectations
vitormattos May 21, 2026
7d23374
test: improve policy helper copy
vitormattos May 21, 2026
de20a8c
test: align helper copy with accounts terminology
vitormattos May 21, 2026
0a4e214
chore(l10n): improve TRANSLATORS context in DocMdpLevel.php
vitormattos May 22, 2026
4b00286
chore(l10n): improve TRANSLATORS context in FileStatus.php
vitormattos May 22, 2026
24b02cb
chore(l10n): improve TRANSLATORS context in SignRequestStatus.php
vitormattos May 22, 2026
625f684
chore(l10n): improve TRANSLATORS context in Notifier.php
vitormattos May 22, 2026
94606f7
chore(l10n): improve TRANSLATORS context in FileUpload.vue
vitormattos May 22, 2026
cc36a4d
chore(l10n): improve TRANSLATORS context in FooterTemplateEditor.vue
vitormattos May 22, 2026
3fcf270
chore(l10n): improve TRANSLATORS context in RequestPicker.vue
vitormattos May 22, 2026
8c69def
chore(l10n): improve TRANSLATORS context in EnvelopeFilesList.vue
vitormattos May 22, 2026
23af58c
chore(l10n): improve TRANSLATORS context in RequestSignatureTab.vue
vitormattos May 22, 2026
74e2b91
chore(l10n): improve TRANSLATORS context in EnvelopeValidation.vue
vitormattos May 22, 2026
d1b0011
chore(l10n): improve TRANSLATORS context in SignerDetails.vue
vitormattos May 22, 2026
25f9af0
chore(l10n): improve TRANSLATORS context in SignerTimestamp.vue
vitormattos May 22, 2026
8005f09
chore(l10n): improve TRANSLATORS context in SigningProgress.vue
vitormattos May 22, 2026
399ef8b
chore(l10n): improve TRANSLATORS context in fileStatus.js
vitormattos May 22, 2026
c3837f4
chore(l10n): improve TRANSLATORS context in getSignRequestStatusText.ts
vitormattos May 22, 2026
82f0a58
chore(l10n): improve TRANSLATORS context in Documents.vue
vitormattos May 22, 2026
5810f95
chore(l10n): improve TRANSLATORS context in CrlManagement.vue
vitormattos May 22, 2026
780429a
chore(l10n): improve TRANSLATORS context in CertificateContent.vue
vitormattos May 22, 2026
5aa15b2
chore(l10n): improve TRANSLATORS context in Catalog.vue
vitormattos May 22, 2026
97d053c
chore(l10n): improve TRANSLATORS context in PolicyRuleEditorPanel.vue
vitormattos May 22, 2026
2ec67a7
chore(l10n): improve TRANSLATORS context in PolicyRuleEditorPanel.vue
vitormattos May 22, 2026
4e6794b
chore(l10n): improve TRANSLATORS context in CrlValidationRuleEditor.vue
vitormattos May 22, 2026
ccec15b
chore(l10n): improve TRANSLATORS context in realDefinition.ts
vitormattos May 22, 2026
b956331
chore(l10n): improve TRANSLATORS context in realDefinition.ts
vitormattos May 22, 2026
27186c3
chore(l10n): improve TRANSLATORS context in realDefinitions.ts
vitormattos May 22, 2026
ce1a05c
chore(l10n): improve TRANSLATORS context in realDefinition.ts
vitormattos May 22, 2026
d9a68de
chore(l10n): improve TRANSLATORS context in SignatureFooterRuleEditor…
vitormattos May 22, 2026
c5fa824
chore(l10n): improve TRANSLATORS context in SignatureHashAlgorithmRul…
vitormattos May 22, 2026
acf40e4
chore(l10n): improve TRANSLATORS context in realDefinition.ts
vitormattos May 22, 2026
272e6f1
chore(l10n): improve TRANSLATORS context in SignatureTextRuleEditor.vue
vitormattos May 22, 2026
3333124
chore(l10n): improve TRANSLATORS context in realDefinitions.ts
vitormattos May 22, 2026
1c6b11b
chore(l10n): improve TRANSLATORS context in TsaRuleEditor.vue
vitormattos May 22, 2026
4dfe6ee
chore(l10n): improve TRANSLATORS context in realDefinition.ts
vitormattos May 22, 2026
cbe55a3
chore(l10n): improve TRANSLATORS context in ValidationAccessRuleEdito…
vitormattos May 22, 2026
34affce
chore(l10n): improve TRANSLATORS context in realDefinition.ts
vitormattos May 22, 2026
ca96527
chore(l10n): improve TRANSLATORS context in useRealPolicyWorkbench.ts
vitormattos May 22, 2026
987cdb0
chore(l10n): improve TRANSLATORS context in RootCertificateCfssl.vue
vitormattos May 22, 2026
d7a8fcc
chore(l10n): improve TRANSLATORS context in RootCertificateOpenSsl.vue
vitormattos May 22, 2026
33734e6
refactor(i18n): improve translator guidance across Vue screens
vitormattos May 22, 2026
0bbf75e
test(playwright): add policy workbench rules helper
vitormattos May 22, 2026
c0acae4
test(playwright): reset identify methods rules before spec
vitormattos May 22, 2026
a7891ad
test(playwright): reuse helper in system default persistence
vitormattos May 22, 2026
76c06af
test(playwright): use shared rule editor opener in legal info spec
vitormattos May 22, 2026
4030f2d
test(playwright): use shared rule editor opener in reminder spec
vitormattos May 22, 2026
7dc1655
test(playwright): use shared rule editor opener in signature processi…
vitormattos May 22, 2026
d39fb73
refactor(i18n): improve translator guidance in request components
vitormattos May 22, 2026
82000cc
test(playwright): avoid closing parent dialog on failed remove action
vitormattos May 22, 2026
5984976
fix: prevent pending removal null crash
vitormattos May 22, 2026
f30a86b
fix: preserve signature stamp metadata toggle on edit
vitormattos May 22, 2026
f7012d3
test(integration): add groups_request_sign policy contract scenarios
vitormattos May 22, 2026
c7e839d
test(integration): add legal_information policy contract scenarios
vitormattos May 22, 2026
3b53daa
test(integration): add system scope contract scenarios for P2 policies
vitormattos May 22, 2026
6aa1cfb
test(playwright): add show_confetti_after_signing policy E2E spec
vitormattos May 22, 2026
3155ca5
test(playwright): add signature_flow policy API negative validation spec
vitormattos May 22, 2026
4e99b6f
test(playwright): add add_footer policy workbench rule management spec
vitormattos May 22, 2026
9488cb8
test(playwright): add default_user_folder policy workbench rule manag…
vitormattos May 22, 2026
f89c4ec
test(playwright): add signature_hash_algorithm policy workbench rule …
vitormattos May 22, 2026
f82642c
test(playwright): add signature_stamp policy workbench rule managemen…
vitormattos May 22, 2026
92e5a6a
test(playwright): add make_validation_url_private policy workbench ru…
vitormattos May 22, 2026
cb5b3fc
test(playwright): extend system default persistence spec with additio…
vitormattos May 22, 2026
0833f00
test(integration): add docmdp policy contract scenarios
vitormattos May 22, 2026
daf052a
test(playwright): add collect_metadata policy workbench rule manageme…
vitormattos May 22, 2026
bef3f6e
test(playwright): add identification_documents policy workbench rule …
vitormattos May 22, 2026
8658697
fix(policy): fix docmdp normalizer string-to-int cast and group polic…
vitormattos May 22, 2026
42fa912
test: harden add footer workbench e2e
vitormattos May 22, 2026
5f07997
test: stabilize identification documents workbench e2e
vitormattos May 22, 2026
302d912
test: stabilize signature hash algorithm workbench e2e
vitormattos May 22, 2026
fe4d948
test: harden signature stamp workbench e2e
vitormattos May 22, 2026
d742c2f
test: reset footer preview policy overrides
vitormattos May 22, 2026
8917fd9
test: add data providers for docmdp policy normalization
vitormattos May 22, 2026
9a6aed6
test: stabilize policy scope selection in workbench helper
vitormattos May 22, 2026
c371b25
fix(migration): preserve float-typed signature dimensions and canonic…
vitormattos May 23, 2026
0f32f68
test(migration): add regression tests for worker config and float sig…
vitormattos May 23, 2026
27872d5
test(e2e): stabilize email token sign flow with policy and engine setup
vitormattos May 23, 2026
1f209b3
test(e2e): stabilize envelope visible signature flow
vitormattos May 23, 2026
0f93e5f
feat(policy): update lib/Controller/FileController.php
vitormattos May 23, 2026
b82392a
feat(policy): update lib/Controller/IdentifyController.php
vitormattos May 23, 2026
d9f914a
feat(policy): update lib/Controller/PolicyController.php
vitormattos May 23, 2026
270fe84
feat(policy): update lib/Handler/CertificateEngine/AEngineHandler.php
vitormattos May 23, 2026
ad4bae3
feat(policy): update lib/Helper/ValidateHelper.php
vitormattos May 23, 2026
e75e9cb
feat(policy): update lib/Middleware/InjectionMiddleware.php
vitormattos May 23, 2026
ed318ca
feat(policy): update lib/Service/File/MessagesLoader.php
vitormattos May 23, 2026
d34a6e8
feat(policy): update lib/Service/Policy/Contract/IPolicyDefinition.php
vitormattos May 23, 2026
1897116
feat(policy): update lib/Service/Policy/IPolicyAuthorizationService.php
vitormattos May 23, 2026
9b22868
feat(policy): update lib/Service/Policy/Model/PolicySpec.php
vitormattos May 23, 2026
69c9872
feat(policy): update lib/Service/Policy/PolicyAuthorizationService.php
vitormattos May 23, 2026
3d16beb
feat(policy): update lib/Service/Policy/Provider/RequestSignGroups/Re…
vitormattos May 23, 2026
6307602
feat(policy): update lib/Service/Policy/RequestSignAuthorizationServi…
vitormattos May 23, 2026
d2fcafc
feat(policy): update lib/Service/Policy/Runtime/DefaultPolicyResolver…
vitormattos May 23, 2026
2d6e749
feat(policy): update lib/Service/Policy/Runtime/PolicyContextFactory.php
vitormattos May 23, 2026
7dcaae7
feat(policy): update lib/Service/SignatureTextService.php
vitormattos May 23, 2026
934fe11
test(policy): update playwright/e2e/sidebar-policies-menu-visibility-…
vitormattos May 23, 2026
0713aa0
test(policy): update playwright/support/policy-workbench-rules.ts
vitormattos May 23, 2026
3613534
feat(ui): update src/components/RightSidebar/RequestSignatureTab.vue
vitormattos May 23, 2026
d25fde3
test(policy): update src/tests/components/File/File.spec.ts
vitormattos May 23, 2026
bbf4e11
test(policy): update src/tests/components/LeftSidebar/LeftSidebar.spe…
vitormattos May 23, 2026
d2d2a93
test(policy): update src/tests/components/Request/VisibleElements.spe…
vitormattos May 23, 2026
00b1c75
test(policy): update src/tests/components/Settings/Settings.spec.ts
vitormattos May 23, 2026
633b4cf
test(policy): update src/tests/router/router.spec.ts
vitormattos May 23, 2026
d253d75
test(policy): update src/tests/store/files.spec.ts
vitormattos May 23, 2026
0dcffaf
test(policy): update src/tests/views/FilesList/FilesList.spec.ts
vitormattos May 23, 2026
5b7e9f0
test(policy): update src/tests/views/Preferences/Preferences.spec.ts
vitormattos May 23, 2026
6c9f464
test(policy): update src/tests/views/Request.spec.ts
vitormattos May 23, 2026
1a66e6a
test(policy): update src/tests/views/Settings/CertificateCustonOption…
vitormattos May 23, 2026
dab063a
test(policy): update src/tests/views/Settings/PolicyWorkbench/Request…
vitormattos May 23, 2026
487ebde
test(policy): update src/tests/views/Settings/PolicyWorkbench/setting…
vitormattos May 23, 2026
85e943e
test(policy): update src/tests/views/Settings/PolicyWorkbench/useReal…
vitormattos May 23, 2026
f9298e5
test(policy): update src/tests/views/Settings/SettingsPolicyWorkbench…
vitormattos May 23, 2026
2718df7
feat(ui): update src/views/FilesList/FilesList.vue
vitormattos May 23, 2026
3b2d438
feat(ui): update src/views/Request.vue
vitormattos May 23, 2026
398d323
feat(ui): update src/views/Settings/AllowedGroups.vue
vitormattos May 23, 2026
d857aba
feat(ui): update src/views/Settings/CertificateCustonOptions.vue
vitormattos May 23, 2026
94fd0f8
feat(ui): update src/views/Settings/PolicyWorkbench/Catalog/Catalog.vue
vitormattos May 23, 2026
9cda2b2
feat(ui): update src/views/Settings/PolicyWorkbench/Catalog/component…
vitormattos May 23, 2026
64cfb66
feat(ui): update src/views/Settings/PolicyWorkbench/PolicyRuleEditorP…
vitormattos May 23, 2026
8fa0790
feat(ui): update src/views/Settings/PolicyWorkbench/settings/expirati…
vitormattos May 23, 2026
9096a2c
feat(ui): update src/views/Settings/PolicyWorkbench/settings/request-…
vitormattos May 23, 2026
7547b41
feat(ui): update src/views/Settings/PolicyWorkbench/settings/request-…
vitormattos May 23, 2026
1ae2a7d
feat(ui): update src/views/Settings/PolicyWorkbench/settings/signatur…
vitormattos May 23, 2026
56a8a59
feat(ui): update src/views/Settings/PolicyWorkbench/useRealPolicyWork…
vitormattos May 23, 2026
5a8fd68
test(policy): update tests/integration/features/sign/request.feature
vitormattos May 23, 2026
840cb59
test(policy): update tests/php/Api/Controller/RequestSignatureControl…
vitormattos May 23, 2026
df77edf
test(policy): update tests/php/Unit/Controller/PolicyControllerTest.php
vitormattos May 23, 2026
98d60cc
test(policy): update tests/php/Unit/Handler/CertificateEngine/AEngine…
vitormattos May 23, 2026
269bbc1
test(policy): update tests/php/Unit/Helper/ValidateHelperTest.php
vitormattos May 23, 2026
3a7a0d9
test(policy): update tests/php/Unit/Service/File/MessagesLoaderTest.php
vitormattos May 23, 2026
e8b37ce
test(policy): update tests/php/Unit/Service/Policy/Model/PolicySpecTe…
vitormattos May 23, 2026
efe03f2
test(policy): update tests/php/Unit/Service/Policy/Model/ResolvedPoli…
vitormattos May 23, 2026
624a0af
test(policy): update tests/php/Unit/Service/Policy/PolicyAuthorizatio…
vitormattos May 23, 2026
007d3e7
test(policy): update tests/php/Unit/Service/Policy/Provider/ApprovalG…
vitormattos May 23, 2026
40c2088
test(policy): update tests/php/Unit/Service/Policy/Provider/IdentifyM…
vitormattos May 23, 2026
fc797b0
test(policy): update tests/php/Unit/Service/Policy/Provider/RequestSi…
vitormattos May 23, 2026
359a887
test(policy): update tests/php/Unit/Service/Policy/Runtime/DefaultPol…
vitormattos May 23, 2026
397d9d8
test(policy): update tests/php/Unit/Service/Policy/Runtime/PolicyCont…
vitormattos May 23, 2026
3fc945b
test(policy): update tests/php/Unit/Service/Policy/Runtime/PolicySour…
vitormattos May 23, 2026
874fdfc
chore(openapi): regenerate OpenAPI schema and TypeScript types
vitormattos May 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8",
"nextcloud/ocp": "dev-master",
"psr/http-client": "^1.0",
"roave/security-advisories": "dev-latest"
},
"config": {
Expand Down
97 changes: 54 additions & 43 deletions composer.lock

Large diffs are not rendered by default.

16 changes: 14 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,23 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import js from '@eslint/js'
import { FlatCompat } from '@eslint/eslintrc'
import nextcloudConfig from '@nextcloud/eslint-config'
import globals from 'globals'
import { dirname } from 'node:path'
import { fileURLToPath } from 'node:url'

const compat = new FlatCompat({
baseDirectory: dirname(fileURLToPath(import.meta.url)),
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})

const compatConfigs = (Array.isArray(nextcloudConfig) ? nextcloudConfig : [nextcloudConfig])
.flatMap((config) => compat.config(config))

export default [
...(Array.isArray(nextcloudConfig) ? nextcloudConfig : [nextcloudConfig]),
...compatConfigs,

{
name: 'libresign/ignores',
Expand Down
Binary file added img/preview_signature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public function register(IRegistrationContext $context): void {
$context->registerNotifierService(Notifier::class);

$context->registerSearchProvider(FileSearchProvider::class);

$context->registerEventListener(LoadSidebar::class, TemplateLoader::class);
$context->registerEventListener(BeforeNodeDeletedEvent::class, BeforeNodeDeletedListener::class);
$context->registerEventListener(CacheEntryRemovedEvent::class, BeforeNodeDeletedListener::class);
Expand Down
8 changes: 4 additions & 4 deletions lib/Capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

namespace OCA\Libresign;

use OCA\Libresign\AppInfo\Application;
use OCA\Libresign\Service\Envelope\EnvelopeService;
use OCA\Libresign\Service\Policy\PolicyService;
use OCA\Libresign\Service\Policy\Provider\Confetti\ConfettiPolicy;
use OCA\Libresign\Service\SignatureTextService;
use OCA\Libresign\Service\SignerElementsService;
use OCP\App\IAppManager;
use OCP\Capabilities\IPublicCapability;
use OCP\IAppConfig;

/**
* @psalm-import-type LibresignCapabilities from ResponseDefinitions
Expand All @@ -29,7 +29,7 @@ public function __construct(
protected SignatureTextService $signatureTextService,
protected IAppManager $appManager,
protected EnvelopeService $envelopeService,
protected IAppConfig $appConfig,
protected PolicyService $policyService,
) {
}

Expand All @@ -43,7 +43,7 @@ public function getCapabilities(): array {
$capabilities = [
'features' => self::FEATURES,
'config' => [
'show-confetti' => $this->appConfig->getValueBool(Application::APP_ID, 'show_confetti_after_signing', true),
'show-confetti' => $this->policyService->resolve(ConfettiPolicy::KEY)->getEffectiveValueAsBool(true),
'sign-elements' => [
'is-available' => $this->signerElementsService->isSignElementsAvailable(),
'can-create-signature' => $this->signerElementsService->canCreateSignature(),
Expand Down
4 changes: 2 additions & 2 deletions lib/Collaboration/Collaborators/AccountPhonePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use OC\KnownUser\KnownUserService;
use OCA\Libresign\Service\Identify\SearchNormalizer;
use OCA\Libresign\Service\Identify\SignerSearchContext;
use OCA\Libresign\Service\IdentifyMethodService;
use OCP\Accounts\IAccountManager;
use OCP\Collaboration\Collaborators\ISearchPlugin;
use OCP\Collaboration\Collaborators\ISearchResult;
Expand All @@ -22,7 +23,6 @@

class AccountPhonePlugin implements ISearchPlugin {
public const TYPE_SIGNER_ACCOUNT_PHONE = 51;
private const PHONE_BASED_METHODS = ['whatsapp', 'sms', 'telegram', 'signal'];

public function __construct(
private IAppConfig $appConfig,
Expand All @@ -44,7 +44,7 @@ public function search($search, $limit, $offset, ISearchResult $searchResult): b
$method = $this->searchContext->getMethod();
$search = trim((string)$search);

if ($search === '' || !in_array($method, self::PHONE_BASED_METHODS, true)) {
if ($search === '' || !in_array($method, IdentifyMethodService::IDENTIFY_PHONE_METHODS, true)) {
return false;
}

Expand Down
4 changes: 2 additions & 2 deletions lib/Collaboration/Collaborators/ContactPhonePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use OC\KnownUser\KnownUserService;
use OCA\Libresign\Service\Identify\SearchNormalizer;
use OCA\Libresign\Service\Identify\SignerSearchContext;
use OCA\Libresign\Service\IdentifyMethodService;
use OCP\Collaboration\Collaborators\ISearchPlugin;
use OCP\Collaboration\Collaborators\ISearchResult;
use OCP\Collaboration\Collaborators\SearchResultType;
Expand All @@ -22,7 +23,6 @@

class ContactPhonePlugin implements ISearchPlugin {
public const TYPE_SIGNER_CONTACT_PHONE = 52;
private const PHONE_BASED_METHODS = ['whatsapp', 'sms', 'telegram', 'signal'];

public function __construct(
private IAppConfig $appConfig,
Expand All @@ -44,7 +44,7 @@ public function search($search, $limit, $offset, ISearchResult $searchResult): b
$method = $this->searchContext->getMethod();
$search = trim((string)$search);

if ($search === '' || !in_array($method, self::PHONE_BASED_METHODS, true)) {
if ($search === '' || !in_array($method, IdentifyMethodService::IDENTIFY_PHONE_METHODS, true)) {
return false;
}

Expand Down
4 changes: 2 additions & 2 deletions lib/Collaboration/Collaborators/ManualPhonePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
namespace OCA\Libresign\Collaboration\Collaborators;

use OCA\Libresign\Service\Identify\SignerSearchContext;
use OCA\Libresign\Service\IdentifyMethodService;
use OCP\Collaboration\Collaborators\ISearchPlugin;
use OCP\Collaboration\Collaborators\ISearchResult;
use OCP\Collaboration\Collaborators\SearchResultType;
Expand All @@ -17,7 +18,6 @@

class ManualPhonePlugin implements ISearchPlugin {
public const TYPE_SIGNER_MANUAL_PHONE = 53;
private const PHONE_BASED_METHODS = ['whatsapp', 'sms', 'telegram', 'signal'];

public function __construct(
private IConfig $config,
Expand All @@ -34,7 +34,7 @@ public function search($search, $limit, $offset, ISearchResult $searchResult): b
$method = $this->searchContext->getMethod();
$search = trim((string)$search);

if ($search === '' || !in_array($method, self::PHONE_BASED_METHODS, true)) {
if ($search === '' || !in_array($method, IdentifyMethodService::IDENTIFY_PHONE_METHODS, true)) {
return false;
}

Expand Down
23 changes: 23 additions & 0 deletions lib/Command/Developer/Reset.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ protected function configure(): void {
mode: InputOption::VALUE_NONE,
description: 'Reset config'
)
->addOption(
name: 'policy',
shortcut: null,
mode: InputOption::VALUE_NONE,
description: 'Reset policy data'
)
;
}

Expand Down Expand Up @@ -140,6 +146,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$this->resetConfig();
$ok = true;
}
if ($input->getOption('policy') || $all) {
$this->resetPolicy();
$ok = true;
}
} catch (\Exception $e) {
$this->logger->error($e->getMessage());
throw $e;
Expand Down Expand Up @@ -254,4 +264,17 @@ private function resetConfig(): void {
} catch (\Throwable) {
}
}

private function resetPolicy(): void {
try {
$delete = $this->db->getQueryBuilder();
$delete->delete('libresign_permission_set_binding')
->executeStatement();

$delete = $this->db->getQueryBuilder();
$delete->delete('libresign_permission_set')
->executeStatement();
} catch (\Throwable) {
}
}
}
Loading
Loading