Skip to content

Commit b39145c

Browse files
authored
New onboarding flow (#1578)
1 parent 1de48a1 commit b39145c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1237
-670
lines changed

backend/src/api/tenant/tenantCreate.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ export default async (req, res) => {
1616
{
1717
id: payload.id,
1818
name: payload.name,
19-
integrationsRequired: payload.integrationsRequired.map((i) => i.toLowerCase()),
20-
communitySize: payload.communitySize,
19+
onboard: !!payload.onboard,
2120
},
2221
{ ...req },
2322
)
32.1 KB
Loading

frontend/src/app.vue

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,6 @@ export default {
6666
this.handleResize();
6767
},
6868
69-
mounted() {
70-
this.$router.isReady().then(() => {
71-
const { ref } = this.$route.query;
72-
if (ref && ref === 'eagle-eye') {
73-
localStorage.setItem('onboardType', 'eagle-eye');
74-
}
75-
});
76-
},
77-
7869
unmounted() {
7970
window.removeEventListener('resize', this.handleResize);
8071
},

frontend/src/integrations/devto/config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ export default {
77
borderColor: '#E5E7EB',
88
description:
99
'Connect DEV to sync profile information and comments on articles.',
10+
onboard: {
11+
description: 'Sync profile information and comments on articles.',
12+
},
1013
image:
1114
'https://cdn-icons-png.flaticon.com/512/5969/5969051.png',
1215
connectComponent: DevtoConnect,

frontend/src/integrations/discord/config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ export default {
77
borderColor: '#dee0fc',
88
description:
99
'Connect Discord to sync messages, threads, forum channels, and new joiners.',
10+
onboard: {
11+
description: 'Sync messages, threads, forum channels, and new joiners.',
12+
},
1013
image:
1114
'https://cdn-icons-png.flaticon.com/512/5968/5968756.png',
1215
connectComponent: DiscordConnect,

frontend/src/integrations/discourse/components/discourse-connect-drawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ const rules = {
286286
287287
const $externalResults = ref({});
288288
289-
const $v = useVuelidate(rules, form, { $externalResults });
289+
const $v = useVuelidate(rules, form, { $externalResults, $stopPropagation: true });
290290
291291
// validate method
292292
async function validate() {

frontend/src/integrations/discourse/config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ export default {
88
chartColor: '#FFDE92',
99
description:
1010
'Connect Discourse to sync topics, posts, and replies from your account forums.',
11+
onboard: {
12+
description: 'Sync topics, posts, and replies from your account forums.',
13+
},
1114
image: '/images/integrations/discourse.png',
1215
connectComponent: DiscourseConnect,
1316
activityDisplay: {

frontend/src/integrations/git/components/git-connect-drawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const form = reactive({
9292
});
9393
9494
const { hasFormChanged, formSnapshot } = formChangeDetector(form);
95-
const $v = useVuelidate({}, form);
95+
const $v = useVuelidate({}, form, { $stopPropagation: true });
9696
9797
const { doGitConnect } = mapActions('integration');
9898
const isVisible = computed({

frontend/src/integrations/git/config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export default {
99
borderColor: '#FFFFFF',
1010
description:
1111
'Connect Git to sync commit activities from your repos.',
12+
onboard: {
13+
description: 'Sync commit activities from your repos.',
14+
},
1215
image:
1316
'/images/integrations/git.png',
1417
connectComponent: GitConnect,

frontend/src/integrations/github/components/github-connect.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@
66
import { computed } from 'vue';
77
import config from '@/config';
88
import ConfirmDialog from '@/shared/dialog/confirm-dialog';
9-
import { useRouter } from 'vue-router';
9+
import { useRoute, useRouter } from 'vue-router';
1010
11+
const emit = defineEmits(['inviteColleagues']);
1112
defineProps({
1213
integration: {
1314
type: Object,
1415
default: () => {},
1516
},
1617
});
1718
19+
const route = useRoute();
1820
const router = useRouter();
1921
2022
// We have 3 GitHub apps: test, test-local and prod
@@ -42,9 +44,13 @@ const connect = () => {
4244
window.open(githubConnectUrl.value, '_self');
4345
}).catch((action) => {
4446
if (action === 'cancel') {
45-
router.push({
46-
name: 'settings',
47-
});
47+
if (route.name === 'onboard') {
48+
emit('inviteColleagues');
49+
} else {
50+
router.push({
51+
name: 'settings',
52+
});
53+
}
4854
}
4955
});
5056
};

0 commit comments

Comments
 (0)