1
0
Fork 0
Commit-Graph

218 Commits

Autor SHA1 Nachricht Datum
Angus McLeod
cf33fb9792 Style and other fixes for API features 2022-06-02 16:45:20 +02:00
Angus McLeod
04f0d34ef3 Fix specs 2022-03-25 17:08:24 +01:00
Angus McLeod
f607863510 Remove more subscription related things and integrate with subscription client 2022-03-25 12:18:54 +01:00
Angus McLeod
5edfb4c41e Remove subs and notices files 2022-03-16 15:49:25 +01:00
Angus McLeod
69fd3d451d merge main 2022-03-12 15:08:56 +01:00
Faizaan Gagan
f0580d2bba
FEATURE: allow tags from tag field to be confined to a tag group (#175)
* FEATURE: allow tag field to be confined to a tag group

* fixed linting

* bump minor version

* moved monkeypatch to a separate module

* use snake case for variable names

* added specs
2022-02-07 11:10:52 +05:30
Keegan George
676d538da2
i18n: Update Translations (#173)
* New translations client.en.yml (Romanian)

* New translations client.en.yml (Ukrainian)

* New translations client.en.yml (Polish)

* New translations client.en.yml (Portuguese)

* New translations client.en.yml (Russian)

* New translations client.en.yml (Slovak)

* New translations client.en.yml (Slovenian)

* New translations client.en.yml (Albanian)

* New translations client.en.yml (Serbian (Cyrillic))

* New translations client.en.yml (Swedish)

* New translations client.en.yml (Turkish)

* New translations client.en.yml (Chinese Simplified)

* New translations client.en.yml (Norwegian)

* New translations client.en.yml (Chinese Traditional)

* New translations client.en.yml (Zulu)

* New translations client.en.yml (Urdu (Pakistan))

* New translations client.en.yml (Vietnamese)

* New translations client.en.yml (Galician)

* New translations client.en.yml (Icelandic)

* New translations client.en.yml (Indonesian)

* New translations client.en.yml (Persian)

* New translations client.en.yml (Khmer)

* New translations client.en.yml (Punjabi)

* New translations client.en.yml (Dutch)

* New translations client.en.yml (French)

* New translations client.en.yml (Basque)

* New translations client.en.yml (Spanish)

* New translations client.en.yml (Afrikaans)

* New translations client.en.yml (Arabic)

* New translations client.en.yml (Belarusian)

* New translations client.en.yml (Bulgarian)

* New translations client.en.yml (Catalan)

* New translations client.en.yml (Czech)

* New translations client.en.yml (Danish)

* New translations client.en.yml (German)

* New translations client.en.yml (Greek)

* New translations client.en.yml (Finnish)

* New translations client.en.yml (Mongolian)

* New translations client.en.yml (Hebrew)

* New translations client.en.yml (Hungarian)

* New translations client.en.yml (Armenian)

* New translations client.en.yml (Italian)

* New translations client.en.yml (Japanese)

* New translations client.en.yml (Georgian)

* New translations client.en.yml (Korean)

* New translations client.en.yml (Kurdish)

* New translations client.en.yml (Lithuanian)

* New translations client.en.yml (Macedonian)

* New translations client.en.yml (Tamil)

* New translations client.en.yml (Bengali)

* New translations server.en.yml (Finnish)

* New translations server.en.yml (Arabic)

* New translations server.en.yml (Belarusian)

* New translations server.en.yml (Bulgarian)

* New translations server.en.yml (Catalan)

* New translations server.en.yml (Czech)

* New translations server.en.yml (Danish)

* New translations server.en.yml (German)

* New translations server.en.yml (Greek)

* New translations server.en.yml (Basque)

* New translations server.en.yml (Hebrew)

* New translations server.en.yml (Spanish)

* New translations server.en.yml (Hungarian)

* New translations server.en.yml (Armenian)

* New translations server.en.yml (Italian)

* New translations server.en.yml (Japanese)

* New translations server.en.yml (Georgian)

* New translations server.en.yml (Korean)

* New translations server.en.yml (Kurdish)

* New translations server.en.yml (Lithuanian)

* New translations server.en.yml (Macedonian)

* New translations server.en.yml (Mongolian)

* New translations server.en.yml (Afrikaans)

* New translations server.en.yml (French)

* New translations client.en.yml (Thai)

* New translations client.en.yml (Welsh)

* New translations client.en.yml (Croatian)

* New translations client.en.yml (Kazakh)

* New translations client.en.yml (Estonian)

* New translations client.en.yml (Latvian)

* New translations client.en.yml (Azerbaijani)

* New translations client.en.yml (Hindi)

* New translations client.en.yml (Malay)

* New translations client.en.yml (Telugu)

* New translations client.en.yml (Tagalog)

* New translations client.en.yml (Yiddish)

* New translations client.en.yml (Esperanto)

* New translations server.en.yml (Romanian)

* New translations client.en.yml (Tatar)

* New translations client.en.yml (Malayalam)

* New translations client.en.yml (Tibetan)

* New translations client.en.yml (Bosnian)

* New translations client.en.yml (Kannada)

* New translations client.en.yml (Swahili)

* New translations client.en.yml (Nepali)

* New translations client.en.yml (Lao)

* New translations client.en.yml (Oromo)

* New translations client.en.yml (Sindhi)

* New translations server.en.yml (Dutch)

* New translations server.en.yml (Norwegian)

* New translations server.en.yml (Welsh)

* New translations server.en.yml (Kazakh)

* New translations server.en.yml (Estonian)

* New translations server.en.yml (Latvian)

* New translations server.en.yml (Azerbaijani)

* New translations server.en.yml (Hindi)

* New translations server.en.yml (Malay)

* New translations server.en.yml (Telugu)

* New translations server.en.yml (Tagalog)

* New translations server.en.yml (Yiddish)

* New translations server.en.yml (Esperanto)

* New translations server.en.yml (Thai)

* New translations server.en.yml (Tatar)

* New translations server.en.yml (Malayalam)

* New translations server.en.yml (Tibetan)

* New translations server.en.yml (Bosnian)

* New translations server.en.yml (Kannada)

* New translations server.en.yml (Swahili)

* New translations server.en.yml (Nepali)

* New translations server.en.yml (Lao)

* New translations server.en.yml (Oromo)

* New translations server.en.yml (Croatian)

* New translations server.en.yml (Bengali)

* New translations server.en.yml (Punjabi)

* New translations server.en.yml (Ukrainian)

* New translations server.en.yml (Polish)

* New translations server.en.yml (Portuguese)

* New translations server.en.yml (Russian)

* New translations server.en.yml (Slovak)

* New translations server.en.yml (Slovenian)

* New translations server.en.yml (Albanian)

* New translations server.en.yml (Serbian (Cyrillic))

* New translations server.en.yml (Swedish)

* New translations server.en.yml (Turkish)

* New translations server.en.yml (Chinese Simplified)

* New translations server.en.yml (Tamil)

* New translations server.en.yml (Chinese Traditional)

* New translations server.en.yml (Zulu)

* New translations server.en.yml (Urdu (Pakistan))

* New translations server.en.yml (Vietnamese)

* New translations server.en.yml (Galician)

* New translations server.en.yml (Icelandic)

* New translations server.en.yml (Indonesian)

* New translations server.en.yml (Persian)

* New translations server.en.yml (Khmer)

* New translations server.en.yml (Sindhi)

* New translations client.en.yml (Serbian (Cyrillic))

* New translations client.en.yml (Chinese Simplified)

* New translations client.en.yml (Chinese Traditional)

* New translations server.en.yml (Serbian (Cyrillic))

* New translations server.en.yml (Chinese Simplified)

* New translations server.en.yml (Chinese Traditional)

* bump version

* New translations server.en.yml (Romanian)

* New translations server.en.yml (Ukrainian)

* New translations server.en.yml (Polish)

* New translations server.en.yml (Portuguese)

* New translations server.en.yml (Russian)

* New translations server.en.yml (Slovak)

* New translations server.en.yml (Slovenian)

* New translations server.en.yml (Albanian)

* New translations server.en.yml (Serbian (Cyrillic))

* New translations server.en.yml (Swedish)

* New translations server.en.yml (Turkish)

* New translations server.en.yml (Chinese Simplified)

* New translations server.en.yml (Norwegian)

* New translations server.en.yml (Chinese Traditional)

* New translations server.en.yml (Zulu)

* New translations server.en.yml (Urdu (Pakistan))

* New translations server.en.yml (Vietnamese)

* New translations server.en.yml (Galician)

* New translations server.en.yml (Icelandic)

* New translations server.en.yml (Indonesian)

* New translations server.en.yml (Persian)

* New translations server.en.yml (Khmer)

* New translations server.en.yml (Punjabi)

* New translations server.en.yml (Dutch)

* New translations server.en.yml (French)

* New translations server.en.yml (Basque)

* New translations server.en.yml (Spanish)

* New translations server.en.yml (Afrikaans)

* New translations server.en.yml (Arabic)

* New translations server.en.yml (Belarusian)

* New translations server.en.yml (Bulgarian)

* New translations server.en.yml (Catalan)

* New translations server.en.yml (Czech)

* New translations server.en.yml (Danish)

* New translations server.en.yml (German)

* New translations server.en.yml (Greek)

* New translations server.en.yml (Finnish)

* New translations server.en.yml (Mongolian)

* New translations server.en.yml (Hebrew)

* New translations server.en.yml (Hungarian)

* New translations server.en.yml (Armenian)

* New translations server.en.yml (Italian)

* New translations server.en.yml (Japanese)

* New translations server.en.yml (Georgian)

* New translations server.en.yml (Korean)

* New translations server.en.yml (Kurdish)

* New translations server.en.yml (Lithuanian)

* New translations server.en.yml (Macedonian)

* New translations server.en.yml (Tamil)

* New translations server.en.yml (Bengali)

* New translations server.en.yml (Esperanto)

* New translations server.en.yml (Oromo)

* New translations server.en.yml (Lao)

* New translations server.en.yml (Nepali)

* New translations server.en.yml (Swahili)

* New translations server.en.yml (Kannada)

* New translations server.en.yml (Bosnian)

* New translations server.en.yml (Tibetan)

* New translations server.en.yml (Malayalam)

* New translations server.en.yml (Tatar)

* New translations server.en.yml (Welsh)

* New translations server.en.yml (Thai)

* New translations server.en.yml (Yiddish)

* New translations server.en.yml (Tagalog)

* New translations server.en.yml (Telugu)

* New translations server.en.yml (Malay)

* New translations server.en.yml (Hindi)

* New translations server.en.yml (Azerbaijani)

* New translations server.en.yml (Latvian)

* New translations server.en.yml (Estonian)

* New translations server.en.yml (Kazakh)

* New translations server.en.yml (Croatian)

* New translations server.en.yml (Sindhi)

Co-authored-by: Faizaan Gagan <fzngagan@gmail.com>
2022-02-01 12:20:18 +05:30
Faizaan Gagan
51553bc71d
FEATURE: validate liquid templates on wizard save (#156)
* DEV: validate liquid templates on wizard save

* minor fix

* code improvements and spec

* version bump

* fixed failing specs

* FIX: handle displaying backend validation errors on frontend

* fixed linting

* improved error display

* validate raw description for steps

* refactor conditional

* Identify attribute with liquid template error and pass syntax error

Co-authored-by: angusmcleod <angus@mcleod.org.au>
Co-authored-by: Angus McLeod <angusmcleod@users.noreply.github.com>
2022-01-31 15:11:14 +05:30
Angus McLeod
5e5b5e67ee
FIX: Cache valid directs and only allow one type in a template (#176)
* Cache valid directs and only allow one type in a template

* Add spec

* Bump version

* Bump version

* Exclude current wizard from other_after_signup
2022-01-31 14:48:04 +05:30
angusmcleod
4605b23585 Merge branch 'main' into pro-release 2022-01-27 17:51:24 +08:00
angusmcleod
b37f7dbdd5 DEV: preview template style improvements 2021-12-14 09:11:23 +08:00
angusmcleod
70c3f19334 Update settings text and file naming 2021-12-09 09:53:10 +08:00
angusmcleod
81bb7e56c2 WIP 2021-11-17 20:26:44 +08:00
Faizaan Gagan
564985e46e FEATURE: allow 'New Topic' button to redirect to a wizard 2021-11-11 17:20:42 +05:30
merefield
0c9acb9b20 Update subscription titles 2021-10-27 14:31:24 +01:00
angusmcleod
5abc0f4a4c IMPROVE: Add value type to mapper selector 2021-10-20 21:56:34 +08:00
merefield
deb4460d2c modify dropdown sub text slightly 2021-10-14 13:53:58 +01:00
merefield
a42e23d352 Show but differentiate unsubbed action options 2021-10-14 13:41:24 +01:00
angusmcleod
925c8c009a DEV: Add notice specs and UI updates 2021-10-05 20:54:06 +08:00
angusmcleod
084c6f4a7a wip 2021-09-24 17:58:42 +08:00
Faizaan Gagan
2678ee153d
FEATURE: add resume wizard popup (#146)
* FEATURE: add resume wizard popup

* code cleanup, copy edits

* FIX: address functionality, setting and copy issues

@fzngagan a few issues fixed

1. The resume button wasn't working (old reference to ``resumeDialog`` remained in callback.
2. This needs a wizard setting
3. It's not necessary to serialize the first step separately. We have all the steps in ``steps`` and steps have indexes.
4. Button copy

* Fix linting

* Ensure aa submission exists

* Apply prettier

Co-authored-by: angusmcleod <angus@mcleod.org.au>
2021-09-22 13:52:05 +05:30
angusmcleod
270d3bccf5 IMPROVE: translation feature 2021-09-14 11:33:16 +08:00
angusmcleod
7b57e7fcab Apply new table style to wizard logs view 2021-09-09 14:07:12 +08:00
angusmcleod
a8e81150f1 Remove additional sentence from submissions.viewing 2021-09-08 18:25:30 +08:00
angusmcleod
4a0d176f1a Fix locale file 2021-09-07 20:55:46 +08:00
angusmcleod
18c43f499e Apply template lint 2021-09-07 20:53:45 +08:00
Angus McLeod
f4d419cac2
Merge branch 'pro-release' into pro-features 2021-09-07 20:10:12 +08:00
angusmcleod
6ef333a657 Complete pro-feature functionality 2021-09-03 16:46:32 +08:00
Keegan George
622ab1b2ce Merge branch 'pro-release' of https://github.com/paviliondev/discourse-custom-wizard into ui_conventions 2021-09-01 12:38:09 -07:00
angusmcleod
6b1e7568c1 Improve PRO feature approach 2021-09-01 10:19:00 +08:00
Keegan George
d74d3d25be UX: Display submission fields unique to each type 2021-08-30 16:23:33 -07:00
angusmcleod
eadc40bdae Add CustomWizard class protections and pro feature restrictions 2021-08-18 14:11:00 +08:00
angusmcleod
f49f516403 Add pro restriction 2021-08-10 17:00:42 +08:00
angusmcleod
a27c222dc6 Update authentication and subscription handling 2021-08-10 14:45:23 +08:00
Keegan George
ae271ce647
UX: Add support button to admin-nav (#118)
* Add support button to admin-nav

* FIX: Security vulnerabilities with _blank anchor link

* Update pro support url

* UX: Create pro button custom styling

* UX: Merge support button focus styling with hover

* DEV: Move pro support url to setting

* UX: Change support button name to Pro Support

* DEV: Format stylesheet code

* DEV: Use variables and change selector specificity for pro button

* DEV: Hardcode pro-support url in button

* DEV: Remove support url localization

* DEV: Undo formatting fixes and add pro support button strings

* DEV: Undo formatting fixes auto applied

* DEV: Add space between selectors

* DEV: Convert scss variables to CSS Custom properties

* DEV: Fix linting

* FIX: Use SCSS variables for color manipulation functions

* DEV: Fix space before i18n

* DEV: Add new line at end of file

* DEV: Add new line at end of file

* DEV: Remove name attribute in localizations

* DEV: Remove padding from new line
2021-08-09 14:44:44 -07:00
Keegan George
51038ade8a FIX: Update help text in wizard message bar 2021-07-26 10:44:08 -07:00
Keegan George
bdc4044581 Merge branch 'pro-release' of https://github.com/paviliondev/discourse-custom-wizard into ui_conventions 2021-07-19 07:11:47 -07:00
Angus McLeod
5aef8972ff
Merge pull request #125 from paviliondev/submission_improvements
Abstract and improve submission handling
2021-07-12 22:43:13 +08:00
Faizaan Gagan
ca10ae797a
FEATURE: new field type Composer Preview (#130)
* WIP

* composer preview field working

* remove redundant variable

* fix linting issues

* fix rubocop

* remove unnecessary entry

* consolidate preview generation code

* add styles for onebox

* add css for @ mentions

* fixed eslint issues

* FIX: ensure oneboxes load every time

* remove unused import

* fix prettier issues

* removed unused code

* remove unused imports

* fixed prettier issue

* improve css structure

* add csrf header in all cases
2021-07-12 17:05:05 +05:30
angusmcleod
20c8ec1202 Merge branch 'master' into pr/125 2021-07-12 14:05:02 +08:00
Faizaan Gagan
21ac87cdda FEATURE: placeholder setting for text type fields 2021-07-03 15:41:49 +05:30
Keegan George
dd8513a563 UX: Add wizard-message component to logs pane 2021-06-18 11:47:24 -07:00
Keegan George
10c7c8bcc0 UX: Change info message when selecting a wizard in the submissions pane 2021-06-18 11:25:51 -07:00
Keegan George
c490da3145 UX: Add wizard message component to submissions page 2021-06-18 10:25:01 -07:00
angusmcleod
d3c6733e59 Abstract and improve submission handling 2021-06-17 17:50:22 +10:00
Angus McLeod
af3e61fe75
Add custom field improvements (#115)
* Add custom field improvements

This PR does a few things to improve our support of custom fields
1. Adds custom fields added by other plugins to the list in admin/wizards/custom-fields and the custom field list in the mapper selector
2. Adds support for json custom fields in the wizard actions

* Make eslint happy

* Make prettier happy

* Make rubocop happy

* Make ember template lint happy

* Don't assume we have the context in the selector

* Ensure custom fields don't require optional attributes (with tests)
2021-06-08 17:09:49 +05:30
Angus McLeod
ceef3f4bc9
Step and field conditionality (#87)
* Re structure builder logic to allow for step conditionality

Concerns
- Performance. Look at whether the additional build in the steps controller can be reduced
- Does not work if applied to the last step.
- Certain conditions will not work with the first step(?)
- How should this be scoped to known functionality?

* Add indexes and conditions to steps and fields

* Complete and add spec

* Complete backend

* Complete step conditionality and field indexing

* Fix failing spec

* Update coverage

* Apply rubocop

* Apply prettier

* Apply prettier to wizard js

* Fix schema issues created in merge

* Remove setting label for force_final

* Improve client wizard cache naming

* Improve steps controller and spec conditionality

* Improve final step attribute naming

* Fix failing spec

* Linting

* Add one more final step test

* Linting

* Fix eslint issues

* Apply prettier

* Linting, syntax, merge and copy cleanups

* Update wizard-admin.scss

* Fix template linting

* Rubocop fixes
2021-04-20 23:28:19 +05:30
Faizaan Gagan
c62f1ac96f IMPR: added a state for insufficient characters 2021-03-25 11:18:33 +05:30
Faizaan Gagan
6754d744f0 renamed setting's copy to Max Topic Age 2021-02-25 17:10:02 +05:30
Faizaan Gagan
c54273b94a implemented a relative time based filtering for similar topics 2021-02-25 15:36:43 +05:30