Skip to content

Add pinning functionality for tabs#2361

Merged
ComputelessComputer merged 5 commits intomainfrom
feat/add-pinned-tabs-functionality
Dec 29, 2025
Merged

Add pinning functionality for tabs#2361
ComputelessComputer merged 5 commits intomainfrom
feat/add-pinned-tabs-functionality

Conversation

@ComputelessComputer
Copy link
Collaborator

@ComputelessComputer ComputelessComputer commented Dec 17, 2025

if the current tab in view is "pinned", it will not be replaced when trying to open other views

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 17, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/add-pinned-tabs-functionality

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-project-automation github-project-automation bot moved this to Backlog in Product Dec 27, 2025
@ComputelessComputer ComputelessComputer moved this from Backlog to In review in Product Dec 27, 2025
@ComputelessComputer ComputelessComputer changed the title feat/add-pinned-tabs-functionality Add pinning functionality for tabs Dec 27, 2025
@ComputelessComputer ComputelessComputer force-pushed the feat/tab-close-button branch 3 times, most recently from 24c2ef8 to ffeeeb7 Compare December 29, 2025 10:46
Base automatically changed from feat/tab-close-button to main December 29, 2025 11:05
@netlify
Copy link

netlify bot commented Dec 29, 2025

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit 0462d14
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/6952ae3db8d794000882928b
😎 Deploy Preview https://deploy-preview-2361--hyprnote.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Dec 29, 2025

Deploy Preview for hyprnote-storybook canceled.

Name Link
🔨 Latest commit 0462d14
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/6952ae3d13d585000824bcdb

@netlify
Copy link

netlify bot commented Dec 29, 2025

Deploy Preview for howto-fix-macos-audio-selection canceled.

Name Link
🔨 Latest commit 0462d14
🔍 Latest deploy log https://app.netlify.com/projects/howto-fix-macos-audio-selection/deploys/6952ae3dfbc1870008da76cc

@ComputelessComputer ComputelessComputer force-pushed the feat/add-pinned-tabs-functionality branch from 1a7dd04 to 1d8b490 Compare December 29, 2025 11:56
ComputelessComputer and others added 5 commits December 30, 2025 01:28
feat(sessions): add spinner forancing and finalizing states
feat(tabs): add pinned property to tab schema
feat(tabs): add pin and unpin functionality for tabs
feat): add pinned property to tab types
(tabs): add pin functionality to tabs
feat(tabs): add pinning functionality to tabs
feat(tabs): cmd+w unpins pinned tabs instead of closing (#2445)

- Modified cmd+w handler to check if current tab is pinned
- If pinned, unpin the tab instead of closing it
- Made pin icon clickable to unpin tabs

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: john@hyprnote.com <john@hyprnote.com>
fix(ui): resolve merge conflicts and duplicate imports
refactor: simplify tab components and context menu
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Remove unnecessary ternary root and trailing undefined assignment for contextMenu in shared.tsx. This makes the code clearer by assigning the menu array directly when selected and not empty, and otherwise assigning an empty array, avoiding an explicit undefined branch. The change prevents mixing array/undefined types and simplifies readability and control flow for context menu construction.
Ensure the tab context menu shows "Close" and pin/unpin options when a tab is active or selected, and shows the full set (Close, Close others, Close all, pin/unpin) for non-active tabs. This fixes inconsistent behavior where the active tab would not present pin/unpin alongside Close, aligning the active tab menu with the intended UX and restoring pin/unpin availability where appropriate.
Add a separator entry between pin/unpin and other menu items in desktop context menus to improve visual grouping. The change extends the MenuItemDef type to accept a separator variant and uses PredefinedMenuItem.Separator when mapping items to native menu entries. This ensures separators are correctly created for both single-tab and multi-tab context menus.
@ComputelessComputer ComputelessComputer force-pushed the feat/add-pinned-tabs-functionality branch from 1a78f2a to 0462d14 Compare December 29, 2025 16:37
@ComputelessComputer ComputelessComputer merged commit 6adfe0d into main Dec 29, 2025
22 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in Product Dec 29, 2025
@ComputelessComputer ComputelessComputer deleted the feat/add-pinned-tabs-functionality branch December 29, 2025 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant