# Changelog

All notable changes to Pinfold are documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed

- Markdown import no longer cuts a group title that contains "(N tabs)" (for example "Reading (2 tabs) for later").
- Markdown export and import now round-trip URLs that contain `%28` or `%29` exactly, as well as URLs with literal parentheses.
- The Export dialog now reports clipboard failures for OneTab, Markdown and JSON.
- In Cards view, a card's Restore button now opens only that card's tab instead of every tab in its group.
- The "saved just now" banner now disappears after 30 minutes, and the "… ago" times stay current while the dashboard is open. It redraws once a minute while visible, but never while you're typing or dragging.

## [1.0.3] - 2026-11-23

### Added

- Save tabs straight into a folder: the popup has a "Save to" row with your three most recently used folders, "+ New folder" and "More…" for any other folder. It resets to "All tabs" each time the popup opens, and keyboard shortcuts still save without a folder.
- After saving tabs without a folder, the dashboard shows a "saved just now" banner with "Move to folder" and "New folder", and highlights the tabs you just saved.
- New setting, off by default: "Put Each Collapse All into a New Folder" saves each Collapse All Tabs into a new folder named after the date and time.
- New setting, off by default: "Skip Duplicate Tabs When Saving" saves a page only once when the same URL is open in several tabs. The duplicate tabs are still closed.
- Delete a saved tab or group straight from the sidebar: hover it and click the trash icon, or select it and press Delete (the delete key on a Mac). It asks for the same confirmation as the tab list, and the next item is selected so you can keep going.
- "Sleep other tabs" in the popup and the right-click menu: puts every other tab in the window to sleep with Chrome's own tab discarding, freeing memory without closing anything. Sleeping tabs stay in the tab bar and reload when clicked.
- The Import tab has a "Choose file…" button, so you can restore a backup without copying and pasting it. Files over 20 MB are refused with a message.
- The sidebar folder tree works from the keyboard: Tab to an item, Enter or Space to open it, and the Left and Right arrows to collapse or expand a folder. The edit and delete buttons also appear when an item has keyboard focus.
- Each tab group has a "Copy links" action that copies every URL in the group, one per line.

### Fixed

- Dragging a tab out of a locked group is now refused and shows a warning, while reordering tabs inside a locked group remains allowed.
- Pressing `/` or Ctrl/Cmd+K no longer moves focus to the search box behind an open Export / Import or preview dialog.
- Deleting the last sidebar item no longer leaves keyboard focus nowhere: it lands on "All Tabs", and the "All Tabs" and "Favorites" shortcuts are reachable with Tab and open with Enter or Space, like the sidebar tree items.
- An excluded domain with its default port, like `youtube.com:443` or `example.com:80`, now matches its site. Other ports, like `localhost:3000`, still match exactly.
- Importing with "Replace all" no longer deletes locked groups. They are kept, and the confirmation toast says how many.
- Markdown exports no longer remove square brackets from tab titles. They are escaped with a backslash and restored on import, so `[Draft] Q4 plan` survives a round trip. Older Markdown exports still import as before.
- Pressing Delete in the sidebar now removes the item that has keyboard focus instead of the selected one, and focus moves to the next item afterwards.
- Choosing an import file that cannot be read now shows an error instead of failing silently.
- Folder names entered in the dashboard are now trimmed and capped at 100 characters, matching the popup, and empty or spaces-only names are ignored instead of creating a folder named "New Folder".
- Scrollbars now follow Pinfold's light or dark theme instead of the operating system's.
- Excluded domains pasted as a full address (`https://www.youtube.com/`) now match.
- Markdown exports now import back with each group's tags, and untitled groups stay untitled instead of becoming "Tab Group 1". Older Markdown exports still import as before.
- "Open Pinfold on New Tab" now works for tabs opened with the "+" button or Ctrl+T. The 1.0.2 fix was not enough: Chrome marks those tabs as opened from the tab you were on, and Pinfold skipped every tab with an opener.
- "Open Dashboard" now always opens a new dashboard tab in the window you are in. Before, it switched to a dashboard already open in another window, which looked like nothing happened. Collapsing tabs still reuses a dashboard tab that is already open in the same window.
- Export and backup file names now use your local date. Before, an evening export could be named with tomorrow's date.
- Accessibility: screen readers now announce toast messages, icon-only buttons have names, every setting is linked to its label, popup buttons and dashboard dropdowns show a focus ring when you use the keyboard, and the Export / Import dialog keeps keyboard focus inside it and returns it when closed.
- When "Sleep other tabs" fails, the popup now says so and stays open, instead of saying there were no tabs to sleep.

