0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-13 21:42:53 +01:00
Commit-Graph

131 Commits

Autor SHA1 Nachricht Datum
Faizaan Gagan
7b9a54590b Merge branch 'master' into sprockets-fix 2021-06-16 14:28:55 +05:30
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
522d4e9489
IMPROVE: ensure redirect_to_wizard is cleaned up even if sidekiq is not working (#116)
* Add test of redirect_to_wizard when wizard is removed

* Make clear_user_wizard_redirect a synchronous operation
2021-06-07 18:45:41 +05:30
Faizaan Gagan
a1e8070062 FIX: move sprockets customization to monkeypatch 2021-05-12 06:33:19 +05:30
Faizaan Gagan
eb5e2fe604 move sprockets logic outside after_initialize 2021-05-12 06:17:01 +05:30
Faizaan Gagan
a4adeecf5f Revert "Revert "DEV: add new sprockets directive to require discourse folders" (#111)"
This reverts commit ca125a2a8a.
2021-05-12 06:14:09 +05:30
Faizaan Gagan
ca125a2a8a
Revert "DEV: add new sprockets directive to require discourse folders" (#111) 2021-05-12 02:58:12 +05:30
Faizaan Gagan
5f24882ef6 DEV: raise plugin specific errors on failure 2021-05-08 23:15:06 +05:30
Faizaan Gagan
13eabe0695 added specs 2021-05-03 03:42:26 +05:30
Faizaan Gagan
fb8cdab0fd merged master 2021-04-21 03:32:31 +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
angusmcleod
88a0846842 Remove jquery timepicker 2021-04-12 14:56:48 +10:00
Faizaan Gagan
105fc46774
FEATURE: added liquid based templating (#83)
* FEATURE: added liquid based templating

* templating should be false by default

* added rspec tests for mapper templating

* wrapped templating tests in a context block

* added a custom liquid filter and tests

* ran rubocop on changed files

* DEV: minor variable and naming changes

* minor code formatting

* improved overall structure and tightened spec for custom filter

* added a spec template: false

* define method at the top of spec file

* naming convention

* removed extra space
2021-04-09 11:04:42 +05:30
Faizaan Gagan
1bc55c6099 code formatting 2021-04-05 22:04:17 +05:30
Faizaan Gagan
ae918976a3 DEV: add sprockets directive to require discourse folders 2021-04-05 21:53:34 +05:30
Penar Musaraj
fa73a18363
Ensure SCSS compilation compatibility with core (#77)
* WIP: Fix for new Discourse

* Ensure SCSS compilation compatibility with core

Co-authored-by: Faizaan Gagan <fzngagan@gmail.com>
2021-03-13 13:27:18 +05:30
Angus McLeod
4edb40e526
Apply rubcop and get tests pass (#76) 2021-03-11 12:00:15 +05:30
angus
a86942df2e Add contact email to plugin metadata 2021-03-10 20:45:45 +11:00
angusmcleod
4e7b13ffe3 Version bump 2021-02-20 18:18:27 +11:00
angusmcleod
c45e51fcb6 Various fixes
* Code formatting
* Both "type" and "name" are used to refer to the validation type. Changed all to "type".
* Added proper abstraction of realtime validation classes on server
* UI improvements in admin and wizard
2021-02-16 11:43:00 +11:00
Faizaan Gagan
77ca946745 completed categories and date after filters 2021-02-05 18:29:30 +05:30
Faizaan Gagan
ffd2101a30 added backend validation mechanism and refined code 2021-02-01 19:28:37 +05:30
Faizaan Gagan
5d749fe426 some changes 2021-01-27 10:38:26 +05:30
Angus McLeod
d453d97df3 Add custom-wizard-specific caching system
Initially for use with registered custom fields
2020-12-04 18:05:56 +11:00
Angus McLeod
39ce7248a8 Add enabled? wrapper for CustomField extensions 2020-12-01 18:20:02 +11:00
Angus McLeod
96ac100602 version bump 2020-11-26 18:52:33 +11:00
Angus McLeod
f31054f75d Isolate and specify template and update validation 2020-11-26 14:05:50 +11:00
Angus McLeod
e066ee4b00 Revert "Remove unused ExtraLocaleController extension"
This reverts commit 37c18ff324.
2020-11-23 10:11:45 +11:00
Angus McLeod
b383538a6b Move to individual custom field saving 2020-11-10 11:56:11 +11:00
Angus McLeod
097af63090 Add preloading to custom field implementation 2020-11-09 17:50:17 +11:00
Angus McLeod
3e2a471d7d Update plugin url 2020-11-09 15:14:45 +11:00
Angus McLeod
0a542af7c6 Bump version 2020-11-09 14:33:46 +11:00
Angus McLeod
066eef4ef8 FEATURE: Wizard Manager
The "Transfer" UI has been upgraded into a full wizard manager, adding additional import/export features and bulk-delete functionality
2020-11-09 14:32:36 +11:00
Angus McLeod
37c18ff324 Remove unused ExtraLocaleController extension 2020-11-08 14:27:13 +11:00
Angus McLeod
3da4d546b2 Add custom field spec and improve custom field structure 2020-11-08 14:24:20 +11:00
Angus McLeod
b201289358 Version bump 2020-11-03 14:01:28 +11:00
Angus McLeod
74cba10a10 Merge branch 'master' into tests_improvements 2020-11-03 11:28:45 +11:00
Angus McLeod
fc7c5b9b34 Complete tests 2020-11-03 11:24:20 +11:00
Angus McLeod
b726d40a0c working builder and action specs 2020-10-31 18:05:50 +11:00
Angus McLeod
9d260635ca Move to more reliable custom field metaprogramming 2020-10-23 11:53:39 +11:00
Angus McLeod
54d244c1d8 Make custom field metaprogramming dynamic 2020-10-20 20:02:13 +11:00
Angus McLeod
b14d334829 Complete custom field management 2020-10-20 16:40:23 +11:00
Angus McLeod
d221d65d77 init 2020-10-17 12:31:07 +11:00
Angus McLeod
66dc55ef10 Use correct precompilation path 2020-10-02 18:07:16 +10:00
Angus McLeod
6aad50202a Update asset pre-compilation 2020-10-02 15:03:26 +10:00
Angus McLeod
8f3d1796eb Ensure after_signup runs for oauth singups 2020-09-16 23:35:07 +10:00
Angus McLeod
37e609430b Remove unused precompilation file 2020-09-10 13:21:58 +10:00
Angus McLeod
4417c96953 Wizard scss cannot be precompiled by rails anymore 2020-08-20 22:36:32 +10:00
Angus McLeod
5588180dcd Clean up: variable usage and style registration 2020-08-19 14:41:20 +10:00
Angus McLeod
18f0356d15 Integrate custom wizard css into discourse asset pipeline 2020-08-19 13:14:28 +10:00