Define the reusable signature appearance contract
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- php
- Lĩnh vực
- backend, documentation
Hướng nghiên cứu
Start by reviewing code and tests for signature-template editing, Policy Workbench configuration, previews, stamp rendering, PhpNative XObject generation, placeholders, and Unicode issue #8155; complete and review LibreSign/documentation#113 as factual input. Produce durable project documentation defining the representation, validation, variables, rendering and migration boundaries, then review #9048 and #9049 against it and update their assumptions. Done means every checklist item in this issue is documented and both downstream epics have been reviewed.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Goal
Document and define the reusable signature-appearance contract that future editor, preview, PDF rendering and AI-assisted authoring work must follow.
This is an architecture and planning task. It does not implement a new template engine, editor, renderer or AI feature.
The contract must first serve normal LibreSign functionality. AI is only a future consumer of that contract.
Current-state inputs
Before deciding the future contract, document and review the current behavior of:
- signature footer/template editing;
- Policy Workbench signature-footer configuration;
- preview generation;
- signature stamp rendering;
- PhpNative appearance/XObject generation;
- other renderer-specific differences;
- current template variables/placeholders;
- Unicode behavior and #8155.
Use code and tests as the source of truth.
LibreSign/documentation#113 documents the current signature appearance and preview pipeline and must be completed/reviewed as factual input before this synthesis is finalized. That documentation task must not decide the future appearance contract.
Contract to define
Document the minimum stable representation and rules for:
- appearance/template content;
- supported layout/formatting;
- variable/placeholders and their types;
- default/fallback behavior;
- validation errors;
- safe style/markup subset if markup is used;
- preview input/output;
- final PDF/XObject rendering input;
- Unicode/font requirements;
- compatibility/migration for existing stored templates;
- renderer-specific capabilities/fallbacks.
Do not choose raw HTML, Twig, JSON/AST or another representation because it is convenient for AI. Select or document a representation only after current product/rendering requirements are understood.
Restricted execution
If a template engine is part of the future contract, define an intentionally restricted environment.
The contract must exclude:
- arbitrary functions or PHP execution;
- filesystem access;
- remote/network resources;
- unrestricted includes/imports;
- scripts/event handlers;
- unrestricted CSS or URL-bearing constructs;
- unknown placeholders that silently produce misleading signed output.
Invalid or unsupported input must fail predictably before signing.
Unicode and fonts
Use #8155 as concrete evidence that text encoding/font behavior must be part of the contract.
Document:
- which character ranges the future contract must support;
- how unsupported characters are handled;
- renderer/font requirements;
- how preview and final output remain consistent.
Do not implement the Unicode fix in this architecture task.
Preview and final rendering
The contract must make clear that preview and final PDF rendering consume the same validated semantic representation.
Document any renderer-specific differences that cannot currently be eliminated.
UX input
The contract must expose enough information for future editor UX to know:
- which formatting controls are meaningful;
- which variables can be inserted;
- which validation errors need to be shown;
- what preview can reproduce accurately;
- which advanced implementation concepts should remain hidden from normal users.
Do not implement the editor in this issue.
Required architecture artifact
Store the final contract in durable project-owned documentation.
It must include:
- current-state summary;
- chosen/future representation;
- allowed variables;
- validation/sanitization boundary;
- preview/rendering boundary;
- Unicode/font behavior;
- compatibility/migration rule;
- explicit non-goals and unsafe constructs.
Downstream handoff
Before this issue is complete:
- review #9048 against the documented contract;
- review #9049 against the documented representation, variable registry, validator/sanitizer, preview and rendering boundaries;
- update those epics where assumptions differ;
- do not create AI implementation issues based on an older assumed format.
Out of scope
Do not:
- implement a new template engine;
- modify the production editor;
- modify the renderer;
- fix #8155;
- add AI authoring;
- add new template variables.
Done when
- A single reusable signature appearance representation is documented.
- Validation/sanitization rules are explicit.
- Variable/placeholder behavior is explicit.
- Preview and final-render boundaries are explicit.
- Unicode/font behavior is explicit.
- Existing stored templates have a compatibility/migration rule.
- Unsafe execution/resource access is excluded by contract.
- The contract is stored in durable project-owned documentation.
- #9048 and #9049 have been reviewed against the final contract.
- Ngôn ngữ chính
- PHP
- Star
- 844
- Fork
- 176
- Merge trung bình
- 14 giờ 3 phút
- Pull request đã merge (30 ngày)
- 344
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của LibreSign/libresign
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
OpenSSL engine: leaf certificates get O=Internet Widgits Pty Ltd, ST=Some-State from system openssl.cnfCó thể đã có người làm @vitormattos đã nhận 5 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
LibreSign/libresign#9366 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100
LibreSign/libresign#9007 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
LibreSign/libresign#8284 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
frontend javascript technical debt
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 8/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của LibreSign/libresign
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Automattic/blocks-engine#6318 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[remove-resource] Delete Open Course Hub, Open Multicourse Hub, and Learn2 with GitSync skeletonsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
Allow @ in the service nameĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100