Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2441 commits
Select commit Hold shift + click to select a range
fe2f9d5
chore: update openapi documentation
vitormattos Jun 26, 2026
c9e524f
chore: update policy migration version documentation
vitormattos Jun 26, 2026
9a5b012
feat: enhance IPolicyDefinition contract with scope constraints
vitormattos Jun 26, 2026
845c446
feat: add supportedScopes field to PolicySpec model
vitormattos Jun 26, 2026
c1b276c
feat: implement scope validation in PolicyService before persistence
vitormattos Jun 26, 2026
366f140
feat: serialize supportedScopes in DefaultPolicyResolver metadata
vitormattos Jun 26, 2026
bec4309
feat: add scope constraints to IdentifyMethods policy provider
vitormattos Jun 26, 2026
c3ebf6c
feat: restrict RequestSignGroups to system and group scopes
vitormattos Jun 26, 2026
1d12068
feat: fix SignatureTextPolicy description_only render mode handling
vitormattos Jun 26, 2026
8b7bbfb
feat: restrict Worker policies to system scope only
vitormattos Jun 26, 2026
eb2ed91
chore: update PolicyProviders registry with enhanced scope metadata
vitormattos Jun 26, 2026
90c9f83
chore: update SignatureTextService for policy scope handling
vitormattos Jun 26, 2026
50439dc
test: update migration version test for policy changes
vitormattos Jun 26, 2026
518ec3e
test: update PolicySpec tests for supportedScopes field
vitormattos Jun 26, 2026
2b7d6ee
test: update PolicyService and PolicyRegistry tests for scope validation
vitormattos Jun 26, 2026
d6a5485
test: update IdentifyMethods policy tests for scope constraints
vitormattos Jun 26, 2026
8b2220a
test: update RequestSignGroups policy tests for scope enforcement
vitormattos Jun 26, 2026
56ab1f3
test: update SignatureText policy tests for render mode handling
vitormattos Jun 26, 2026
d60a8a8
test: update Worker policy tests for system-only scope restriction
vitormattos Jun 26, 2026
a118822
test: update PolicyController tests for effective policies endpoint
vitormattos Jun 26, 2026
e147f9c
test: update API controller tests for policy scope handling
vitormattos Jun 26, 2026
8f11a24
test: update JSignPdfHandler tests for hash algorithm handling
vitormattos Jun 26, 2026
4fc1d85
test: update account integration tests for policy changes
vitormattos Jun 26, 2026
e991705
test: update admin integration tests for initial state
vitormattos Jun 26, 2026
0c5065c
test: update file integration tests for policy scope enforcement
vitormattos Jun 26, 2026
9dc645c
test: update identify-account and page integration tests
vitormattos Jun 26, 2026
1d1b406
test: update policy integration tests for scope constraints
vitormattos Jun 26, 2026
33a1a74
test: update sign integration tests for policy handling
vitormattos Jun 26, 2026
922815d
test: update e2e tests for policy preferences handling
vitormattos Jun 26, 2026
b386a8b
test: update e2e tests for policy workbench interactions
vitormattos Jun 26, 2026
d2fb015
test: update e2e tests for sign scenarios
vitormattos Jun 26, 2026
8fc0cce
test: update e2e tests for signature methods
vitormattos Jun 26, 2026
e19267f
test: update e2e tests for signature footer and flow
vitormattos Jun 26, 2026
97a1394
test: update Playwright footer policy workbench support
vitormattos Jun 26, 2026
2ac7ed0
test: update component and store tests for policy handling
vitormattos Jun 26, 2026
c0f2f8b
test: reorganize policy workbench tests to mirrored structure
vitormattos Jun 26, 2026
46872b4
test: update signature-footer useRealPolicyWorkbench spec for policy …
vitormattos Jun 26, 2026
4c9fdeb
feat: update IdentifyMethods policy value for backend scope enforcement
vitormattos Jun 26, 2026
91497a4
feat: update RequestSignGroups policy value for scope constraints
vitormattos Jun 26, 2026
92025a8
test: update IdentifyMethods policy value tests
vitormattos Jun 26, 2026
2117fcc
test: update RequestSignGroups policy value tests for scope enforcement
vitormattos Jun 26, 2026
ca17a24
test: update admin integration tests for initial state
vitormattos Jun 26, 2026
998b087
feat: update IdentifyMethods frontend model for policy changes
vitormattos Jun 26, 2026
ae90d5a
test: add default-user-folder policy workbench tests
vitormattos Jun 26, 2026
453f2a3
test: add expiration-rules model tests
vitormattos Jun 26, 2026
4caa688
test: add expiration-rules rule editor tests
vitormattos Jun 26, 2026
6095722
test: add request-sign-groups model tests
vitormattos Jun 26, 2026
94a3c67
test: reorganize request-sign-groups workbench tests and add useRealP…
vitormattos Jun 26, 2026
d6ecd3e
test: add signing-mode model tests
vitormattos Jun 26, 2026
f41d645
test: add tsa policy workbench tests
vitormattos Jun 26, 2026
bd9ee5e
test: add collect-metadata policy workbench tests
vitormattos Jun 26, 2026
efb7a0c
test: reorganize signature-text workbench tests and add useRealPolicy…
vitormattos Jun 26, 2026
4ad829b
test: update signature-footer useRealPolicyWorkbench spec
vitormattos Jun 26, 2026
6131e76
test: update main useRealPolicyWorkbench spec for policy structure ch…
vitormattos Jun 26, 2026
a443f1f
test: add crl-validation rule editor tests
vitormattos Jun 26, 2026
baf975d
test: add envelope rule editor tests
vitormattos Jun 26, 2026
56010f2
test: add legal-information model tests
vitormattos Jun 26, 2026
ab2a51d
test: add validation-access rule editor tests
vitormattos Jun 26, 2026
d6ff91f
feat: update PolicyController for scope enforcement and metadata seri…
vitormattos Jun 26, 2026
eaaa912
feat: add LibresignPolicyScope type to response definitions
vitormattos Jun 26, 2026
353f349
test: update PolicyController tests for scope and metadata handling
vitormattos Jun 26, 2026
7537fd4
test: add docmdp scalar rule editor tests
vitormattos Jun 26, 2026
edb03af
test: add signature-hash-algorithm rule editor tests
vitormattos Jun 26, 2026
ce8f435
test: add signature-text section tests (background, dimensions, preview)
vitormattos Jun 26, 2026
ccf86a1
test: add signature-text template and preference behavior tests
vitormattos Jun 26, 2026
4dd0492
test: add signing-mode rule editor tests
vitormattos Jun 26, 2026
76361da
test: update expiration-rules MaximumValidityRuleEditor spec
vitormattos Jun 26, 2026
87abaca
test: update expiration-rules RenewalIntervalRuleEditor spec
vitormattos Jun 26, 2026
2828e1f
test: update signature-text SignatureTextDimensionsSection spec
vitormattos Jun 26, 2026
0f5667e
chore: regenerate OpenAPI specs and TypeScript types
vitormattos Jun 26, 2026
00fd0a7
feat: update realTypes for enhanced policy scope handling
vitormattos Jun 26, 2026
612182b
test: add realDefinitions policy workbench tests
vitormattos Jun 26, 2026
ab289f4
test: update signature-text personalPreferenceBehavior spec
vitormattos Jun 26, 2026
6ef9fa4
feat: update JSignPdfHandler for improved signature hash algorithm
vitormattos Jun 30, 2026
f470587
feat: add scope constraints to CrlValidationPolicy provider
vitormattos Jun 30, 2026
0d101e9
feat: add scope constraints to SignatureHashAlgorithmPolicy provider
vitormattos Jun 30, 2026
e9235b4
feat: add scope constraints to TsaPolicy provider
vitormattos Jun 30, 2026
f02b508
feat: update crl-validation realDefinition for scope constraints
vitormattos Jun 30, 2026
ce8f980
feat: update signature-hash-algorithm rule editor and realDefinition
vitormattos Jun 30, 2026
956368e
feat: update tsa realDefinition for scope constraints
vitormattos Jun 30, 2026
8e2a5d4
test: update PolicyController tests for scope and metadata handling
vitormattos Jun 30, 2026
f862214
test: update CrlValidation policy tests for scope constraints
vitormattos Jun 30, 2026
55c2daf
test: update SignatureHashAlgorithm policy tests for scope constraints
vitormattos Jun 30, 2026
0df7916
test: update Tsa policy tests for scope constraints
vitormattos Jun 30, 2026
5a34fa9
test: update policy contracts system scope integration tests
vitormattos Jun 30, 2026
c271304
test: update e2e tests for policy workbench permissions and signature…
vitormattos Jun 30, 2026
2cba8af
test: update crl-validation policy workbench tests
vitormattos Jun 30, 2026
5620b3e
test: update signature-hash-algorithm policy workbench tests
vitormattos Jun 30, 2026
e018d48
test: update tsa policy workbench realDefinition tests
vitormattos Jun 30, 2026
90a852a
refactor: move engine switching into CertificateEngineFactory
vitormattos Jul 1, 2026
63adae7
refactor: use CertificateEngineFactory::setEngine in AdminController
vitormattos Jul 1, 2026
d8ab911
test: add getEngine cache-path coverage to CertificateEngineFactoryTest
vitormattos Jul 1, 2026
75d8c93
test: update integration tests for engine switching and system-only p…
vitormattos Jul 1, 2026
5d77125
test: fix multiselect false-positive and navigation in hidden-seed-ov…
vitormattos Jul 1, 2026
34b2fb6
fix: update engine config read/write flow
vitormattos Jul 1, 2026
e62eeba
fix: improve certificate engine resolution
vitormattos Jul 1, 2026
8a241c7
fix: treat none engine as valid configure state
vitormattos Jul 1, 2026
450d1f7
feat: allow delegated group scope for crl validation policy
vitormattos Jul 1, 2026
4cf9549
fix: align crl validation workbench scopes with backend
vitormattos Jul 1, 2026
0545b1d
test: cover crl validation real definition scope behavior
vitormattos Jul 1, 2026
ff3c3dd
test: cover crl validation workbench visibility behavior
vitormattos Jul 1, 2026
62405a1
test: update none engine configure-check integration scenario
vitormattos Jul 1, 2026
853b42c
test: validate group scope handling for crl policy controller
vitormattos Jul 1, 2026
bb8f7d0
test: expand engine factory cache and config resolution coverage
vitormattos Jul 1, 2026
bf03b5d
test: add none handler configure-check regression coverage
vitormattos Jul 1, 2026
cfd7a27
test: add provider cases for crl policy group delegation rules
vitormattos Jul 1, 2026
c4304b8
refactor: use policy authorization in page controller
vitormattos Jul 1, 2026
2f42ca0
test: update page controller authorization coverage
vitormattos Jul 1, 2026
68342df
refactor: extract authorization scope logic from PolicyController
vitormattos Jul 1, 2026
4f2c610
refactor: simplify PolicyController by delegating scope management
vitormattos Jul 1, 2026
577a0ef
test: add comprehensive unit tests for PolicyManagementScopeService
vitormattos Jul 1, 2026
7de50b0
test: update PolicyController tests for scope service delegation
vitormattos Jul 1, 2026
4e377ec
refactor: extract request signature workflow into dedicated service
vitormattos Jul 1, 2026
1056fba
refactor: simplify RequestSignatureController with workflow delegation
vitormattos Jul 1, 2026
16b1b56
test: add unit tests for RequestSignatureWorkflowService
vitormattos Jul 1, 2026
0d0e4bc
test: update RequestSignatureController tests for workflow delegation
vitormattos Jul 1, 2026
28a8f60
fix(i18n): improve localization context in SignRequest.php
vitormattos Jul 1, 2026
540bc6b
fix(i18n): improve localization context in SignRequestCanceled.php
vitormattos Jul 1, 2026
bf52e88
fix(i18n): improve localization context in Signed.php
vitormattos Jul 1, 2026
99bbc48
fix(i18n): improve localization context in PendingSignaturesWidget.php
vitormattos Jul 1, 2026
b701b9a
fix(i18n): improve localization context in FileMapper.php
vitormattos Jul 1, 2026
88b0e1f
fix(i18n): improve localization context in FileUploadHelper.php
vitormattos Jul 1, 2026
6eb6c18
fix(i18n): improve localization context in ValidateHelper.php
vitormattos Jul 1, 2026
c445b86
fix(i18n): improve localization context in Notifier.php
vitormattos Jul 1, 2026
f5ac028
fix(i18n): improve localization context in MailService.php
vitormattos Jul 1, 2026
c311799
fix(i18n): improve localization context in certification.ts
vitormattos Jul 1, 2026
8db2c02
fix(i18n): improve localization context in IdDocsValidation.vue
vitormattos Jul 1, 2026
dc9d961
fix(i18n): improve localization context in FilesListTableHeaderAction…
vitormattos Jul 1, 2026
9a07b0e
fix(i18n): improve localization context in CertificateContent.vue
vitormattos Jul 1, 2026
5066d40
fix(i18n): improve localization context in CertificateCustonOptions.vue
vitormattos Jul 1, 2026
af57f18
test: align expected i18n messages in upload and integration tests
vitormattos Jul 1, 2026
7074885
refactor: extract shared file policy applier behavior
vitormattos Jul 1, 2026
0d2eed1
refactor: keep delegated policies and tests explicit
vitormattos Jul 1, 2026
e0d92fb
fix(i18n): improve localization in DocMdpHandler.php
vitormattos Jul 1, 2026
e7acc97
fix(i18n): improve localization in SigningErrorHandler.php
vitormattos Jul 1, 2026
1f8d98e
fix(i18n): improve localization in InjectionMiddleware.php
vitormattos Jul 1, 2026
f12a9d0
fix(i18n): improve localization in SigningErrorHandlerTest.php
vitormattos Jul 1, 2026
37ee627
fix(i18n): improve localization in MessagesLoader.php
vitormattos Jul 1, 2026
9fcf14c
fix(i18n): improve localization in RuntimeRequirementValidator.php
vitormattos Jul 1, 2026
34506dc
test: use shared l10n mock in signing mode specs
vitormattos Jul 1, 2026
4512863
test: isolate request-sign policy state in playwright specs
vitormattos Jul 1, 2026
8809b0f
fix: stabilize request notification regressions
vitormattos Jul 1, 2026
f547c82
fix: stabilize files request-sign Playwright spec
vitormattos Jul 1, 2026
1bc8f14
fix: stabilize files context-menu Playwright spec
vitormattos Jul 2, 2026
d9ce372
fix: stabilize Playwright email notification flows
vitormattos Jul 2, 2026
be830bf
fix: stabilize native-engine and email-token Playwright specs
vitormattos Jul 2, 2026
bcf9dcd
fix: prevent 500 cascade from policy validation errors and stabilize …
vitormattos Jul 2, 2026
3f25621
fix: skip corrupted stored config layers in policy resolver instead o…
vitormattos Jul 2, 2026
a1882aa
fix: treat empty stored system policy value as not configured
vitormattos Jul 2, 2026
35f63c1
fix: stabilize files request-sign flows
vitormattos Jul 3, 2026
673dac0
fix: restore files uploader flow
vitormattos Jul 3, 2026
82550d0
refactor: extract delegation layer helper
vitormattos Jul 4, 2026
23920a9
test: cover delegation layer helper
vitormattos Jul 4, 2026
e28e82e
refactor: add policy key normalizer helper
vitormattos Jul 4, 2026
68e381e
test: cover policy key normalizer helper
vitormattos Jul 4, 2026
9081c65
refactor: update ApprovalGroupsPolicy policy provider
vitormattos Jul 4, 2026
5019fb4
refactor: update CollectMetadataPolicy policy provider
vitormattos Jul 4, 2026
f127c6e
refactor: update ConfettiPolicy policy provider
vitormattos Jul 4, 2026
30b0b61
refactor: update CrlValidationPolicy policy provider
vitormattos Jul 4, 2026
60879e0
refactor: update DefaultUserFolderPolicy policy provider
vitormattos Jul 4, 2026
0a15c72
refactor: update DocMdpPolicy policy provider
vitormattos Jul 4, 2026
169f8fc
refactor: update EnvelopePolicy policy provider
vitormattos Jul 4, 2026
768e64b
refactor: update ExpirationRulesPolicy policy provider
vitormattos Jul 4, 2026
70a20b4
refactor: update FooterPolicy policy provider
vitormattos Jul 4, 2026
5f4e1b4
refactor: update IdentificationDocumentsPolicy policy provider
vitormattos Jul 4, 2026
6e7e3d3
refactor: update IdentifyMethodsPolicy policy provider
vitormattos Jul 4, 2026
6457c94
refactor: update LegalInformationPolicy policy provider
vitormattos Jul 4, 2026
92d2455
refactor: update ReminderPolicy policy provider
vitormattos Jul 4, 2026
dcc6ffc
refactor: update RequestSignGroupsPolicy policy provider
vitormattos Jul 4, 2026
c5159e8
refactor: update SignatureFlowPolicy policy provider
vitormattos Jul 4, 2026
260d089
refactor: update SignatureHashAlgorithmPolicy policy provider
vitormattos Jul 4, 2026
2a2e054
refactor: update SignatureTextPolicy policy provider
vitormattos Jul 4, 2026
42258e1
refactor: update TsaPolicy policy provider
vitormattos Jul 4, 2026
80f81a9
refactor: update ValidationAccessPolicy policy provider
vitormattos Jul 4, 2026
7f68b08
refactor: update SigningModePolicy policy provider
vitormattos Jul 4, 2026
b674c6c
fix(i18n): refine translators comments in signature text variables
vitormattos Jul 4, 2026
c7adbf3
fix: indentation
vitormattos Jul 4, 2026
b5098f5
test: fix mockUpload type inference in init.spec.ts
vitormattos Jul 4, 2026
44dc3af
chore: add TRANSLATORS and remove unecessary comments
vitormattos Jul 4, 2026
0c5ad3a
fix: indent
vitormattos Jul 4, 2026
0963a94
fix(i18n): improve translators comments in TemplateLoader
vitormattos Jul 4, 2026
ca3aa17
fix(i18n): improve translators comments in Preferences
vitormattos Jul 4, 2026
70e0519
fix(i18n): improve translators comments in PolicyRuleEditorPanel
vitormattos Jul 4, 2026
4aa5698
test: update TemplateLoader translation tests
vitormattos Jul 4, 2026
e7e9e12
refactor: export catalog presentation types
vitormattos Jul 6, 2026
9c50c2c
refactor: export catalog crud table types
vitormattos Jul 6, 2026
5878e9b
refactor: extract catalog toolbar
vitormattos Jul 6, 2026
e5d8055
test: cover catalog toolbar
vitormattos Jul 6, 2026
d31d44d
refactor: extract catalog category navigation
vitormattos Jul 6, 2026
46671cd
refactor: extract catalog category section
vitormattos Jul 6, 2026
eeec44b
test: cover catalog category section
vitormattos Jul 6, 2026
bc13ba9
refactor: extract catalog crud rules table
vitormattos Jul 6, 2026
9f29f22
test: cover catalog crud rules table
vitormattos Jul 6, 2026
3cf95a7
refactor: extract catalog create scope selector
vitormattos Jul 6, 2026
a10be22
test: cover catalog create scope selector
vitormattos Jul 6, 2026
f079f1f
refactor: extract catalog setting dialog frame
vitormattos Jul 6, 2026
20351c2
test: cover catalog setting dialog frame
vitormattos Jul 6, 2026
0fbdb67
refactor: extract catalog rule creation
vitormattos Jul 6, 2026
f22f47a
test: cover catalog rule creation composable
vitormattos Jul 6, 2026
88d62c8
refactor: split policy catalog view
vitormattos Jul 6, 2026
ccb891d
test: update catalog orchestration coverage
vitormattos Jul 6, 2026
7baafcd
test: update settings policy workbench coverage
vitormattos Jul 6, 2026
203510a
refactor: fix catalog crud table scope typing
vitormattos Jul 6, 2026
0b426fd
refactor: align catalog interaction surface typing
vitormattos Jul 6, 2026
5523653
refactor: align catalog rule creation state typing
vitormattos Jul 6, 2026
ec82b68
test: fix catalog category section typing
vitormattos Jul 6, 2026
d88b554
test: fix rule creation composable typing
vitormattos Jul 6, 2026
6133af4
test: update template loader test
vitormattos Jul 6, 2026
3ec4550
refactor: add template loader assets gateway
vitormattos Jul 6, 2026
bd5f168
refactor: inject template loader assets gateway
vitormattos Jul 6, 2026
da93b15
test: remove reflection from template loader tests
vitormattos Jul 6, 2026
8fcca22
fix: cs
vitormattos Jul 6, 2026
6877d62
chore: improve i18n in collect-metadata/CollectMetadataRuleEditor
vitormattos Jul 6, 2026
ae3b75e
chore: improve i18n in collect-metadata/realDefinition
vitormattos Jul 6, 2026
9d9bf1a
chore: improve i18n in confetti/ConfettiRuleEditor
vitormattos Jul 6, 2026
b6ecbd6
chore: improve i18n in confetti/realDefinition
vitormattos Jul 6, 2026
99538fa
chore: improve i18n in crl-validation/realDefinition
vitormattos Jul 6, 2026
f2adff3
chore: improve i18n in default-user-folder/realDefinition
vitormattos Jul 6, 2026
b7b38d9
chore: improve i18n in docmdp/DocMdpScalarRuleEditor
vitormattos Jul 6, 2026
c0c6d6f
chore: improve i18n in envelope/EnvelopeRuleEditor
vitormattos Jul 6, 2026
4986329
chore: improve i18n in envelope/realDefinition
vitormattos Jul 6, 2026
bd942e5
chore: improve i18n in expiration-rules/ExpiryInDaysRuleEditor
vitormattos Jul 6, 2026
59f191c
chore: improve i18n in expiration-rules/MaximumValidityRuleEditor
vitormattos Jul 6, 2026
8555b0e
chore: improve i18n in expiration-rules/RenewalIntervalRuleEditor
vitormattos Jul 6, 2026
f97e0b8
chore: improve i18n in expiration-rules/RequestExpirationRuleEditor
vitormattos Jul 6, 2026
7f46312
chore: improve i18n in identification-documents/IdentificationDocumen…
vitormattos Jul 6, 2026
1734932
chore: improve i18n in identification-documents/realDefinition
vitormattos Jul 6, 2026
6e5d219
chore: improve i18n in identify-methods/IdentifyMethodsRuleEditor
vitormattos Jul 6, 2026
a7806df
chore: improve i18n in identify-methods/realDefinition
vitormattos Jul 6, 2026
8148b3b
chore: improve i18n in legal-information/LegalInformationRuleEditor
vitormattos Jul 6, 2026
6513f2b
chore: improve i18n in legal-information/realDefinition
vitormattos Jul 6, 2026
d322283
chore: improve i18n in reminder/ReminderRuleEditor
vitormattos Jul 6, 2026
30ecbea
chore: improve i18n in reminder/realDefinition
vitormattos Jul 6, 2026
a39969a
chore: improve i18n in signature-flow/SignatureFlowScalarRuleEditor
vitormattos Jul 6, 2026
c48cbb3
chore: improve i18n in signature-hash-algorithm/SignatureHashAlgorith…
vitormattos Jul 6, 2026
9d42c5a
chore: improve i18n in signature-text/SignatureTextBackgroundSection
vitormattos Jul 6, 2026
0601a15
chore: improve i18n in signature-text/SignatureTextDimensionsSection
vitormattos Jul 6, 2026
08fedad
chore: improve i18n in signature-text/SignatureTextPreviewSection
vitormattos Jul 6, 2026
abf1f6b
chore: improve i18n in signature-text/SignatureTextTemplateSection
vitormattos Jul 6, 2026
258baaf
chore: improve i18n in signing-mode/ParallelWorkersRuleEditor
vitormattos Jul 6, 2026
ab0d898
refactor: extract compound policy workbench helper
vitormattos Jul 6, 2026
36b8871
refactor: simplify real policy workbench composable
vitormattos Jul 6, 2026
f9f9a95
test: cover compound policy workbench helper
vitormattos Jul 6, 2026
7b6feeb
chore(deps): remove redundant psr/http-client requirement
vitormattos Jul 6, 2026
5718fda
chore: improve i18n in Settings/AllowedGroups
vitormattos Jul 6, 2026
56aa0d1
chore: improve i18n in Settings/PolicyWorkbench/PolicyRuleEditorPanel
vitormattos Jul 6, 2026
bd63686
chore: improve i18n in Settings/PolicyWorkbench/settings/signing-mode…
vitormattos Jul 6, 2026
df6040a
chore: improve i18n in Settings/PolicyWorkbench/settings/signing-mode…
vitormattos Jul 6, 2026
e1c1f98
chore: improve i18n in Settings/PolicyWorkbench/settings/tsa/realDefi…
vitormattos Jul 6, 2026
1e32a0c
chore: improve i18n in SignPDF/_partials/Sign
vitormattos Jul 6, 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
  •  
  •  
  •  
