Remove getting started checklist

This commit is contained in:
Andrew Kingston 2023-01-09 11:33:14 +00:00
parent ee6abf9200
commit a456e18bde
3 changed files with 0 additions and 55 deletions

View File

@ -1,46 +0,0 @@
<script>
import {
ActionMenu,
Checkbox,
MenuItem,
Heading,
ProgressCircle,
} from "@budibase/bbui"
import { admin } from "stores/portal"
import { goto } from "@roxi/routify"
</script>
<ActionMenu align="right">
<div slot="control" class="icon">
<ProgressCircle size="S" value={$admin.onboardingProgress} />
</div>
<MenuItem disabled>
<header class="item">
<Heading size="XXS">Get Started Checklist</Heading>
<ProgressCircle size="S" value={$admin.onboardingProgress} />
</header>
</MenuItem>
{#each Object.keys($admin.checklist) as checklistItem, idx}
<MenuItem>
<div
class="item"
on:click={() => $goto($admin.checklist[checklistItem].link)}
>
<span>{idx + 1}. {$admin.checklist[checklistItem].label}</span>
<Checkbox value={$admin.checklist[checklistItem].checked} />
</div>
</MenuItem>
{/each}
</ActionMenu>
<style>
.item {
display: grid;
align-items: center;
grid-template-columns: 175px 20px;
}
.icon {
cursor: pointer;
margin-bottom: -4px;
}
</style>

View File

@ -187,9 +187,6 @@
{/each} {/each}
</Tabs> </Tabs>
<div class="toolbar"> <div class="toolbar">
{#if $auth.user?.admin?.global}
<ConfigChecklist />
{/if}
<div class="mobile-toggle"> <div class="mobile-toggle">
<Icon hoverable name="ShowMenu" on:click={showMobileMenu} /> <Icon hoverable name="ShowMenu" on:click={showMobileMenu} />
</div> </div>

View File

@ -12,7 +12,6 @@ export function createAdminStore() {
disableAccountPortal: false, disableAccountPortal: false,
accountPortalUrl: "", accountPortalUrl: "",
importComplete: false, importComplete: false,
onboardingProgress: 0,
checklist: { checklist: {
apps: { checked: false }, apps: { checked: false },
smtp: { checked: false }, smtp: { checked: false },
@ -76,13 +75,8 @@ export function createAdminStore() {
async function getChecklist() { async function getChecklist() {
const tenantId = get(auth).tenantId const tenantId = get(auth).tenantId
const checklist = await API.getChecklist(tenantId) const checklist = await API.getChecklist(tenantId)
const totalSteps = Object.keys(checklist).length
const completedSteps = Object.values(checklist).filter(
x => x?.checked
).length
admin.update(store => { admin.update(store => {
store.checklist = checklist store.checklist = checklist
store.onboardingProgress = (completedSteps / totalSteps) * 100
return store return store
}) })
} }