Commit Graph

984 Commits

Author SHA1 Message Date
Medcl
6d68b2b372 docs: update docs settigns (#1058) 2026-04-17 13:20:55 +08:00
ayangweb
e17ec3f7ec feat: enhance tray icon management with logging and error handling (#1056) 2026-04-16 11:30:00 +08:00
ayangweb
ed2ba8dc76 feat: add infinite scroll support for extension store (#1055)
* feat: add infinite scroll support for extension store

* docs: update changelog
2026-04-12 14:28:04 +08:00
ayangweb
47223b76f7 fix: fix input not auto-focus issue on web (#1054)
Co-authored-by: ayangweb <ayangweb@foxmail.com>
2026-04-08 09:43:24 +08:00
Copilot
963567564d feat: support comma thousand separators in calculator expressions (#1052)
* Initial plan

* feat(calculator): support comma thousand separators in number input

Add strip_thousand_separators() function to remove commas between digits
so that expressions like '5,032,104/171' are properly evaluated.
The original query string with commas is preserved for display.

Co-authored-by: medcl <64487+medcl@users.noreply.github.com>
Agent-Logs-Url: https://github.com/infinilabs/coco-app/sessions/929459f7-054d-4855-bcf5-b1fd68ce0cd3

* style(calculator): fix rustfmt formatting in test assertions

Co-authored-by: medcl <64487+medcl@users.noreply.github.com>
Agent-Logs-Url: https://github.com/infinilabs/coco-app/sessions/46a6663e-81ef-4c41-a047-d0e1232cc722

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: medcl <64487+medcl@users.noreply.github.com>
2026-03-23 16:18:59 +08:00
BiggerRain
49eae2ff15 style: mobile styles (#1050) 2026-02-26 10:19:26 +08:00
liaosy
bc0f4f39fb docs: apply dracula style to markdown code blocks (#1049)
Co-authored-by: liaosy <liaosy@infinilabs.com>
2026-02-12 08:50:10 +08:00
liaosy
e3b0ef7e56 docs: update the bookCollapseSection: true config in the Getting Started module. (#1048)
Co-authored-by: liaosy <liaosy@infinilabs.com>
2026-01-22 15:00:14 +08:00
BiggerRain
5bbf9ed7b6 refactor: clarify response timeout naming; i18n copy updates (#1047) 2026-01-15 16:40:56 +08:00
ayangweb
9a4b0121b5 fix: resolve extension icon caching issue (#1046)
* fix: resolve extension icon caching issue

* docs: update changelog
2026-01-08 10:09:19 +08:00
liaosy
97eb1edc9b docs: update tableOfContents start level to 2 (#1045)
Co-authored-by: liaosy <liaosy@infinilabs.com>
2026-01-05 17:02:51 +08:00
BiggerRain
b0cdaa3ec8 fix: force check window to center on every show (#1044) 2026-01-05 16:41:14 +08:00
BiggerRain
39096b204e fix: eliminate the default selection delay of the result list (#1043) 2026-01-04 16:46:52 +08:00
BiggerRain
341682aed0 chore: remove deep-link to settings (#1038)
* chore: remove deep-link to settings

* chore: delete comment

* chore: delete comment
2025-12-31 14:14:46 +08:00
BiggerRain
6dfa4f6a5f fix: prevent window collapse when chat history is open (#1039) 2025-12-31 14:13:51 +08:00
ayangweb
d00c07e8ec refactor: remove the pin button in the standalone window (#1041)
* refactor: remove the pin button in the standalone window

* refactor: update
2025-12-31 14:13:22 +08:00
SteveLauC
a6b6a09af0 refactor: format Coco server update time in settings (#1040)
Previously, the last update time of the Coco server in the
"Connect" settings page was displayed using the raw string
directly from the `updated` field, which lacked consistent
formatting.

This commit refactors the `ServiceMetadata` component to use
the `formatDateToLocal` utility function. This ensures
the update time is displayed in a standardized
`YYYY/MM/DD HH:mm:ss` format and provides a fallback value if
the date is invalid or missing.
2025-12-31 14:04:45 +08:00
ayangweb
81a8631411 fix: fix some filter fields not working (#1037)
* fix: fix some filter fields not working

* docs: update changelog
2025-12-30 14:31:08 +08:00
SteveLauC
90e787058c fix: apply local results weight to scores generated by rerank() (#1036)
* fix: apply local results weight to scores generated by rerank()

We have two kinds of scores:

1. Scores calculated by query sources
2. In the post-search phase, we re-score the documents in
   `boosted_levenshtein_rerank()`

When applying the setting "local search results weight", previous
implementation modified the first score. Its effect was not noticeable,
since we collect documents evenly from the hits returned by query sources.

This commit refactors the implementation so that the setting adjusts the
second score, making the effect obvious.

* refactor: keep O(1) lookup && update var names

* chore: one more var name to update
2025-12-30 14:26:01 +08:00
ayangweb
b4856e61e6 fix: fix arrow keys not working after closing the context menu (#1035)
* fix: fix arrow keys not working after closing the context menu

* refactor: update

* docs: update changelog

* refactor: update
2025-12-29 16:39:13 +08:00
ayangweb
f573dfad90 fix: fix incorrect window position after hiding (#1034)
* fix: fix incorrect window position after hiding

* refactor: update

* refactor: update
2025-12-29 16:08:54 +08:00
BiggerRain
b12baf63f8 fix: console error (#1033) 2025-12-26 16:12:16 +08:00
SteveLauC
e019206fcd feat: new config ui.hide_scrollbar (#1031)
* feat: new config ui.hide_scrollbar

* feat: front end supports hide_scrollbar

---------

Co-authored-by: rain9 <15911122312@163.com>
2025-12-26 15:55:04 +08:00
BiggerRain
585545c43c style: adjust placeholder styles (#1032) 2025-12-26 10:55:20 +08:00
BiggerRain
e3e5cd2ecc fix: avoid recentering when resizing to compact after leaving extension (#1030)
* fix: avoid recentering when resizing to compact after leaving ViewExtension

* docs: update release note

* chore: update
2025-12-26 10:53:44 +08:00
SteveLauC
20597b2e86 feat: read localized names from root InfoPlist.strings (#1029)
* feat(mac): read localized names from root InfoPlist.strings

* release notes
2025-12-25 15:35:16 +08:00
ayangweb
913572756c feat: add search filter (#1014)
* feat: add search filter

* refactor: update

* debugging: print query strings

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* update

* update

* update

* style: remove unless file

* update

* update

* pass v2=true to coco server

* print response body string

* pass request body

* chore: up

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* Bucket.label

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* filter

* refactor: update

* fix: source ID filter

* refactor: update

* refactor: update

* fix: source ID filter

* refactor: update

* fix: when field buckets does not exist

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* docs: document supported query strings

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* remove debugging printlns

* move clean_aggregations() to common/search.rs

* fix import

* typo filer->filter

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* update

* update filter=updated filter=created format

---------

Co-authored-by: Steve Lau <stevelauc@outlook.com>
Co-authored-by: rain9 <15911122312@163.com>
2025-12-25 14:03:59 +08:00
SteveLauC
e5ff39b806 refactor: add a timeout to open() (#1025)
Adds a 500ms timeout to open(), to prevent the open action that hangs
from hanging indefinitely.
2025-12-25 13:23:57 +08:00
SteveLauC
b5afed45e2 feat: support app search even if Spotlight is disabled (#1028)
* feat: support app search even if Spotlight is disabled

Previously, we relied on Spotlight (mdfind) to fetch the app list,
which means it won't work if users disable their Spotlight index.

This commit bumps the applications-rs library, which can now list
apps using `lsregister`, macOS's launch service tool. (See commit [1]
for details). With this, our app search works even tough Spotlight
is disabled.

[1]: ec174b7761

* release notes
2025-12-25 09:02:50 +08:00
SteveLauC
062b4ce410 refactor: display doc.{updated,created} in local time (#1027)
* refactor: display doc.{updated,created} in local time

Previously, document created/updated times were displayed as raw
strings, and can be in UTC, which was not user-friendly.

This commit adds a helper function `formatDateToLocal()` that formats
date to a local time string, then uses it to unify the date formatting
in application and document details.

* chore: address review comments
2025-12-24 16:23:12 +08:00
BiggerRain
03af1d46c5 fix: skip window resize when UI size is missing (#1023)
* fix: skip window resize when UI size is missing

* chore: padding

* chore: update

* refactor: update

* chore: height

* chore: height

* chore: defalut value

---------

Co-authored-by: ayang <473033518@qq.com>
2025-12-23 22:02:19 +08:00
SteveLauC
8638724e68 chore: remove file foo (#1026)
It was a placeholder that I added in PR #1009, I forgot to remove it
before merging that PR. Let's remove it now.
2025-12-22 16:12:14 +08:00
ayangweb
6ae2ed0832 fix: esc key fails to close the popover (#1024)
* fix: esc key fails to close the popover

* refactor: update
2025-12-22 11:51:04 +08:00
Hardy
81dab997a9 chore: update release notes for publish 0.10.0-2619 (#1021)
* chore: update release notes for publish 0.10.0-2619

* Add section headers to release notes

Added section headers for breaking changes, features, bug fixes, and improvements.

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: BiggerRain <15911122312@163.COM>
2025-12-22 09:51:59 +08:00
BiggerRain
7a4364665e chore: bump version to 0.10.0 (#1022) v0.10.0 2025-12-19 17:56:32 +08:00
BiggerRain
444ba968c4 chore: hide selection settings (#1020) 2025-12-19 16:15:03 +08:00
ayangweb
206d8db4f4 refactor: disable input auto-correction (#1019) 2025-12-19 15:46:53 +08:00
BiggerRain
7e40632c29 style: adjust delete button color (#1018) 2025-12-19 12:59:58 +08:00
SteveLauC
f483ce4887 feat: resizable extension UI (#1009)
* wip

* define config entries: width/height/resizable/detachable

* chore: window size

* fix: add default values for ViewExtensionUiSettings fields

* chore: open

* chore: add window size set

* wip

* chore: window size

* define config entries: width/height/resizable/detachable

* chore: open

* fix: add default values for ViewExtensionUiSettings fields

* chore: add window size set

* chore: up

* fix: consle error

* chore: up

* chore: up

* chore: up

* chore: up

* refactor: update

* fix: page error about install

* chore: up

* chore: ci error

* docs: update release notes

* style: adjust styles

---------

Co-authored-by: rain9 <15911122312@163.com>
Co-authored-by: ayang <473033518@qq.com>
2025-12-19 09:01:51 +08:00
BiggerRain
3a9c9ec9eb style: img styles (#1015) 2025-12-18 15:51:00 +08:00
BiggerRain
f7c0600480 feat: add open button to launch installed extension (#1013)
* chore: up

* support query string main_extension_id

* chore: up

* fix tests

* open non-group/extension extensions

* dbg

* chore: upadate

* extension SearchSource now accepts empty querystring

* update

* chore: open

* chore: input

* remove DBG statements

* chore: icon

* style: adjust styles

* docs: update release notes

---------

Co-authored-by: Steve Lau <stevelauc@outlook.com>
2025-12-18 15:50:26 +08:00
BiggerRain
ed8a1cb477 refactor: replace legacy components with shadcn/ui components (#1002)
* chore: shadcn config

* feat: add shadcn ui config

* style: adjust styles

* style: adjust styles

* refactor: update style

* style: adjust styles

* style: adjust styles

* style: adjust styles

* style: adjust styles

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* style: adjust styles

* style: adjust styles

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* style: web styles

* refactor: update

* style: web styles

* style: web styles

* refactor: update

* refactor: update

* refactor: update

* chhore: add

* chore: add

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* chore: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* chore: rename

* refactor: update

* refactor: update

* chore: add

* refactor: update

* chore: update

* chroe: up

* refactor: update

* refactor: update

* chore: up

* refactor: update

* chore: up

* feat: support for extracting css variables

* chore: update

* fix: fixed dark mode

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* docs: update release notes

* style: adjust styles

* style: adjust styles

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

* refactor: update

---------

Co-authored-by: ayang <473033518@qq.com>
2025-12-18 10:26:13 +08:00
SteveLauC
abf20f81ff refactor: treat Applications and File Search as normal extensions (#1012)
I was digging into an issue that the "File Search" extension does
not appear in the extension list under some cases, then I realized
that, in list_extensions(), "File Search" is another extension that
needs to be processed separately, just like the "Applications"
extension.

Both extensions are of type group/extension, which semantically should
behave like a folder, i.e., they contain sub-extensions, but they
do not. In our implementation, they are more like command extensions.

So we treat them as normal extensions in list_extensioins().
2025-12-17 15:08:01 +08:00
SteveLauC
65a48efdde fix: implement custom serialization for Extension.minimum_coco_version (#1010)
Coco's version string does not adhere to semver's spec, so we had to
write a custom deserialization impl to do the conversion:

```
0.9.1-SNPASHOT-2560 => 0.9.1-SNAPSHOT.2560
```

But we forget to serialize versions to Coco's format when writing
extensions to disk. When Coco reads extension from disk, it sees
valid semantic versions, which are not expected:

```
[WAR] [third_party:167] invalid extension: [base64-converter]:
  field [minimum_coco_version] has invalid version:
    failed to parse build number 'SNAPSHOT.2560'', caused by: ['invalid digit found in string']
```

This commit provides a custom serialization impl to fix the issue.
2025-12-16 15:29:36 +08:00
ayangweb
0613238876 refactor: hide the filter bar in quick ai access (#1008) 2025-12-15 09:25:13 +08:00
SteveLauC
501f6df473 chore: show error msg (not err code) when installing exts via deeplink/store fails (#1007)
* chore: show error msg (not err code) when installing exts via deeplink fails

When installing extensions via deeplink fails, previous implementation
showed the raw error code returned from the backend interfaces, which
is not user-friendly. We now call installExtensionError() to interrupt
the error code to get a human-readable error message, then show it to
the users.

* fix: correct install extension error when installing via store
2025-12-14 09:24:13 +08:00
ayangweb
67c8c4bdfa fix: fix the abnormal input height issue (#1006)
* fix: fix the abnormal input height issue

* docs: update changelog
2025-12-09 15:07:41 +08:00
Hardy
b5f5d3bd28 chore: update release notes for publish 0.9.1-2602 (#1004)
Co-authored-by: github-actions <github-actions@github.com>
v0.9.1
2025-12-05 19:58:09 +08:00
BiggerRain
378d5aef69 chore: hide selection function (#1003) 2025-12-05 17:58:40 +08:00
SteveLauC
10ee3cd9d3 chore: bump version to 0.9.1 (#1001) 2025-12-05 15:43:59 +08:00