From 22f9a454b0d1592faa6e7d3d62b71acc3f87c413 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:36:11 +0000 Subject: [PATCH] Survey to allow booking meetings1 (#3095) # 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/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/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/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) ### 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/DeveloperGuide.md#6-testing) for more details. --- build.gradle | 2 +- src/main/resources/messages_en_GB.properties | 10 ++++++- src/main/resources/static/js/pages/home.js | 6 ++--- src/main/resources/templates/home-legacy.html | 27 ++++++++++++------- src/main/resources/templates/home.html | 21 +++++++++------ 5 files changed, 43 insertions(+), 23 deletions(-) diff --git a/build.gradle b/build.gradle index c6b75caf1..0e452c6d3 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ ext { } group = "stirling.software" -version = "0.43.1" +version = "0.43.2" java { // 17 is lowest but we support and recommend 21 diff --git a/src/main/resources/messages_en_GB.properties b/src/main/resources/messages_en_GB.properties index 45c61e0ad..7de1b1a65 100644 --- a/src/main/resources/messages_en_GB.properties +++ b/src/main/resources/messages_en_GB.properties @@ -1280,7 +1280,15 @@ survey.please=Please consider taking our survey to have input on the future of S survey.disabled=(Survey popup will be disabled in following updates but available at foot of page) survey.button=Take Survey survey.dontShowAgain=Don't show again - +survey.meeting.1=If you're using Stirling PDF at work, we'd love to speak to you. We're offering technical support sessions in exchange for a 15 minute user discovery session. +survey.meeting.2=This is a chance to: +survey.meeting.3=Get help with deployment, integrations, or troubleshooting +survey.meeting.4=Provide direct feedback on performance, edge cases, and feature gaps +survey.meeting.5=Help us refine Stirling PDF for real-world enterprise use +survey.meeting.6=If you're interested, you can book time with our team directly. (English speaking only) +survey.meeting.7=Looking forward to digging into your use cases and making Stirling PDF even better! +survey.meeting.notInterested=Not a business and/or interested in a meeting? +survey.meeting.button=Book meeting #error error.sorry=Sorry for the issue! diff --git a/src/main/resources/static/js/pages/home.js b/src/main/resources/static/js/pages/home.js index 1a5390ae5..6e72cdece 100644 --- a/src/main/resources/static/js/pages/home.js +++ b/src/main/resources/static/js/pages/home.js @@ -40,7 +40,7 @@ if (defaultView === 'home-legacy') { } document.addEventListener('DOMContentLoaded', function () { - const surveyVersion = '2.0'; + const surveyVersion = '3.0'; const modal = new bootstrap.Modal(document.getElementById('surveyModal')); const dontShowAgain = document.getElementById('dontShowAgain'); const takeSurveyButton = document.getElementById('takeSurvey'); @@ -85,13 +85,13 @@ document.addEventListener('DOMContentLoaded', function () { localStorage.removeItem('surveyVersion'); } }); - +if (takeSurveyButton) { takeSurveyButton.addEventListener('click', function () { localStorage.setItem('surveyTaken', 'true'); localStorage.setItem('surveyVersion', surveyVersion); modal.hide(); }); - +} if (localStorage.getItem('dontShowSurvey')) { modal.hide(); } diff --git a/src/main/resources/templates/home-legacy.html b/src/main/resources/templates/home-legacy.html index 9e70d58f3..62ad658f8 100644 --- a/src/main/resources/templates/home-legacy.html +++ b/src/main/resources/templates/home-legacy.html @@ -343,21 +343,26 @@