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

feat: updates to the minimal mode version #146

Merged
merged 25 commits into from
Aug 9, 2024
Merged

Conversation

crfmc
Copy link
Collaborator

@crfmc crfmc commented Jun 25, 2024

  • (Sehi) Implement tooltips for each track
  • Implement popovers with instructions for interaction/interpretation
  • Upload images to show in the documentation
  • Relocate the chromosome search bar to the center
  • (Non-minimal-mode) add navigation buttons and modals/popover

crfmc and others added 16 commits June 3, 2024 11:46
-refactor: move modals into new components
-chore: implement popover content
-refactor: reference new modal components
-style: modal styles
-feat: popover contents
-refactor: correct popover/modal headers for accessibility
-chore: update overlapping driver image
-feat: update indel blocks/images
-refactor/accessibility: order tabIndex
-fix: gosling panel padding bug
@crfmc crfmc marked this pull request as ready for review July 18, 2024 21:41
@crfmc crfmc requested a review from sehilyi July 18, 2024 21:41

// TODO: Not ideal to hard coded!
// The heights of each track
export const getTrackData = (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that this contains the documents, we can clarify this better with the name

Suggested change
export const getTrackData = (
export const getTrackDocData = (

src/App.tsx Outdated
import 'bootstrap/dist/css/bootstrap.min.css';
import * as bootstrap from 'bootstrap/dist/js/bootstrap.bundle.min';

import { Track, getTrackData } from './ui/trackData.js';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { Track, getTrackData } from './ui/trackData.js';
import { Track, getTrackDocData } from './ui/trackData.js';

src/App.tsx Outdated
const trackTooltips = useMemo(() => {
// calculate the offset by the Genome View
const genomeViewHeight = Math.min(600, visPanelWidth);
const TRACK_DATA = getTrackData(isMinimalMode);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const TRACK_DATA = getTrackData(isMinimalMode);
const TRACK_DATA = getTrackDocData(isMinimalMode);

Copy link
Member

@sehilyi sehilyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me! Thanks a lot for the changes you made.

I was wondering how you addressed the styling issue (the potential conflict with Bootstrap). I am wondering this since this may happen to any other projects using Gosling.

@sehilyi
Copy link
Member

sehilyi commented Jul 19, 2024

A very minor thing – I see now there is a long padding (longer than the padding in the non-minamal-mode Chromoscope) at the bottom (i.e., between the bottom edge of the browser and the alignment views). I think this makes it look like it is a bit off.

Screenshot 2024-07-19 at 1 21 48 PM


Also, another tiny thing – there is now a grey rectangle overlayed underneath the "jump to the top" button which might be due to the conflict with Bootstrap.

Screenshot 2024-07-19 at 1 28 46 PM

crfmc added 4 commits July 19, 2024 14:25
-style: decrease padding
-style: correct navigation button text
-chore: update coverage image and text
-feat: add navigation buttons to normal mode
src/App.tsx Outdated
@@ -52,7 +59,7 @@ function App(props: RouteComponentProps) {
const VIS_PADDING = {
top: isMinimalMode ? 0 : 60,
right: isMinimalMode ? 0 : 60,
bottom: isMinimalMode ? 0 : 60,
bottom: 0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like now there is no 'dotted' texture on the bottom of the Chromoscope that we used to see before. Would this be due to the change made to this line? I wasn't sure why the conditional operation with the isMinimalMode had to be removed here.

Screenshot 2024-08-05 at 4 58 02 PM

src/App.tsx Outdated
Comment on lines 1156 to 1172
className="navigation-button split-right"
tabIndex={1}
data-bs-toggle="modal"
data-bs-target="#genome-view-modal"
>
<svg className="button question-mark" viewBox={ICONS.QUESTION_CIRCLE_FILL.viewBox}>
<title>Question Mark</title>
{ICONS.QUESTION_CIRCLE_FILL.path.map(p => (
<path fill="currentColor" key={p} d={p} />
))}
</svg>
</button>
</div>
<div className="navigation-button-container split navigation-button-variant">
<button
className="navigation-button split-left"
tabIndex={1}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the modal view be shown when a user clicks on the question mark of either genome view or variant view in the normal mode? It seems like the modal view is only shown in the minimal mode, and clicking on the question marks does not do anything on the normal mode.

Copy link
Member

@sehilyi sehilyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see labels of the Alignment view on the right side have unnecessary padding now that question marks are not displayed.

Screenshot 2024-08-05 at 5 20 45 PM

Could we remove such spaces, e.g., in coverage.ts:

-        title: '  Coverage',
+        title: isLeft ? '  Coverage' : 'Coverage',

We can remove the space for Sequence and Alignment tracks as well at:

title: '  Sequence',

title: '  Alignment',

@crfmc crfmc merged commit 4025551 into main Aug 9, 2024
14 checks passed
@crfmc crfmc deleted the crfmc/minimal_mode_updates branch August 9, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants