552 Commits

Author SHA1 Message Date
Sergey
fad3ef5e3d
Merge pull request #266 from katelya77/patch-11
Update settings.yaml
2025-06-21 09:05:51 -04:00
Sergey
a1754af340
Merge pull request #267 from katelya77/patch-12
Update settings2.yaml
2025-06-21 09:05:22 -04:00
Sergey
d3e8046253
Merge pull request #269 from katelya77/patch-15
Update tours.yaml
2025-06-21 09:05:10 -04:00
Sergey
2864b9f391
Merge pull request #270 from katelya77/patch-3
Update common.yaml
2025-06-21 09:04:55 -04:00
Sergey
582eb5c89a
Merge pull request #271 from katelya77/patch-14
Update tours.yaml
2025-06-21 09:04:42 -04:00
Sergey
0f86b35f26
Merge pull request #272 from katelya77/patch-4
Update common2.yaml
2025-06-21 09:04:25 -04:00
Sergey
437c9254b3
Merge pull request #268 from katelya77/patch-13
Update templates.yaml
2025-06-21 09:04:12 -04:00
katelya
5c75a17a90
Update tours.yaml 2025-06-21 15:54:34 +08:00
katelya
6846782d3d
Update tours.yaml 2025-06-21 15:54:09 +08:00
katelya
9dc0975cac
Update templates.yaml 2025-06-21 15:51:45 +08:00
katelya
8ea05dea56
Update settings2.yaml 2025-06-21 15:49:53 +08:00
katelya
37d518fb7f
Update settings.yaml 2025-06-21 15:46:14 +08:00
katelya
fab76153ff
Update common2.yaml 2025-06-21 15:03:23 +08:00
katelya
9da2680328
Update common.yaml 2025-06-21 15:02:05 +08:00
Sergey Kurdin
c7219cf014 fix: update history preview line limit to null and reset button action in ClipboardHistorySettings component 2025-06-20 23:44:12 -04:00
Sergey
c00ff2b33f
Merge pull request #259 from PasteBar/feat/history-preview-limit
History item preview max lines user setting
2025-06-20 23:29:03 -04:00
Sergey Kurdin
161b589f95 chore: removed console.log 2025-06-20 23:28:36 -04:00
Sergey Kurdin
9ba408d45e chore: remove redundant comments in ClipboardHistory components for cleaner code readability 2025-06-20 23:14:31 -04:00
Sergey Kurdin
618ba3ae02 chore: comment removed 2025-06-20 23:12:58 -04:00
Sergey Kurdin
c10ec6347e feat: Introduce setting for history item preview line limit
Added a new user preference to control max lines displayed in history item previews, improving customization options
2025-06-20 23:09:54 -04:00
Sergey Kurdin
e2972ecdba Merge branch 'main' into feat/history-preview-limit 2025-06-20 16:30:54 -04:00
google-labs-jules[bot]
bfb5821078 feat: Add user preference for history item preview line limit
This commit introduces a new user setting allowing you to define the
maximum number of lines displayed in the preview for text or code
clipboard history items.

Key changes:
- Added a "History Item Preview Line Limit" setting in
  `ClipboardHistorySettings.tsx` (defaulting to 5 lines), stored in
  `settingsStore.ts`.
- The `historyPreviewLineLimit` setting is now passed as a prop to
  `ClipboardHistoryRow.tsx` and `ClipboardHistoryQuickPasteRow.tsx`
  from their parent pages (`ClipboardHistoryPage.tsx` and
  `ClipboardHistoryQuickPastePage.tsx` respectively).
- Modified `ClipboardHistoryRow.tsx` and
  `ClipboardHistoryQuickPasteRow.tsx` to truncate the displayed text
  or code preview based on the `historyPreviewLineLimit` prop when
  the item is not expanded.
- The "Show all / Show less" indicators (+X lines / +Y chars) have
  been updated to accurately reflect the truncation based on the new
  line limit.
- Added comprehensive unit tests for both `ClipboardHistoryRow.tsx`
  and `ClipboardHistoryQuickPasteRow.tsx` using Vitest and React
  Testing Library to ensure the new functionality works as expected
  across various scenarios (different limits, content lengths, text vs.
  code, expanded state).
2025-06-20 20:30:21 +00:00
Sergey
2c14a69fc5
Merge pull request #258 from PasteBar/templates-global-improvments
Global templates handling in clip
2025-06-20 16:28:37 -04:00
Sergey Kurdin
42f2dcc9d7 feat: implement global regex caching for template patterns in apply_global_templates function 2025-06-20 16:27:11 -04:00
Sergey
9305de16a3
Update src-tauri/src/services/utils.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-20 16:17:31 -04:00
Sergey
9866b42af9
Update src-tauri/src/services/utils.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-20 16:16:58 -04:00
Sergey Kurdin
f4afd9d0dc feat: enhance template rendering in global settings with improved badge styling and conditional input field behavior 2025-06-20 16:13:55 -04:00
Sergey Kurdin
4f88449295 feat: update localization in dashboard and templates for multiple languages, simplifying template field messages and adding new translations 2025-06-20 15:55:36 -04:00
Sergey Kurdin
16428c54eb added changeset 2025-06-20 15:18:30 -04:00
Sergey Kurdin
5666b408c4 feat: add tooltip to template names in global settings and improve badge styling for enabled/disabled templates 2025-06-20 15:17:11 -04:00
Sergey Kurdin
bba144b8e9 feat: remove global templates implementation plan document and integrate feature details across relevant components and settings 2025-06-20 12:07:37 -04:00
Sergey Kurdin
6945e5139f feat: enhance global templates settings with new UI, validation, and improved user experience for template management 2025-06-19 22:10:43 -04:00
Sergey Kurdin
93f847bac8 feat: implement global templates management in user preferences, including storage, UI, conflict handling, and i18n support 2025-06-19 20:11:37 -04:00
Sergey
1a1b58a528
Merge pull request #257 from PasteBar/feat/collection-pin-reuse-modal
refactor: streamline list handling in settingsStore
2025-06-19 18:07:31 -04:00
Sergey Kurdin
9d850924d8 refactor: streamline list handling in settingsStore to filter out empty values for improved data accuracy 2025-06-19 18:06:23 -04:00
Sergey
67c4c2d42b
Merge pull request #255 from PasteBar/feat/collection-pin-reuse-modal
Feat: protected collection with required PIN access
2025-06-19 18:06:03 -04:00
Sergey Kurdin
3a4ca0651a refactor: enhance collections dropdown to support pin protection and update min width for better layout in UI 2025-06-19 17:56:07 -04:00
Sergey
1d40b7385f
Update packages/pastebar-app-ui/src/pages/settings/collections/ManageCollections.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-19 17:48:03 -04:00
Sergey Kurdin
850962c276 refactor: improve logic for enabling/disabling PIN protection on collections in settings UI 2025-06-19 17:43:15 -04:00
Sergey Kurdin
0dc3f1ab99 fix: update namespace for clipboard history translation in settings UI 2025-06-19 17:38:58 -04:00
Sergey Kurdin
c81ec5c2e6 Refactor localization files for Ukrainian and Simplified Chinese 2025-06-19 17:36:37 -04:00
Sergey Kurdin
37c5d29a4d feat: Add translations for PIN protection features across multiple languages in collections UI 2025-06-19 13:31:30 -04:00
Sergey Kurdin
cdf77523a5 chore: added changeset 2025-06-19 12:35:08 -04:00
Sergey Kurdin
8afa96590e Merge branch 'main' into feat/collection-pin-reuse-modal 2025-06-19 10:26:08 -04:00
Sergey Kurdin
bcd58d2c0c feat: Implement PIN protection for collections
Added new settings to manage PIN protection for collections, enhancing security and user experience in ManageCollections component
2025-06-19 10:25:14 -04:00
google-labs-jules[bot]
474ca2c523 fix: Ensure collection switch after PIN and refactor selection UI
This commit addresses two main pieces of your feedback:

1.  **Bug Fix**: I corrected an issue where entering the correct PIN for a
    locked collection did not result in switching to the selected collection.
    The `onConfirmSuccessCallback` within `useSelectCollectionById` in
    `use-collections.ts` now correctly invokes the backend operation
    `invoke('select_collection_by_id', ...)` instead of attempting a direct
    frontend state update. Explicit UI refresh calls (query invalidations
    and `build_system_menu`) are also made within this callback to ensure
    the application state updates correctly.

2.  **UI Refactor for Protected Collection Selection**:
    In `ManageCollections.tsx`, the UI for selecting which collections
    are PIN-protected has been changed. The previous list of individual
    switches for each collection has been replaced with:
    - A `DropdownMenu` allowing you to multi-select collections
      using `DropdownMenuCheckboxItem`.
    - A list displayed below the dropdown showing the titles of
      currently protected collections (using `Badge` components).
    This new UI is more user-friendly and scalable for managing
    multiple protected collections.

These changes improve the reliability and your experience of the
collection PIN protection feature.
2025-06-19 03:19:42 +00:00
Sergey
ed485a38c5
Merge pull request #254 from PasteBar/rename-split-to-open-history-window
refactor: update terminology for history window split to open
2025-06-18 23:14:56 -04:00
Sergey Kurdin
1191b9b271 added changeset 2025-06-18 23:14:06 -04:00
Sergey Kurdin
9bd23d2cfe refactor: update terminology for history window in multiple locales to ensure consistency across the application 2025-06-18 23:11:56 -04:00
Sergey
bd0db3b902
Merge pull request #253 from PasteBar/enhance-clip-preview-with-better-truncation-handling
Fix: enhance value preview logic
2025-06-18 22:29:58 -04:00