## [1.0.2] - 2026-11-04

### Added

- Bigger page previews: the hover preview is larger and no longer cropped as tightly, it also appears when hovering a card's thumbnail in Cards view, and an expand button on each card opens the full screenshot in a window that closes with Escape, the close button or a click outside it.

### Fixed

- The dashboard now remembers the selected sort order across reloads, with a safe fallback for invalid stored values.
- Importing text with no valid tabs, a cut-off JSON backup or unrelated JSON now shows an error and changes nothing. Before, Replace mode could delete every saved tab.
- Ctrl/Cmd+K now focuses dashboard search on macOS as well as Windows/Linux, including with Caps Lock enabled.
- The dashboard and Options page now follow OS theme changes live when System is selected.
- Sorting by Group name now uses visible titles for individual saved tabs and compares names case-insensitively.
- Restore All now removes only confirmed reopened tabs in one locked storage write when Keep on Restore is off; failed and locked tabs stay saved.
- The dashboard theme toggle switches immediately when the system uses dark mode.
- Tab, group & page preview counts now display the singular and plural form across the dashboard, options page and exports.
- The popup and the dashboard's empty state now show the keyboard shortcuts the browser actually assigned, including macOS defaults and shortcuts changed at `chrome://extensions/shortcuts`, and hide shortcuts that are not assigned.
- "Open Pinfold on New Tab" now works when the tab is opened with the "+" button. Chrome briefly refuses to change a tab while the tab strip animates, and Pinfold gave up on the first try.
- Importing a JSON backup no longer renames untitled groups to "Imported Group 1", "Imported Group 2" and so on. They keep showing the name of their tab, as before the export.

## [1.0.1] - 2026-10-26

### Added

- `npm run package` builds the store upload zip in `dist/` with only the extension's runtime files.
- Store submission kit in `store/`: listing text, permission justifications, reviewer notes, screenshots and promo images.

### Changed

- Shortened the extension description to fit the stores' 132-character limit.
- The page previews setting says "your browser" instead of naming Chrome.

## [1.0.0] - 2026-10-26

First public, open-source release.

### Added

- Save tabs from the toolbar popup, the right-click menu, or keyboard shortcuts: all tabs in the window, the current tab, tabs to the left or right, or all except the active tab.
- Dashboard with nested folders, list and cards views, search across titles, URLs and domains, drag-and-drop reordering, favorites, locked items, renaming, sorting, and dark/light/system themes.
- Restore one tab, a group, or everything, with an option to keep restored tabs in the list.
- Import and export in OneTab, Markdown and JSON backup formats.
- Excluded domains, pinned-tab handling, and a toolbar badge with the number of saved tabs.
- README, PRIVACY.md, MIT license, `node:test` unit tests (`npm test`), CI, contributor guide, Code of Conduct, security policy, and issue and pull request templates.

### Changed

- Data saved by pre-release builds migrates to the current storage format automatically, without data loss, and pre-release backups still import.
- The memory figure is shown only as a labelled estimate (about 50 MB per saved tab).

### Fixed

- Every storage write is serialized behind one lock, so parallel saves and "Delete all unlocked" can no longer overwrite each other.
- Settings are saved as merged patches, and the dashboard reloads settings when they change.
- Restore waits for the result and removes only tabs that actually opened; restoring during a search uses the full stored group.
- Locked groups keep their tabs, drag-reorder anchors on tab ids, and deleting a folder also removes its nested subfolders (their groups move to the root).
- Excluded-domain matching: `example.com` matches the domain and its subdomains; an entry with a port matches that host and port exactly.

### Security

- Page screenshots are opt-in (off by default), require the optional all-sites permission, and are never included in exports or backups.
- Removed the memory probe and the `scripting` permission.
- Favicons come from the browser's local favicon cache; Pinfold makes no requests to saved websites.
- Strict extension Content Security Policy; incognito is not allowed.
- Import hardening: imported items get fresh ids, URLs are limited to an allow-list of schemes, fields are type-coerced and size-limited, and ids are escaped in HTML.

[Unreleased]: https://github.com/Tektrix/pinfold/compare/v1.0.3...HEAD
[1.0.3]: https://github.com/Tektrix/pinfold/compare/v1.0.2...v1.0.3
[1.0.2]: https://github.com/Tektrix/pinfold/compare/v1.0.1...v1.0.2
[1.0.1]: https://github.com/Tektrix/pinfold/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/Tektrix/pinfold/releases/tag/v1.0.0
