Skip to content

Ensure blank sequence opened on new page shows correct right side tabs#1924

Open
AaronPlave wants to merge 8 commits into
developfrom
fix/default-sequence-file-tab-fix
Open

Ensure blank sequence opened on new page shows correct right side tabs#1924
AaronPlave wants to merge 8 commits into
developfrom
fix/default-sequence-file-tab-fix

Conversation

@AaronPlave
Copy link
Copy Markdown
Contributor

@AaronPlave AaronPlave commented Apr 30, 2026

This fixes the issue where the selected command and command dictionary right side tabs were not being shown after workspace page load with no file in the url (blank sequence)

@AaronPlave AaronPlave requested a review from a team as a code owner April 30, 2026 20:55
@AaronPlave AaronPlave added the fix A bug fix label Apr 30, 2026
@AaronPlave AaronPlave self-assigned this Apr 30, 2026
@AaronPlave AaronPlave requested review from dandelany and removed request for joswig and mattdailis April 30, 2026 20:55
Copy link
Copy Markdown
Collaborator

@dandelany dandelany left a comment

Choose a reason for hiding this comment

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

👍 looks good, tested locally

Copy link
Copy Markdown
Collaborator

@dandelany dandelany left a comment

Choose a reason for hiding this comment

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

Deferring this for now since it's stuck on an e2e test failure and not an obvious fix. Something is causing the "Cancel discards user metadata changes" test to fail - I fixed one issue but now it's complaining about a button not being clickable and I can't figure out why without a deep dive... @AaronPlave can you take a look tomorrow?

@AaronPlave AaronPlave force-pushed the fix/default-sequence-file-tab-fix branch from e7d5dd6 to 34f95b8 Compare May 7, 2026 20:32
@AaronPlave AaronPlave requested a review from dandelany May 8, 2026 14:05
@AaronPlave
Copy link
Copy Markdown
Contributor Author

@dandelany tests passing

$: activeFileIsSequence =
$activeDocumentPath === null ||
($activeDocument.type !== null && $activeDocument.type === WorkspaceContentType.Sequence);
$: selectedFileIsSequence =
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

per discussion with @AaronPlave - we are OK with the logic but not the names - consider renaming this one to activeFileIsSequence and the one above to activeFileIsSequenceOrDraft or similar. Or make a separate activeFileIsDraft but this may be more work.

Also - add let for whatever variables we choose

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Refactored, take another look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants