Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a couple bugs from the guided tour #318

Merged
merged 4 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/components/search/concept-modal/concept-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,8 @@ export const ConceptModalBody = ({ result }) => {
icon: <KnowledgeGraphsIcon />,
content: <KnowledgeGraphsTab graphs={ graphs } />,
tooltip: <div>
The Knowledge Graphs tab displays the <a href="https://www.oxfordsemantic.tech/faqs/what-is-a-knowledge-graph" target="_blank" rel="noopener noreferrer">
knowledge graph
</a> portion connected to the concept and containing the search terms. This section highlights
The Knowledge Graphs tab displays relevant edges from the <a href="https://robokop.renci.org/" target="_blank" rel="noopener noreferrer">ROBOKOP Knowledge Graph</a>
portion connected to the concept and containing your search terms. This section highlights
potential interesting knowledge graph relationships and shows terms (e.g., synonyms) that
would be returned as related concepts.
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/search/concept-modal/tabs/explanation.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export const ExplanationTab = ({ result }) => {
fontSize: 15,
fontWeight: 500
}}>
Explanation for this concept&apos;s relation to search term
Explanation for this concept&apos;s relation to your search
</Text>
<div>
<Text style={{ fontSize: 13 }} italic>What does the total score returned by the search mean?</Text>
Expand Down
4 changes: 2 additions & 2 deletions src/contexts/tour-context/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export const TourProvider = ({ children }: ITourProvider ) => {
title: "Enter search query",
text: renderToStaticMarkup(
<div>
You can enter your search query here. In this example, we&apos;ll be looking at &quot;chronic pain.&quot;
You can enter your search query here. In this example, we&apos;ll be searching for &quot;chronic pain.&quot;
</div>
),
beforeShowPromise: async function() {
Expand Down Expand Up @@ -492,7 +492,7 @@ export const TourProvider = ({ children }: ITourProvider ) => {
text: renderToStaticMarkup(
<div>
You can click on each of the tabs in the side bar for more detailed information, such as
associated studies, CDEs (common data elements), knowledge graphs, and an explanation
associated studies, common data elements (CDEs), knowledge graphs, and an explanation
about why the concept was included in the search result.
</div>
),
Expand Down
2 changes: 1 addition & 1 deletion src/views/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const SearchView = () => {

{context.workspaces_enabled === 'true' && <Title level={1}>Search</Title>}

<GuidedTourButton />
{ context.brand === "heal" && <GuidedTourButton /> }

<Results />

Expand Down
9 changes: 6 additions & 3 deletions src/views/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,12 @@ export const SupportView = () => {
<Fragment>
{context.support.help_portal_url && <HelpPortal help_portal_url={context.support.help_portal_url} />}
{(context.support.user_guide_url || context.support.faqs_url) && <Documentation user_guide_url={context.support.user_guide_url} faqs_url={context.support.faqs_url}/>}
<GuidedTourSection brand={ context.brand } tour={ tour } tourStarted={ tourStarted } />

<GuidedTourButton />
{ context.brand === "heal" && (
<Fragment>
<GuidedTourSection brand={ context.brand } tour={ tour } tourStarted={ tourStarted } />
<GuidedTourButton />
</Fragment>
) }
</Fragment>
)
}
Expand Down