51 changes: 28 additions & 23 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.
4 changes: 3 additions & 1 deletion lib/Activity/Provider/SignRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ public function parse($language, IEvent $event, ?IEvent $previousEvent = null):

private function getParsedSubject(\OCP\IL10N $l, string $subject) {
if ($subject === 'new_sign_request') {
// TRANSLATORS Activity message shown to a signer. {from} is the requester name and {file} is the document filename.
return $l->t('{from} requested your signature on {file}');
} elseif ($subject === 'update_sign_request') {
return $l->t('{from} made changes on {file}');
// TRANSLATORS Activity message shown when an existing signature request was updated. {from} is the requester name and {file} is the document filename.
return $l->t('{from} updated the signature request for {file}');
}
}
}
1 change: 1 addition & 0 deletions lib/Activity/Provider/SignRequestCanceled.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public function parse($language, IEvent $event, ?IEvent $previousEvent = null):
$l = $this->languageFactory->get(Application::APP_ID, $language);
$parameters = $event->getSubjectParameters();

// TRANSLATORS Activity message shown when a signature request is canceled. {from} is the requester name and {file} is the document filename.
$subject = $l->t('{from} canceled the signature request for {file}');
$event->setParsedSubject(
str_replace(
Expand Down
1 change: 1 addition & 0 deletions lib/Activity/Provider/Signed.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public function parse($language, IEvent $event, ?IEvent $previousEvent = null):
$l = $this->languageFactory->get(Application::APP_ID, $language);
$parameters = $event->getSubjectParameters();

// TRANSLATORS Activity message shown after a signer completes the document. {from} is the signer name and {file} is the document filename.
$subject = $l->t('{from} signed {file}');
$event->setParsedSubject(
str_replace(
Expand Down
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 array 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 array 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 array 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
29 changes: 29 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,23 @@ 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();

$delete = $this->db->getQueryBuilder();
$delete->delete('preferences')
->where($delete->expr()->eq('appid', $delete->createNamedParameter(Application::APP_ID)))
->andWhere($delete->expr()->like('configkey', $delete->createNamedParameter('policy.%')))
->executeStatement();
} catch (\Throwable) {
}
}
}
Loading
Loading