Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1500 commits
Select commit Hold shift + click to select a range
30942ce
test(integration): replace mandatory with requirement in identificati…
vitormattos May 12, 2026
3625e8e
test(integration): replace mandatory with requirement in initial_stat…
vitormattos May 12, 2026
ba68025
test(integration): replace mandatory with requirement in list feature
vitormattos May 12, 2026
06862f5
test(integration): replace mandatory with requirement in thumbnail fe…
vitormattos May 12, 2026
8c419ee
test(integration): replace mandatory with requirement in validate fea…
vitormattos May 12, 2026
f5b6c8f
test(integration): replace mandatory with requirement in index feature
vitormattos May 12, 2026
5fb98fa
test(integration): replace mandatory with requirement in validate fea…
vitormattos May 12, 2026
0627064
test(integration): replace mandatory with requirement in request feature
vitormattos May 12, 2026
80f9eb5
test(integration): replace mandatory with requirement in sequential_s…
vitormattos May 12, 2026
001b31a
test(integration): replace mandatory with requirement in signed feature
vitormattos May 12, 2026
5128bc4
test(integration): replace mandatory with requirement in tsa feature
vitormattos May 12, 2026
d3d0748
chore(psalm): update baseline after mandatory to requirement refactoring
vitormattos May 12, 2026
633e392
fix(psalm): move type alias before first use and regenerate baseline
vitormattos May 12, 2026
a619f6a
fix(tests): stabilize service suite and CRL URL parsing
vitormattos May 12, 2026
002e636
test(crl): expand URL parser data providers
vitormattos May 12, 2026
c8addb7
test(security): remove 0777 from unit TestCase helper
vitormattos May 12, 2026
d95a2c1
test(security): separate dir and file permissions in TestCase helper
vitormattos May 12, 2026
2295641
test: replace deprecated instanceId helper in TestCase
vitormattos May 12, 2026
77b5227
refactor(crl): use named regex groups for URL parsing
vitormattos May 12, 2026
2c6adac
test: remove broad exception swallowing in recursive copy helper
vitormattos May 12, 2026
9ea69f5
test: remove deprecated container registration from TestCase
vitormattos May 12, 2026
e65fc49
test: restore AppConfigOverwrite and remove deprecated setAppValue usage
vitormattos May 12, 2026
2a36776
fix: cs
vitormattos May 12, 2026
37ab646
fix: update openapi documentation
vitormattos May 12, 2026
34c6542
fix: align policy tests and appconfig compatibility
vitormattos May 13, 2026
7a17b85
fix: align policy tests and metadata response schema
vitormattos May 13, 2026
1cd2944
test: stabilize policy workbench back-to-top assertion
vitormattos May 13, 2026
eb43324
fix: restore dynamic metadata schema compatibility
vitormattos May 13, 2026
8d80b65
chore: update documentation
vitormattos May 13, 2026
5f0aa8c
fix: simplify dynamic metadata type definitions to resolve openapi sc…
vitormattos May 13, 2026
5989811
fix: stabilize visible element serialization
vitormattos May 14, 2026
b18d309
fix: use patch for existing request drafts
vitormattos May 14, 2026
894607b
test: cover visible element serialization fallbacks
vitormattos May 14, 2026
66f2119
test: cover draft patch selection
vitormattos May 14, 2026
4651380
test: stabilize pending request deletion
vitormattos May 14, 2026
e480efe
test: stabilize files context menu flow
vitormattos May 14, 2026
d524738
test: stabilize footer policy hierarchy flow
vitormattos May 14, 2026
cbe7cbe
test: make mobile pdf scroll assertion deterministic
vitormattos May 14, 2026
37e8e6e
test: stabilize policy catalog scrolling
vitormattos May 14, 2026
d157375
test: stabilize policy target selection
vitormattos May 14, 2026
7b63b0d
test: stabilize native engine file status flow
vitormattos May 14, 2026
b926517
test: stabilize drawn signature flow
vitormattos May 14, 2026
2a70d51
test: stabilize visible element persistence flow
vitormattos May 14, 2026
8f39c34
fix: separate renderizable files from mapping files in visible elements
vitormattos May 14, 2026
fd97119
fix: add timing waits to prevent flaky E2E tests
vitormattos May 14, 2026
5b7c09d
fix: prioritize files array fetch when fallback is not renderable
vitormattos May 14, 2026
2c5dd34
fix: resolve Psalm type errors in SignSetupService.getArchitectures()
vitormattos May 14, 2026
e0e76d3
test: stabilize policy workbench scroll container assertions
vitormattos May 14, 2026
a3ea861
chore: remove legacy endpoints without active usage
vitormattos May 15, 2026
56d6786
refactor: migrate signature-background to policy store pattern
vitormattos May 15, 2026
7a8619c
refactor: consolidate AdminController endpoints, consolidate upload v…
vitormattos May 15, 2026
a89d6fb
feat: support whatsapp business with centralized identify catalogs
vitormattos May 15, 2026
bf98ef6
fix: cs
vitormattos May 15, 2026
1e711d7
feat: move signing mode and tsa settings to policy definitions
vitormattos May 16, 2026
0a3f37a
fix: cs
vitormattos May 16, 2026
e2d311b
fix: resolve psalm type errors in AdminController, DevelopController,…
vitormattos May 16, 2026
76e6ce1
fix: correct mock structure in IdentifyMethodsRuleEditor test
vitormattos May 16, 2026
f7be9b2
fix: cs
vitormattos May 16, 2026
d453731
chore: update openapi
vitormattos May 16, 2026
3302e9e
fix: resolve TypeScript errors in AllowedGroups and ParallelWorkersRu…
vitormattos May 16, 2026
597961b
refactor: extract footer template endpoints to FooterTemplateController
vitormattos May 17, 2026
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
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