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(commands): add commands for sidebar items #19020

Merged
merged 6 commits into from
Dec 5, 2023
Merged

Conversation

thmsobrmlr
Copy link
Contributor

Problem

One of the missing pieces here is "Follow up to add opening panels as command".

Changes

This PR adds said functionality.

How did you test this code?

⌨️

Comment on lines -73 to -76
if (tab === SidePanelTab.Activation && (!isReady || hasCompletedAllTasks)) {
return false
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm a bit unsure about this change. Essentially I'm moving removing the activation tab from enabledTabs, instead of visibleTabs. Maybe @benjackwhite can say if we'd still need that.

Copy link
Contributor

Choose a reason for hiding this comment

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

It was somewhat purposeful as otherwise it just closes all of a sudden. But I think it is also fine if it is hidden I guess. Makes the snapshot a bit pointless though...

@thmsobrmlr thmsobrmlr requested a review from a team December 1, 2023 14:29
Copy link
Contributor

github-actions bot commented Dec 1, 2023

Size Change: +46 B (0%)

Total Size: 1.83 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.83 MB +46 B (0%)

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

Triggered by this commit.

👉 Review this PR's diff of snapshots.

Comment on lines -73 to -76
if (tab === SidePanelTab.Activation && (!isReady || hasCompletedAllTasks)) {
return false
}

Copy link
Contributor

Choose a reason for hiding this comment

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

It was somewhat purposeful as otherwise it just closes all of a sudden. But I think it is also fine if it is hidden I guess. Makes the snapshot a bit pointless though...

@thmsobrmlr thmsobrmlr mentioned this pull request Dec 4, 2023
98 tasks
thmsobrmlr and others added 3 commits December 5, 2023 10:27
# Conflicts:
#	frontend/__snapshots__/scenes-app-sidepanels--side-panel-activation.png
#	frontend/src/lib/components/CommandPalette/commandPaletteLogic.tsx
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@thmsobrmlr thmsobrmlr merged commit f20d706 into master Dec 5, 2023
78 checks passed
@thmsobrmlr thmsobrmlr deleted the sidepanel-commands branch December 5, 2023 10:34
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.

3 participants