Merge pull request #1718 from sharelatex/revert-1667-pr-add-post-integration-survey-link

Revert "Add survey link in the projects list sidebar."

GitOrigin-RevId: 22b3a9bce5e53d54929f9593af4156b668665de2
This commit is contained in:
Paulo Jorge Reis 2019-04-17 11:32:02 +01:00 committed by sharelatex
parent 8b7b49f72a
commit f2fbdcc078
4 changed files with 0 additions and 93 deletions

View file

@ -87,24 +87,6 @@ block content
aside.project-list-sidebar
include ./list/side-bar
.project-list-sidebar-survey(
ng-if="shouldShowSurveyLink"
)
| Let us know what you think about the new Overleaf by
a.project-list-sidebar-survey-link(
href="https://digitalscienceta.qualtrics.com/jfe/form/SV_3sMm9UAnx7ptpjL?source=dashboard"
target="_blank"
rel="noreferrer noopener"
) taking our survey
| .
button.project-list-sidebar-survey-dismiss(
type="button"
title="Dismiss survey notice"
ng-click="dismissSurvey()"
)
span(
aria-hidden="true"
) ×
if hasFeature('v1-return-message')
.project-list-sidebar-v2-pane(ng-controller="OverleafV1NotificationController")
div

View file

@ -39,36 +39,6 @@ define(['base', 'main/project-list/services/project-list'], function(App) {
$scope.comparator =
newValue === 'ownerName' ? ownerNameComparator : defaultComparator
})
$scope.shouldShowSurveyLink = false
const surveyStartDate = new Date(2019, 3, 2)
if (
localStorage('dismissed-survey') === true ||
new Date() < surveyStartDate
) {
$scope.shouldShowSurveyLink = false
} else {
const _v2LaunchDate = new Date(2019, 0, 8)
let _nRecentProjects = 0
for (let project of $scope.projects) {
if (
project.accessLevel === 'owner' &&
new Date(project.lastUpdated) > _v2LaunchDate
) {
if (++_nRecentProjects > 1) {
$scope.shouldShowSurveyLink = true
break
}
}
}
}
$scope.dismissSurvey = () => {
localStorage('dismissed-survey', true)
$scope.shouldShowSurveyLink = false
}
$timeout(() => recalculateProjectListHeight(), 10)

View file

@ -12,50 +12,6 @@
padding-right: 15px;
}
.project-list-sidebar-survey {
position: relative;
font-size: @font-size-small;
background-color: @v2-dash-pane-bg;
color: @v2-dash-pane-subdued-color;
padding: @folders-menu-item-v-padding 20px @folders-menu-item-v-padding @folders-menu-item-h-padding;
&::before {
content: '';
display: block;
height: 15px;
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
position: absolute;
bottom: 100%;
width: 100%;
left: 0;
}
}
.project-list-sidebar-survey-link {
color: @v2-dash-pane-color;
font-weight: bold;
&:hover,
&:active,
&:focus {
text-decoration: none;
color: @v2-dash-pane-color;
}
}
.project-list-sidebar-survey-dismiss {
.btn-inline-link;
position: absolute;
top: @folders-menu-item-v-padding;
right: @folders-menu-item-v-padding;
font-size: @font-size-base;
line-height: 1;
color: @v2-dash-pane-color;
&:hover,
&:active,
&:focus {
text-decoration: none;
color: @v2-dash-pane-color;
}
}
.project-list-sidebar-v2-pane {
flex-grow: 0;
flex-shrink: 0;

View file

@ -172,7 +172,6 @@
@v2-dash-pane-bg : @ol-blue-gray-4;
@v2-dash-pane-link-color : #FFF;
@v2-dash-pane-color : #FFF;
@v2-dash-pane-subdued-color : @ol-blue-gray-2;
@v2-dash-pane-toggle-color : #FFF;
@v2-dash-pane-btn-bg : @ol-blue-gray-5;
@v2-dash-pane-btn-hover-bg : @ol-blue-gray-6;