-
Notifications
You must be signed in to change notification settings - Fork 3
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
Various fixes #314
Various fixes #314
Changes from all commits
9e67e29
64aab44
aa98ffa
9ccf896
892b02f
236601a
0b23e7b
9c4e863
891b619
eabec1d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddLaunchedStudiesCountToStudies < ActiveRecord::Migration[6.1] | ||
def change | ||
add_column :studies, :launched_studies_count, :integer | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import React from 'react'; | ||
import { css, Global } from '@emotion/react' | ||
|
||
// documentation for this at https://docs.osano.com/hiding-the-cookie-widget | ||
export const ManageCookiesLink = () => { | ||
|
@@ -15,13 +14,7 @@ export const ManageCookiesLink = () => { | |
osano.cm.showDrawer('osano-cm-dom-info-dialog-open') | ||
} | ||
|
||
|
||
return ( | ||
<> | ||
<Global | ||
styles={css({ '.osano-cm-widget': { display: 'none' } })} | ||
/> | ||
<a href='#' onClick={showOsano}>Manage Cookies</a> | ||
</> | ||
<span onClick={showOsano}>Manage Cookies</span> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if you want to use a span, this needs to have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nathanstitt the cursor portion is taken care of by the parent link
the result: Question is, would we still want the role on the span? or would this parent cover that case? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nathanstitt the cursor portion is taken care of by the parent link
the result: Question is, would we still want the role on the span? or would this parent cover that case? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nah, sorry I'd left that comment before I realized it was being used in the menu |
||
) | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
import { Box, React, useCallback, useState } from '@common'; | ||
import { Link } from 'react-router-dom'; | ||
import { Box, React, styled, useCallback, useState } from '@common'; | ||
import { Icon, ResearcherButton, Step } from '@components'; | ||
|
||
const FakeLink = styled.span({ | ||
cursor: 'pointer', | ||
color: 'blue', | ||
textDecoration: 'underline', | ||
}) | ||
|
||
export const ActionFooter: FC<{ step: Step, }> = ({ step }) => { | ||
const [busy, setBusy] = useState(false) | ||
const triggerAnimation = useCallback(() => { | ||
|
@@ -15,12 +20,12 @@ export const ActionFooter: FC<{ step: Step, }> = ({ step }) => { | |
return ( | ||
<Box className='fixed-bottom bg-white mt-auto' css={{ minHeight: 80, boxShadow: `0px -3px 10px rgba(219, 219, 219, 0.5)` }}> | ||
<Box className='container-lg' align='center' justify='between'> | ||
{step.backAction ? <Link to=''> | ||
{step.backAction ? <FakeLink> | ||
<Box align='center' gap='small' onClick={() => step.backAction?.()}> | ||
<Icon icon='chevronLeft'></Icon> | ||
<span>Back</span> | ||
</Box> | ||
</Link> : <span></span>} | ||
</FakeLink> : <span></span>} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should add |
||
|
||
<Box align='center' gap='large'> | ||
{step.secondaryAction ? | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to main.scss
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I slightly prefer it here because this way we only hide the osano cookie link if we're also rendering an alternative method. If the hiding is in the sass, it's possible that we hide it, but then don't render this on some screens
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should have added another comment for context woops, we moved the manage cookies link into the user name/dropdown thing at the top right, with that being there it's not technically rendered until the dropdown is opened. This way every user should have access to it (ie before the researcher experience doesn't have a footer so the cookie was still rendering)