-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: remove translations attribute from controls * feat: correctly toggle checked state of checkboxes * feat: add confirm step * feat: add the real modules into the data set * feat: split use case selection out of modules also make multiple use cases selectable * fix: padding on toggle buttons * feat: select modules according to use case chosen * feat: remember options selected if navigating back to use case page * feat: update modules on api call * feat: add intro and celebration steps * fix: use empty to test if module is enabled/disabled * fix: use a discord link with no expiration or limits
- Loading branch information
1 parent
5a68fc2
commit c35effe
Showing
11 changed files
with
428 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { html } from 'https://cdn.jsdelivr.net/gh/lit/[email protected]/all/lit-all.min.js'; | ||
import { OpenLitElement } from './setup-wizard-open-element.js'; | ||
|
||
export class SetupWizardCelebration extends OpenLitElement { | ||
static get properties() { | ||
return { | ||
step: { type: Object }, | ||
}; | ||
} | ||
|
||
back() { | ||
this.dispatchEvent(new CustomEvent('back')); | ||
} | ||
next() { | ||
window.location.href = window.setupWizardShare.admin_url; | ||
} | ||
|
||
render() { | ||
return html` | ||
<div class="cover"> | ||
<h2>All finished</h2> | ||
<div class="content flow"> | ||
<p> | ||
You can change all of these choices in the Settings (D.T.) tab in | ||
the WP admin. | ||
</p> | ||
<p> | ||
D.T. has a huge ability to be customized to serve your needs. If you | ||
have any questions or need any further assistance in getting D.T. to | ||
work for you, please reach out on our community forum or our discord | ||
channel. | ||
</p> | ||
<a href="https://community.disciple.tools/" target="_blank"> | ||
Community Forum | ||
</a> | ||
<a href="https://discord.gg/vrrcXYwwTU" target="_blank"> | ||
Discord Invitation | ||
</a> | ||
</div> | ||
<setup-wizard-controls | ||
@next=${this.next} | ||
@back=${this.back} | ||
></setup-wizard-controls> | ||
</div> | ||
`; | ||
} | ||
} | ||
customElements.define('setup-wizard-celebration', SetupWizardCelebration); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { html } from 'https://cdn.jsdelivr.net/gh/lit/[email protected]/all/lit-all.min.js'; | ||
import { OpenLitElement } from './setup-wizard-open-element.js'; | ||
|
||
export class SetupWizardIntro extends OpenLitElement { | ||
static get properties() { | ||
return { | ||
step: { type: Object }, | ||
}; | ||
} | ||
|
||
back() { | ||
this.dispatchEvent(new CustomEvent('back')); | ||
} | ||
next() { | ||
this.dispatchEvent(new CustomEvent('next')); | ||
} | ||
|
||
render() { | ||
return html` | ||
<div class="cover"> | ||
<h2>Setting up D.T. for you</h2> | ||
<div class="content"> | ||
<p> | ||
We're glad you are here, and want to help set you up so you can take | ||
advantage of the powertool that is D.T. | ||
</p> | ||
<p> | ||
D.T. can be used in many ways from managing connections and | ||
relationships, all the way through to tracking and managing a | ||
movement of Disciple Making. | ||
</p> | ||
<p> | ||
In order to help you, we want to take you through a series of | ||
choices to give you the best start at getting Disiple.Tools setup | ||
ready to suit your needs. | ||
</p> | ||
<p> | ||
Feel free to skip this setup stage if you already know what you | ||
need. But if this will be helpful for you let's dive in. | ||
</p> | ||
</div> | ||
<setup-wizard-controls | ||
hideBack | ||
@next=${this.next} | ||
@back=${this.back} | ||
></setup-wizard-controls> | ||
</div> | ||
`; | ||
} | ||
} | ||
customElements.define('setup-wizard-intro', SetupWizardIntro); |
Oops, something went wrong.