From e02f78569a30b78fec9697aca18b0388cb0a5b83 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 29 Sep 2023 08:33:39 +0800 Subject: [PATCH 01/12] FIX: explicitly order submission list for specs --- lib/custom_wizard/submission.rb | 2 ++ lib/custom_wizard/subscription.rb | 2 +- spec/serializers/custom_wizard/submission_serializer_spec.rb | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/custom_wizard/submission.rb b/lib/custom_wizard/submission.rb index ae616b0b..7387902e 100644 --- a/lib/custom_wizard/submission.rb +++ b/lib/custom_wizard/submission.rb @@ -131,6 +131,8 @@ class CustomWizard::Submission params[:key] = list_actor_id if list_actor_id query = PluginStoreRow.where(params) + query = query.order(order_by) if order_by + result = OpenStruct.new(submissions: [], total: nil) query.each do |record| diff --git a/lib/custom_wizard/subscription.rb b/lib/custom_wizard/subscription.rb index ee72b7f8..23de1808 100644 --- a/lib/custom_wizard/subscription.rb +++ b/lib/custom_wizard/subscription.rb @@ -157,7 +157,7 @@ class CustomWizard::Subscription return :none unless subscribed? return :business if business? return :standard if standard? - return :community if community? + :community if community? end def subscribed? diff --git a/spec/serializers/custom_wizard/submission_serializer_spec.rb b/spec/serializers/custom_wizard/submission_serializer_spec.rb index 2fa000e8..d81cfb15 100644 --- a/spec/serializers/custom_wizard/submission_serializer_spec.rb +++ b/spec/serializers/custom_wizard/submission_serializer_spec.rb @@ -40,7 +40,7 @@ describe CustomWizard::SubmissionSerializer do it "should return field values, types and labels" do wizard = CustomWizard::Wizard.create(template_json["id"]) - list = CustomWizard::Submission.list(wizard, page: 0) + list = CustomWizard::Submission.list(wizard, page: 0, order_by: 'id') json_array = ActiveModel::ArraySerializer.new( list.submissions, From 98b2d85e63d924df58509c79a546a2dcc18e8eb2 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 29 Sep 2023 08:36:51 +0800 Subject: [PATCH 02/12] Bump version --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index 7d3f7679..497a1461 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # name: discourse-custom-wizard # about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more. -# version: 2.4.23 +# version: 2.4.24 # authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos # url: https://github.com/paviliondev/discourse-custom-wizard # contact_emails: development@pavilion.tech From cef2cc1b65b67fb80e88c1ddc7b6053d54120517 Mon Sep 17 00:00:00 2001 From: Robert <35533304+merefield@users.noreply.github.com> Date: Wed, 4 Oct 2023 16:57:09 +0100 Subject: [PATCH 03/12] bump patch --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index 3a84371b..680c7191 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # name: discourse-custom-wizard # about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more. -# version: 2.4.24 +# version: 2.4.25 # authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos # url: https://github.com/paviliondev/discourse-custom-wizard # contact_emails: development@pavilion.tech From 362c74cb44becb3845503e4f8512fe9440359e5b Mon Sep 17 00:00:00 2001 From: jumagura Date: Fri, 6 Oct 2023 16:24:05 -0400 Subject: [PATCH 04/12] DEV: Add exception to display all categories for admin and staff --- .../initializers/custom-wizard-edits.js.es6 | 11 +- .../category-chooser-initializer-test.js | 152 +++++++++++++++++- 2 files changed, 155 insertions(+), 8 deletions(-) diff --git a/assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6 b/assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6 index bd3c3d2d..cef4c659 100644 --- a/assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6 +++ b/assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6 @@ -87,10 +87,13 @@ export default { api.modifyClass("component:category-chooser", { categoriesByScope(options = {}) { let categories = this._super(options); - - return categories.filter((category) => { - return !category.custom_fields?.create_topic_wizard; - }); + const currentUser = this.currentUser; + if (!(currentUser && (currentUser.admin || currentUser.staff))) { + categories = categories.filter((category) => { + return !category.custom_fields?.create_topic_wizard; + }); + } + return categories; }, }); }); diff --git a/test/javascripts/acceptance/category-chooser-initializer-test.js b/test/javascripts/acceptance/category-chooser-initializer-test.js index f7e02bb8..edf9004c 100644 --- a/test/javascripts/acceptance/category-chooser-initializer-test.js +++ b/test/javascripts/acceptance/category-chooser-initializer-test.js @@ -3,8 +3,8 @@ import { acceptance } from "discourse/tests/helpers/qunit-helpers"; import selectKit from "discourse/tests/helpers/select-kit-helper"; import { test } from "qunit"; -acceptance("Category Chooser Initializer", function (needs) { - needs.user(); +acceptance("Category Chooser Initializer for regular users", function (needs) { + needs.user({ staff: false, admin: false, moderator: false }); needs.settings({ allow_uncategorized_topics: false, }); @@ -45,9 +45,8 @@ acceptance("Category Chooser Initializer", function (needs) { ], }); - test("does not display category with create_topic_wizard custom field", async function (assert) { + test("does not display category with create_topic_wizard for regular users", async function (assert) { const categoryChooser = selectKit(".category-chooser"); - await visit("/"); await click("#create-topic"); await categoryChooser.expand(); @@ -80,3 +79,148 @@ acceptance("Category Chooser Initializer", function (needs) { ); }); }); + +acceptance("Category Chooser Initializer for Admins", function (needs) { + needs.user({ admin: true }); + needs.settings({ + allow_uncategorized_topics: false, + }); + needs.site({ + can_tag_topics: true, + categories: [ + { + id: 1, + name: "General", + slug: "general", + permission: 1, + topic_template: null, + }, + { + id: 2, + name: "Category with custom field", + slug: "category-custom-field", + permission: 1, + topic_template: "", + custom_fields: { + create_topic_wizard: "21", + }, + }, + { + id: 3, + name: "Category 1", + slug: "category-1", + permission: 1, + topic_template: "", + }, + { + id: 4, + name: "Category 2", + slug: "category-2", + permission: 1, + topic_template: "", + }, + ], + }); + + test("displays all categories", async function (assert) { + const categoryChooser = selectKit(".category-chooser"); + await visit("/"); + await click("#create-topic"); + await categoryChooser.expand(); + let categories = Array.from( + document.querySelectorAll(".category-chooser .category-row") + ).filter((category) => category.getAttribute("data-name")); // Filter elements with a data-name attribute + assert.equal( + categories.length, + 4, + "Correct number of categories are displayed" + ); + const categoryNames = [ + "General", + "Category 1", + "Category 2", + "Category with custom field", + ]; + + categoryNames.forEach((categoryName) => { + assert.ok( + categories.some( + (category) => category.getAttribute("data-name") === categoryName + ), + `Category '${categoryName}' is displayed` + ); + }); + }); +}); +acceptance("Category Chooser Initializer for Staff", function (needs) { + needs.user({ staff: true }); + needs.settings({ + allow_uncategorized_topics: false, + }); + needs.site({ + can_tag_topics: true, + categories: [ + { + id: 1, + name: "General", + slug: "general", + permission: 1, + topic_template: null, + }, + { + id: 2, + name: "Category with custom field", + slug: "category-custom-field", + permission: 1, + topic_template: "", + custom_fields: { + create_topic_wizard: "21", + }, + }, + { + id: 3, + name: "Category 1", + slug: "category-1", + permission: 1, + topic_template: "", + }, + { + id: 4, + name: "Category 2", + slug: "category-2", + permission: 1, + topic_template: "", + }, + ], + }); + + test("displays all categories", async function (assert) { + const categoryChooser = selectKit(".category-chooser"); + await visit("/"); + await click("#create-topic"); + await categoryChooser.expand(); + let categories = Array.from( + document.querySelectorAll(".category-chooser .category-row") + ).filter((category) => category.getAttribute("data-name")); // Filter elements with a data-name attribute + assert.equal( + categories.length, + 4, + "Correct number of categories are displayed" + ); + const categoryNames = [ + "General", + "Category 1", + "Category 2", + "Category with custom field", + ]; + + categoryNames.forEach((categoryName) => { + assert.ok( + categories.some( + (category) => category.getAttribute("data-name") === categoryName + ), + `Category '${categoryName}' is displayed` + ); + }); + }); +}); From 61c45749088f5ec48de3bbeb79f88fd699b8dbdf Mon Sep 17 00:00:00 2001 From: jumagura Date: Fri, 6 Oct 2023 16:26:18 -0400 Subject: [PATCH 05/12] bump version --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index 680c7191..a4413577 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # name: discourse-custom-wizard # about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more. -# version: 2.4.25 +# version: 2.4.26 # authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos # url: https://github.com/paviliondev/discourse-custom-wizard # contact_emails: development@pavilion.tech From 9656303c632bd307eb76f5770da1c31fe5b45b84 Mon Sep 17 00:00:00 2001 From: jumagura Date: Fri, 6 Oct 2023 22:35:36 -0400 Subject: [PATCH 06/12] DEV: Refactor staff condition in category-chooser for simplicity --- .../discourse/initializers/custom-wizard-edits.js.es6 | 2 +- .../javascripts/acceptance/category-chooser-initializer-test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6 b/assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6 index cef4c659..ca72fa4b 100644 --- a/assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6 +++ b/assets/javascripts/discourse/initializers/custom-wizard-edits.js.es6 @@ -88,7 +88,7 @@ export default { categoriesByScope(options = {}) { let categories = this._super(options); const currentUser = this.currentUser; - if (!(currentUser && (currentUser.admin || currentUser.staff))) { + if (!currentUser?.staff) { categories = categories.filter((category) => { return !category.custom_fields?.create_topic_wizard; }); diff --git a/test/javascripts/acceptance/category-chooser-initializer-test.js b/test/javascripts/acceptance/category-chooser-initializer-test.js index edf9004c..0348e5bb 100644 --- a/test/javascripts/acceptance/category-chooser-initializer-test.js +++ b/test/javascripts/acceptance/category-chooser-initializer-test.js @@ -4,7 +4,7 @@ import selectKit from "discourse/tests/helpers/select-kit-helper"; import { test } from "qunit"; acceptance("Category Chooser Initializer for regular users", function (needs) { - needs.user({ staff: false, admin: false, moderator: false }); + needs.user({ admin: false, moderator: false }); needs.settings({ allow_uncategorized_topics: false, }); From ed75e62ebc8690ca9ad6be40da47e57cdf894fd5 Mon Sep 17 00:00:00 2001 From: Andrei Prigorshnev Date: Mon, 9 Oct 2023 21:03:51 +0400 Subject: [PATCH 07/12] DEV: Stop using the deprecated text.cookAsync function --- .../discourse/components/custom-wizard-field.js.es6 | 4 ++-- .../discourse/components/custom-wizard-step.js.es6 | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/javascripts/discourse/components/custom-wizard-field.js.es6 b/assets/javascripts/discourse/components/custom-wizard-field.js.es6 index d706ecd8..bb368310 100644 --- a/assets/javascripts/discourse/components/custom-wizard-field.js.es6 +++ b/assets/javascripts/discourse/components/custom-wizard-field.js.es6 @@ -1,7 +1,7 @@ import Component from "@ember/component"; import { dasherize } from "@ember/string"; import discourseComputed from "discourse-common/utils/decorators"; -import { cookAsync } from "discourse/lib/text"; +import { cook } from "discourse/lib/text"; export default Component.extend({ classNameBindings: [ @@ -14,7 +14,7 @@ export default Component.extend({ didReceiveAttrs() { this._super(...arguments); - cookAsync(this.field.translatedDescription).then((cookedDescription) => { + cook(this.field.translatedDescription).then((cookedDescription) => { this.set("cookedDescription", cookedDescription); }); }, diff --git a/assets/javascripts/discourse/components/custom-wizard-step.js.es6 b/assets/javascripts/discourse/components/custom-wizard-step.js.es6 index 7c933771..250f9140 100644 --- a/assets/javascripts/discourse/components/custom-wizard-step.js.es6 +++ b/assets/javascripts/discourse/components/custom-wizard-step.js.es6 @@ -4,7 +4,7 @@ import I18n from "I18n"; import getUrl from "discourse-common/lib/get-url"; import { htmlSafe } from "@ember/template"; import { schedule } from "@ember/runloop"; -import { cookAsync } from "discourse/lib/text"; +import { cook } from "discourse/lib/text"; import CustomWizard, { updateCachedWizard, } from "discourse/plugins/discourse-custom-wizard/discourse/models/custom-wizard"; @@ -25,10 +25,10 @@ export default Component.extend({ didReceiveAttrs() { this._super(...arguments); - cookAsync(this.step.translatedTitle).then((cookedTitle) => { + cook(this.step.translatedTitle).then((cookedTitle) => { this.set("cookedTitle", cookedTitle); }); - cookAsync(this.step.translatedDescription).then((cookedDescription) => { + cook(this.step.translatedDescription).then((cookedDescription) => { this.set("cookedDescription", cookedDescription); }); }, From c052856947c5b1f0d322b195181defef1394e0cf Mon Sep 17 00:00:00 2001 From: Andrei Prigorshnev Date: Mon, 9 Oct 2023 21:12:14 +0400 Subject: [PATCH 08/12] Ensure compatibility --- .discourse-compatibility | 1 + 1 file changed, 1 insertion(+) diff --git a/.discourse-compatibility b/.discourse-compatibility index 01ce2cde..ff1e994a 100644 --- a/.discourse-compatibility +++ b/.discourse-compatibility @@ -1,3 +1,4 @@ +3.2.0.beta2: 1ee2f7d8babafe32912372fbbfa50c89f5b09ba9 3.1.999: 1f35b80f85e5fd1efb7f4851f0845700432febdc 2.7.99: e07a57e398b6b1676ab42a7e34467556fca5416b 2.5.1: bb85b3a0d2c0ab6b59bcb405731c39089ec6731c From 244f7acea6f4c43b054887924ee8dcb1b2e6e0f7 Mon Sep 17 00:00:00 2001 From: Richard Date: Tue, 10 Oct 2023 07:29:05 +0000 Subject: [PATCH 09/12] Replaced documentation links --- README.md | 14 +++++++------- .../components/wizard-custom-action.js.es6 | 2 +- .../components/wizard-custom-field.js.es6 | 2 +- .../controllers/admin-wizards-custom-fields.js.es6 | 2 +- .../controllers/admin-wizards-logs.js.es6 | 2 +- .../controllers/admin-wizards-manager.js.es6 | 2 +- .../controllers/admin-wizards-submissions.js.es6 | 2 +- .../controllers/admin-wizards-wizard.js.es6 | 2 +- .../discourse/mixins/subscription.js.es6 | 2 +- config/locales/client.en.yml | 2 +- 10 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 0c454685..41aaeafc 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The Custom Wizard Plugin lets you make forms for your Discourse forum. Better us -👋 Looking to report an issue? We're managing issues for this plugin using our [bug report wizard](https://coop.pavilion.tech/w/bug-report). +👋 Looking to report an issue? We're managing issues for this plugin using our [bug report wizard](https://pavilion.tech/products/discourse-custom-wizard-plugin/support/bug-report). ## Install @@ -12,16 +12,16 @@ If you're not sure how to install a plugin in Discourse, please follow the [plug ## Documentation -[Read the full documentation here](https://coop.pavilion.tech/c/82), or go directly to the relevant section +[Read the full documentation here](https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/), or go directly to the relevant section - [Wizard Administration](https://coop.pavilion.tech/t/1602) - [Wizard Settings](https://coop.pavilion.tech/t/1614) -- [Step Settings](https://coop.pavilion.tech/t/1735) -- [Field Settings](https://coop.pavilion.tech/t/1580) -- [Conditional Settings](https://coop.pavilion.tech/t/1673) -- [Field Interpolation](https://coop.pavilion.tech/t/1557) +- [Step Settings](https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/step-settings) +- [Field Settings](https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/field-settings) +- [Conditional Settings](https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/conditional-settings) +- [Field Interpolation](https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/field-interpolation) - [Handling Dates and Times](https://coop.pavilion.tech/t/1708) ## Support -- [Report an issue](https://coop.pavilion.tech/w/bug-report) +- [Report an issue](https://pavilion.tech/products/discourse-custom-wizard-plugin/support/bug-report) diff --git a/assets/javascripts/discourse/components/wizard-custom-action.js.es6 b/assets/javascripts/discourse/components/wizard-custom-action.js.es6 index 81a12530..9c72b543 100644 --- a/assets/javascripts/discourse/components/wizard-custom-action.js.es6 +++ b/assets/javascripts/discourse/components/wizard-custom-action.js.es6 @@ -41,7 +41,7 @@ export default Component.extend(UndoChanges, { }; }), - messageUrl: "https://discourse.pluginmanager.org/t/action-settings", + messageUrl: "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/action-settings", @discourseComputed("action.type") messageKey(type) { diff --git a/assets/javascripts/discourse/components/wizard-custom-field.js.es6 b/assets/javascripts/discourse/components/wizard-custom-field.js.es6 index ed66012a..4f700490 100644 --- a/assets/javascripts/discourse/components/wizard-custom-field.js.es6 +++ b/assets/javascripts/discourse/components/wizard-custom-field.js.es6 @@ -27,7 +27,7 @@ export default Component.extend(UndoChanges, { isTextType: or("isText", "isTextarea", "isComposer"), isComposerPreview: equal("field.type", "composer_preview"), categoryPropertyTypes: selectKitContent(["id", "slug"]), - messageUrl: "https://discourse.pluginmanager.org/t/field-settings", + messageUrl: "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/field-settings", @discourseComputed("field.type") validations(type) { diff --git a/assets/javascripts/discourse/controllers/admin-wizards-custom-fields.js.es6 b/assets/javascripts/discourse/controllers/admin-wizards-custom-fields.js.es6 index 5d47d8d7..65a3ce21 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-custom-fields.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-wizards-custom-fields.js.es6 @@ -4,7 +4,7 @@ import CustomWizardCustomField from "../models/custom-wizard-custom-field"; export default Controller.extend({ messageKey: "create", fieldKeys: ["klass", "type", "name", "serializers"], - documentationUrl: "https://discourse.pluginmanager.org/t/custom-fields", + documentationUrl: "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/custom-fields", actions: { addField() { diff --git a/assets/javascripts/discourse/controllers/admin-wizards-logs.js.es6 b/assets/javascripts/discourse/controllers/admin-wizards-logs.js.es6 index 7388a8d6..53cd284b 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-logs.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-wizards-logs.js.es6 @@ -2,7 +2,7 @@ import Controller from "@ember/controller"; import { default as discourseComputed } from "discourse-common/utils/decorators"; export default Controller.extend({ - documentationUrl: "https://thepavilion.io/t/2818", + documentationUrl: "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/", @discourseComputed("wizardId") wizardName(wizardId) { diff --git a/assets/javascripts/discourse/controllers/admin-wizards-manager.js.es6 b/assets/javascripts/discourse/controllers/admin-wizards-manager.js.es6 index 67016bd7..0bc77354 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-manager.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-wizards-manager.js.es6 @@ -7,7 +7,7 @@ import I18n from "I18n"; import { underscore } from "@ember/string"; export default Controller.extend({ - messageUrl: "https://discourse.pluginmanager.org/t/wizard-manager", + messageUrl: "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/wizard-manager", messageKey: "info", messageIcon: "info-circle", messageClass: "info", diff --git a/assets/javascripts/discourse/controllers/admin-wizards-submissions.js.es6 b/assets/javascripts/discourse/controllers/admin-wizards-submissions.js.es6 index 7388a8d6..53cd284b 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-submissions.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-wizards-submissions.js.es6 @@ -2,7 +2,7 @@ import Controller from "@ember/controller"; import { default as discourseComputed } from "discourse-common/utils/decorators"; export default Controller.extend({ - documentationUrl: "https://thepavilion.io/t/2818", + documentationUrl: "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/", @discourseComputed("wizardId") wizardName(wizardId) { diff --git a/assets/javascripts/discourse/controllers/admin-wizards-wizard.js.es6 b/assets/javascripts/discourse/controllers/admin-wizards-wizard.js.es6 index 5178a1e1..994dd1a6 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-wizard.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-wizards-wizard.js.es6 @@ -22,5 +22,5 @@ export default Controller.extend({ }, messageUrl: - "https://discourse.pluginmanager.org/c/discourse-custom-wizard/documentation", + "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/", }); diff --git a/assets/javascripts/discourse/mixins/subscription.js.es6 b/assets/javascripts/discourse/mixins/subscription.js.es6 index 34276c3f..219a602b 100644 --- a/assets/javascripts/discourse/mixins/subscription.js.es6 +++ b/assets/javascripts/discourse/mixins/subscription.js.es6 @@ -7,7 +7,7 @@ const PRODUCT_PAGE = "https://custom-wizard.pavilion.tech"; const SUPPORT_MESSAGE = "https://coop.pavilion.tech/new-message?username=support&title=Custom%20Wizard%20Support"; const MANAGER_CATEGORY = - "https://discourse.pluginmanager.org/c/discourse-custom-wizard"; + "https://pavilion.tech/products/discourse-custom-wizard-plugin/support"; export default Mixin.create({ subscriptionLandingUrl: PRODUCT_PAGE, diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 98519335..b4b9ba68 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -171,7 +171,7 @@ en: not_subscribed: "You've authorized, but are not currently subscribed to a Custom Wizard plan on %{server}." subscription_expiring: "Your subscription is active, but will expire in the next 48 hours." subscription_active: "Your subscription is active." - subscription_inactive: "Your subscription is inactive on this forum. Read more in the documentation." + subscription_inactive: "Your subscription is inactive on this forum. Read more in the documentation." unauthorized: "You're unauthorized. If you have a subscription, it will become inactive in the next 48 hours." unauthorize_failed: Failed to unauthorize. submissions: From 757a195047ed40dc8c22fdae2ae85e6c8e7b9745 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Wed, 11 Oct 2023 08:53:50 +0800 Subject: [PATCH 10/12] Bump version --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index a4413577..0c4d6a14 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # name: discourse-custom-wizard # about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more. -# version: 2.4.26 +# version: 2.4.27 # authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos # url: https://github.com/paviliondev/discourse-custom-wizard # contact_emails: development@pavilion.tech From 8eee68a0661c07c62e2b1915e62e153a6f61b189 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Mon, 16 Oct 2023 09:09:41 +0800 Subject: [PATCH 11/12] Fix prettier errors --- .../discourse/components/wizard-custom-action.js.es6 | 3 ++- .../discourse/components/wizard-custom-field.js.es6 | 3 ++- .../discourse/controllers/admin-wizards-custom-fields.js.es6 | 3 ++- .../discourse/controllers/admin-wizards-logs.js.es6 | 3 ++- .../discourse/controllers/admin-wizards-manager.js.es6 | 3 ++- .../discourse/controllers/admin-wizards-submissions.js.es6 | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/assets/javascripts/discourse/components/wizard-custom-action.js.es6 b/assets/javascripts/discourse/components/wizard-custom-action.js.es6 index 9c72b543..b9329617 100644 --- a/assets/javascripts/discourse/components/wizard-custom-action.js.es6 +++ b/assets/javascripts/discourse/components/wizard-custom-action.js.es6 @@ -41,7 +41,8 @@ export default Component.extend(UndoChanges, { }; }), - messageUrl: "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/action-settings", + messageUrl: + "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/action-settings", @discourseComputed("action.type") messageKey(type) { diff --git a/assets/javascripts/discourse/components/wizard-custom-field.js.es6 b/assets/javascripts/discourse/components/wizard-custom-field.js.es6 index 4f700490..b19667ad 100644 --- a/assets/javascripts/discourse/components/wizard-custom-field.js.es6 +++ b/assets/javascripts/discourse/components/wizard-custom-field.js.es6 @@ -27,7 +27,8 @@ export default Component.extend(UndoChanges, { isTextType: or("isText", "isTextarea", "isComposer"), isComposerPreview: equal("field.type", "composer_preview"), categoryPropertyTypes: selectKitContent(["id", "slug"]), - messageUrl: "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/field-settings", + messageUrl: + "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/field-settings", @discourseComputed("field.type") validations(type) { diff --git a/assets/javascripts/discourse/controllers/admin-wizards-custom-fields.js.es6 b/assets/javascripts/discourse/controllers/admin-wizards-custom-fields.js.es6 index 65a3ce21..11e66782 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-custom-fields.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-wizards-custom-fields.js.es6 @@ -4,7 +4,8 @@ import CustomWizardCustomField from "../models/custom-wizard-custom-field"; export default Controller.extend({ messageKey: "create", fieldKeys: ["klass", "type", "name", "serializers"], - documentationUrl: "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/custom-fields", + documentationUrl: + "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/custom-fields", actions: { addField() { diff --git a/assets/javascripts/discourse/controllers/admin-wizards-logs.js.es6 b/assets/javascripts/discourse/controllers/admin-wizards-logs.js.es6 index 53cd284b..0d321948 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-logs.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-wizards-logs.js.es6 @@ -2,7 +2,8 @@ import Controller from "@ember/controller"; import { default as discourseComputed } from "discourse-common/utils/decorators"; export default Controller.extend({ - documentationUrl: "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/", + documentationUrl: + "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/", @discourseComputed("wizardId") wizardName(wizardId) { diff --git a/assets/javascripts/discourse/controllers/admin-wizards-manager.js.es6 b/assets/javascripts/discourse/controllers/admin-wizards-manager.js.es6 index 0bc77354..65b8987a 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-manager.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-wizards-manager.js.es6 @@ -7,7 +7,8 @@ import I18n from "I18n"; import { underscore } from "@ember/string"; export default Controller.extend({ - messageUrl: "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/wizard-manager", + messageUrl: + "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/wizard-manager", messageKey: "info", messageIcon: "info-circle", messageClass: "info", diff --git a/assets/javascripts/discourse/controllers/admin-wizards-submissions.js.es6 b/assets/javascripts/discourse/controllers/admin-wizards-submissions.js.es6 index 53cd284b..0d321948 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-submissions.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-wizards-submissions.js.es6 @@ -2,7 +2,8 @@ import Controller from "@ember/controller"; import { default as discourseComputed } from "discourse-common/utils/decorators"; export default Controller.extend({ - documentationUrl: "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/", + documentationUrl: + "https://pavilion.tech/products/discourse-custom-wizard-plugin/documentation/", @discourseComputed("wizardId") wizardName(wizardId) { From 3308c38b36dca0f00032cebac1f6807696a196e8 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Mon, 16 Oct 2023 09:12:23 +0800 Subject: [PATCH 12/12] Bump version --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index a4413577..b169462f 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # name: discourse-custom-wizard # about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more. -# version: 2.4.26 +# version: 2.4.28 # authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos # url: https://github.com/paviliondev/discourse-custom-wizard # contact_emails: development@pavilion.tech