Skip to content

Commit

Permalink
Verbiage updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfalke committed Oct 1, 2024
1 parent 4f01ac0 commit 72f3f32
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 20 deletions.
17 changes: 5 additions & 12 deletions packages/libs/wdk-client/src/Core/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import {
WdkDependencies,
WdkDependenciesContext,
} from '../Hooks/WdkDependenciesEffect';
import { showLoginForm } from '../Actions/UserSessionActions';
import { User } from '../Utils/WdkUser';
import { Modal } from '@veupathdb/coreui';
import Banner from '@veupathdb/coreui/lib/components/banners/Banner';
import { Link } from 'react-router-dom';
Expand Down Expand Up @@ -123,16 +121,11 @@ export default class Root extends React.Component<Props, State> {
const activeRoute = this.getActiveRoute();
const requireLogin =
activeRoute?.requiresLogin === false ? false : this.props.requireLogin;
const dispatch = this.props.store.dispatch;

if (!requireLogin) {
this.setState({ accessDenied: false });
} else {
this.props.wdkDependencies.wdkService.getCurrentUser().then((user) => {
this.setState({ accessDenied: user.isGuest });
// if (user.isGuest) {
// dispatch(showLoginForm());
// }
});
}
}
Expand Down Expand Up @@ -204,11 +197,11 @@ export default class Root extends React.Component<Props, State> {
hideIcon: true,
message: (
<>
Starting in October 2024, VEuPathDB is transitioning
to a new funding model. In order to use VEuPathDB
knowledgebases, you’ll need to log. This helps us
understand how the platform supports your work and
shapes our plans for the future
VEuPathDB is evolving under a new organizational
structure. In order to use VEuPathDB resources, you
will now need to log into your free account. This
helps us collect accurate user metrics to guide
future development.
</>
),
}}
Expand Down
18 changes: 11 additions & 7 deletions packages/libs/web-common/src/components/ProfileModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,17 @@ function NewProfilePropertiesBanner() {
hideIcon: true,
fontSize: '1.2em',
message: (
<div>
As of October 2024, VEuPathDB is moving to a new funding model.
Users must be logged in to use the platform, which helps us collect
accurate usage data. Please register or update your registration
details - you only need to do this once. We will never share your
information and adhere to GDPR rules.
</div>
<>
Please take a moment to update your user profile. This will help us
understand how our platform contributes to your research and in
making future improvements. We value your privacy and comply with
the General Data Protection Regulation (
<a target="_blank" rel="noreferrer" href="https://gdpr-info.eu/">
GDPR
</a>
). Your information is safe with us. Thanks for being part of our
community!
</>
),
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ import { Tooltip, Warning } from '@veupathdb/coreui';

import './VEuPathDBHomePage.scss';
import { searchTree } from '../../selectors/QueryGridSelectors';
import { ProfileModal } from '../ProfileModal';
import { ProfileModal } from '@veupathdb/web-common/lib/components/ProfileModal';

const vpdbCx = makeVpdbClassNameHelper('');

Expand Down

0 comments on commit 72f3f32

Please sign in to comment.