0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-23 01:40:29 +01:00
Commit-Graph

28 Commits

Autor SHA1 Nachricht Datum
Angus McLeod
f3c5eeb371 Fix linting 2022-06-15 08:59:09 +02:00
Angus McLeod
a19a1fa3b1 Refactor wizard client and add tests 2022-06-15 08:03:38 +02: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
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
0205d8ccb5
fixed linting issues for javascripts/wizard folder (#94)
* ran eslint and fixes linting issues for javascripts/wizard folder

* ran prettier
2021-04-12 11:56:22 +05:30
Angus McLeod
cf50a7deb3
Apply prettier 💄 (#80)
* Apply prettier

* applied prettier for similar-topics-validator

Co-authored-by: Faizaan Gagan <fzngagan@gmail.com>
2021-03-28 14:36:49 +05:30
Angus McLeod
3bff13492f Allow wizard i18n to be overridden by wizard theme i18n 2020-11-26 16:45:30 +11:00
Angus McLeod
f28bde5206 I18n is now imported 2020-05-14 13:42:11 +10:00
Angus McLeod
2046648862 various 2020-04-01 21:58:30 +11:00
Angus McLeod
ee61c1deb3 add permitted setting 2020-03-30 17:16:03 +11:00
Angus McLeod
fa6414aaf7 set reset to null after load 2019-07-27 17:07:22 +10:00
Angus McLeod
802f7d1fd5 Add required data message 2019-07-27 17:01:29 +10:00
Angus McLeod
650dc498a4 Add required data && permitted params to steps 2019-07-02 14:49:14 +10:00
Angus McLeod
20f605b899 Use wizard name in no access messages 2019-06-19 13:39:39 +08:00
Angus McLeod
aa7dd16827 Handle guests on wizard routes 2019-06-19 13:23:10 +08:00
Justin DiRose
5a70e79f5c FIX: Missing footer image 2019-03-26 10:53:59 -05:00
Angus McLeod
0ea0524dcf add reset flag 2019-01-14 13:53:53 +11:00
Angus McLeod
0bb1660b6b Replace object.assign with jQuery extend 2018-06-14 09:59:41 +10:00
Angus McLeod
9a3ae6406f Fix completed? for reused wizards && ensure users with no access can get back to site 2018-05-09 15:06:43 +10:00
Angus McLeod
47b5f96ce1 Exclude no-undef for certain files to make linter happy 2018-03-06 11:38:36 +08:00
Angus McLeod
0d4ecc3c90 Handle id for which there is no wizard 2017-12-03 15:57:40 +08:00
Angus McLeod
f7c1170e07 Add min trust setting 2017-11-29 17:48:49 +08:00
Angus McLeod
ded156c4dd Add wizard & step classes && add some 3rd party css (to be removed) 2017-11-15 15:36:44 +08:00
Angus McLeod
f6251ace06 various 2017-10-22 11:37:58 +08:00
Angus McLeod
dc1cbfbfe4 Working version 2017-10-17 21:17:53 +08:00
Angus McLeod
e859e3efa2 various 2017-10-13 21:02:34 +08:00
Angus McLeod
f8848d2b93 Custom forms display steps, just don't save data yet 2017-09-29 19:27:03 +08:00
Angus McLeod
3fa2735c63 various 2017-09-25 22:47:40 +08:00