Skip to content

Commit 5d3f002

Browse files
Refactor the feedback widget (#4239)
Feedback JS resources no longer passively load on each page hit.
1 parent 3b669b4 commit 5d3f002

File tree

14 files changed

+97
-51
lines changed

14 files changed

+97
-51
lines changed

packages/@okta/vuepress-plugin-qualtrics-feedback/enhanceAppFile.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/@okta/vuepress-plugin-qualtrics-feedback/index.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/@okta/vuepress-plugin-qualtrics-feedback/package.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/@okta/vuepress-site/.vuepress/config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,7 @@ module.exports = ctx => ({
313313
]
314314
}
315315
]
316-
},
317-
'@okta/vuepress-plugin-qualtrics-feedback': {}
316+
}
318317
},
319318

320319
extraWatchFiles: [

packages/@okta/vuepress-site/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"semver": "^7.3.8"
2727
},
2828
"dependencies": {
29-
"@okta/vuepress-plugin-qualtrics-feedback": "^1.0.0",
3029
"bootstrap": "^4.6.1",
3130
"esm": "^3.0.0",
3231
"js-yaml": "^3.13.1",
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/* QUALTRICS FEEDBACK WIDGET */
2+
#feedback-tab {
3+
position: fixed;
4+
5+
right: 0;
6+
bottom: 158px;
7+
8+
width: 36px;
9+
height: 139px;
10+
11+
overflow: hidden;
12+
13+
background-color: #242424;
14+
}
15+
16+
#feedback-link {
17+
display: inline-block;
18+
width: 100%;
19+
height: 100%;
20+
}
21+
22+
#feedback-container {
23+
transform: translate(0,70px);
24+
}
25+
26+
#feedback-text {
27+
transform: rotate(270deg);
28+
29+
font-size: 1em;
30+
font-family: "arial", sans-serif;
31+
color: #ffffff;
32+
}

packages/@okta/vuepress-theme-prose/assets/css/prose.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
@import "components/dialog";
7878
@import "components/visually-hidden";
7979
@import "components/wrapper";
80+
@import "components/feedback";
8081

8182
//Custom Landing
8283
@import "components/customLanding/main";
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<template>
2+
<div id="feedback-tab">
3+
<a
4+
id="feedback-link"
5+
href="#"
6+
title="Submit feedback"
7+
@click="openSurvey()"
8+
>
9+
<div id="feedback-container">
10+
<p id="feedback-text">Feedback</p>
11+
</div>
12+
</a>
13+
</div>
14+
</template>
15+
16+
<script>
17+
export default {
18+
name: 'Feedback',
19+
methods: {
20+
openSurvey() {
21+
window.open('https://surveys.okta.com/jfe/form/SV_e4L0iW8a3tz8Yol?source=' + encodeURIComponent(document.location.href), '_blank');
22+
}
23+
}
24+
}
25+
</script>

packages/@okta/vuepress-theme-prose/global-components/EventHookEANote.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<template>
22
<blockquote>
3-
<p><strong>Note</strong>: Event hook filters is a <a href="/docs/concepts/feature-lifecycle-management/#self-service-features">self-service Early Access (EA)</a> feature.
4-
See <a href="https://help.okta.com/okta_help.htm?id=ext_secur_manage_ea_bata">Manage Early Access and Beta features</a> to enable.
5-
If you want to disable this feature, it’s recommended to first remove all event filters.</p>
3+
<p>
4+
<strong>Note</strong>: Event hook filters is a <a href="/docs/concepts/feature-lifecycle-management/#self-service-features">self-service Early Access (EA)</a> feature.
5+
See <a href="https://help.okta.com/okta_help.htm?id=ext_secur_manage_ea_bata">Manage Early Access and Beta features</a> to enable.
6+
If you want to disable this feature, it’s recommended to first remove all event filters.
7+
</p>
68
</blockquote>
79
</template>
810

packages/@okta/vuepress-theme-prose/global-components/EventHookEANoteProcedure.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<template>
22
<blockquote>
3-
<p><strong>Note</strong>: If your org is set up to use the <a href="/docs/concepts/feature-lifecycle-management/#self-service-features">self-service Early Access (EA)</a> feature event hook filtering,
4-
the event hook set up flow is slightly different. Follow the procedure in <a href="https://help.okta.com/okta_help.htm?type=oie&locale=en&id=ext-add-event-hooks">Create an event hook</a> with the same values.
5-
To enable this feature, see <a href="https://help.okta.com/okta_help.htm?id=ext_secur_manage_ea_bata">Manage Early Access and Beta features</a>.</p>
3+
<p>
4+
<strong>Note</strong>: If your org is set up to use the <a href="/docs/concepts/feature-lifecycle-management/#self-service-features">self-service Early Access (EA)</a> feature event hook filtering,
5+
the event hook set up flow is slightly different. Follow the procedure in <a href="https://help.okta.com/okta_help.htm?type=oie&locale=en&id=ext-add-event-hooks">Create an event hook</a> with the same values.
6+
To enable this feature, see <a href="https://help.okta.com/okta_help.htm?id=ext_secur_manage_ea_bata">Manage Early Access and Beta features</a>.
7+
</p>
68
</blockquote>
79
</template>
810

0 commit comments

Comments
 (0)