Stirling-PDF/frontend/src/core
Reece Browne 8f6fcee428
Fix: Only block export when signatures are placed but not applied (#5084)
Previously, activating signature placement mode would immediately set
signaturesApplied=false, blocking export even when no signatures were
actually placed on the PDF. This caused the "unapplied signatures"
warning to appear incorrectly after clicking "Apply Signatures".

Changes:
- Remove signaturesApplied=false from activateDrawMode and
activateSignaturePlacementMode in SignatureContext
- Add signaturesApplied=false to onAnnotationEvent handler in
SignatureAPIBridge when event.type === 'create'
- Now signatures are only marked as unapplied when actually placed

This ensures:
- Users can activate placement mode without triggering export warning
- Export is only blocked when signatures are actually placed but not
applied
- After applying signatures, users can immediately export without
warning

🤖 Generated with [Claude Code](https://claude.com/claude-code)

# Description of Changes

<!--
Please provide a summary of the changes, including:

- What was changed
- Why the change was made
- Any challenges encountered

Closes #(issue_number)
-->

---

## Checklist

### General

- [ ] I have read the [Contribution
Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md)
- [ ] I have read the [Stirling-PDF Developer
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md)
(if applicable)
- [ ] I have read the [How to add new languages to
Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md)
(if applicable)
- [ ] I have performed a self-review of my own code
- [ ] My changes generate no new warnings

### Documentation

- [ ] I have updated relevant docs on [Stirling-PDF's doc
repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/)
(if functionality has heavily changed)
- [ ] I have read the section [Add New Translation
Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md#add-new-translation-tags)
(for new translation tags only)

### Translations (if applicable)

- [ ] I ran
[`scripts/counter_translation.py`](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/docs/counter_translation.md)

### UI Changes (if applicable)

- [ ] Screenshots or videos demonstrating the UI changes are attached
(e.g., as comments or direct attachments in the PR)

### Testing (if applicable)

- [ ] I have tested my changes locally. Refer to the [Testing
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md#6-testing)
for more details.

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-29 19:29:30 +00:00
..
components Fix: Only block export when signatures are placed but not applied (#5084) 2025-11-29 19:29:30 +00:00
constants UI/allow logo selection (#4982) 2025-11-25 15:22:14 +00:00
contexts Fix: Only block export when signatures are placed but not applied (#5084) 2025-11-29 19:29:30 +00:00
data PDF Text editor (#4724) 2025-11-24 14:15:02 +00:00
hooks Save signatures to server (#5080) 2025-11-29 19:29:06 +00:00
i18n Convert V2 translations to Toml 2025-11-26 14:13:54 +00:00
pages various cookie banner fixes (#5027) 2025-11-26 15:57:04 +00:00
services Save signatures to server (#5080) 2025-11-29 19:29:06 +00:00
styles fix the text color for the first time setup with default credentials (#5023) 2025-11-26 12:14:04 +00:00
testing Feature/onboarding slides (#4955) 2025-11-25 13:45:02 +00:00
tests Convert V2 translations to Toml 2025-11-26 14:13:54 +00:00
theme Restructure frontend code to allow for extensions (#4721) 2025-10-28 10:29:36 +00:00
tools Feature/v2/add image (#4956) 2025-11-24 14:00:43 +00:00
types Feature/onboarding slides (#4955) 2025-11-25 13:45:02 +00:00
utils Handle non-pdf gracefully in viewer (#5004) 2025-11-25 21:27:47 +00:00
workers Feature/v2/compare tool (#4751) 2025-11-12 14:54:01 +00:00
App.tsx Add prompt to make Stirling your default PDF app (#4890) 2025-11-17 16:05:33 +00:00
i18n.ts Convert V2 translations to Toml 2025-11-26 14:13:54 +00:00
setupTests.js Restructure frontend code to allow for extensions (#4721) 2025-10-28 10:29:36 +00:00
setupTests.ts Restructure frontend code to allow for extensions (#4721) 2025-10-28 10:29:36 +00:00