Steven
e0b1153269
fix(web): resolve MobX observable reactivity issue in filter computation
...
Fixes filtering functionality that was broken due to improper use of
useMemo with MobX observables. The issue occurred because useMemo's
dependency array uses reference equality, but MobX observable arrays
are mutated in place (reference doesn't change when items are added/removed).
Changes:
- Remove useMemo from filter computation in Home, UserProfile, and Archived pages
- Calculate filters directly in render since components are already MobX observers
- Fix typo: memoFitler -> memoFilter in Archived.tsx
This ensures filters are recalculated whenever memoFilterStore.filters changes,
making tag clicks and other filter interactions work correctly.
Fixes #5189
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-25 06:59:13 +08:00
Steven
46ce0bc62e
fix(store): correct PostgreSQL placeholder generation in IN clauses
...
Fixes a regression introduced in v0.25.2 where PostgreSQL IN clause
placeholders were not properly incremented, causing all parameters to
use the same placeholder index (e.g., $1, $1, $1 instead of $1, $2, $3).
This bug affected:
- ListReactions (ContentIDList) - caused "failed to list reactions" errors
- ListAttachments (MemoIDList)
- ListMemos (IDList and UIDList)
The fix combines placeholder generation and argument appending into a
single loop to ensure proper incrementing.
Fixes #5188
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-25 06:47:06 +08:00
Claude
e35f16306e
feat: add id as final tie-breaker in ListMemos
2025-10-23 19:44:41 +08:00
Steven
b4ea7d843f
feat: enhance memo sorting functionality to support multiple fields
2025-10-20 23:41:58 +08:00
Steven
95de5cc700
refactor: update migration history methods
2025-10-20 23:05:50 +08:00
Copilot
b685ffacdf
refactor: memo filter
...
- Updated memo and reaction filtering logic to use a unified engine for compiling filter expressions into SQL statements.
- Removed redundant filter parsing and conversion code from ListMemoRelations, ListReactions, and ListAttachments methods.
- Introduced IDList and UIDList fields in FindMemo and FindReaction structs to support filtering by multiple IDs.
- Removed old filter test files for reactions and attachments, as the filtering logic has been centralized.
- Updated tests for memo filtering to reflect the new SQL statement compilation approach.
- Ensured that unsupported user filters return an error in ListUsers method.
2025-10-16 09:22:52 +08:00
Steven
c3d4f8e9d1
feat: implement user-specific SQL converter for filtering in user service
2025-09-10 21:05:26 +08:00
varsnotwars
4eb5b67baf
feat: attachments by id ( #5008 )
2025-08-15 22:02:29 +08:00
varsnotwars
f4bdfa28a0
feat: filter/method for reactions by content_id ( #4969 )
2025-08-08 00:00:51 +08:00
Colin Holzman
8319516d1a
fix: boolean filters ( #4966 )
2025-08-06 21:06:15 +08:00
johnnyjoy
506b477d50
fix: get user by username
2025-08-04 19:56:12 +08:00
varsnotwars
fa2fa8a5d7
refactor: remove call to db for parent memo name ( #4947 )
2025-08-04 19:39:52 +08:00
Colin Holzman
aae7ec8d1f
fix: calendar filter ( #4942 )
2025-08-03 19:11:09 +08:00
Maximilian Krauß
4d6042e35f
fix(tags): ensure JSON array elements are properly formatted in SQL queries ( #4944 )
2025-08-03 19:10:59 +08:00
johnnyjoy
ed23cbc011
refactor: memo filter
2025-07-23 22:10:16 +08:00
Steven
1a75d19a89
fix: memo filter for sqlite
2025-07-22 23:39:52 +08:00
johnnyjoy
7098721617
chore: fix linter
2025-07-22 21:15:23 +08:00
johnnyjoy
e24f92b719
fix: tests
2025-07-22 21:13:24 +08:00
johnnyjoy
b55904a428
feat: support more filter factors
2025-07-22 19:18:08 +08:00
johnnyjoy
6d9770b9c8
chore: move filter to filters
2025-07-21 21:52:00 +08:00
johnnyjoy
7481fe10bf
chore: remove order by pinned
2025-07-21 21:45:10 +08:00
Johnny
40130350c5
fix: args offset for postgres
2025-07-17 00:05:07 +08:00
johnnyjoy
d6a75bba4c
refactor: webhook service
2025-06-24 21:28:21 +08:00
Johnny
e6e460493c
refactor: general user setting
2025-06-23 23:23:57 +08:00
Johnny
9b15936873
refactor: clean unused fields
2025-06-23 22:55:14 +08:00
Johnny
778a5eb184
refactor: memo filter
2025-06-23 22:38:44 +08:00
Steven
a4920d464b
refactor: attachment service part2
2025-06-18 00:09:19 +08:00
Johnny
38b6c3afb9
chore: fix linter
2025-06-15 10:27:24 +08:00
Johnny
3fd29f6493
refactor: schema migrator
2025-06-15 10:23:18 +08:00
Steven
f1b365f928
refactor: clean packages
2025-05-29 21:44:43 +08:00
Steven
de3e55c2e6
feat: support now() time functions
2025-05-28 21:18:49 +08:00
Steven
b89d8f5342
feat: implement hasTaskList filter
2025-05-26 22:37:59 +08:00
johnnyjoy
f9e07a2245
feat: support update user's role
2025-05-15 19:36:15 +08:00
Steven
1f79ee575b
fix: create user with avatar url for sqlite
2025-05-14 23:45:02 +08:00
johnnyjoy
2a92baf52c
fix: filter args of postgres
2025-05-06 21:19:13 +08:00
Johnny
b94682dc4f
chore: fix linter
2025-04-12 22:16:32 +08:00
Johnny
18b9b9d18f
chore: implement memo filter in list memo relations
2025-04-12 22:13:18 +08:00
Johnny
3cc0e255ce
fix: memo filter for postgres
2025-04-08 23:46:08 +08:00
cmuangs
d649d326ef
fix: remove errors.Wrap(nil) ( #4576 )
...
* Fix errors.Wrap(nil)
* fix resource_test failure where resource does not exist
2025-03-31 12:56:51 +08:00
Amir Ehsandar
c0643ff6fa
fix: use valid query parameters for postgres ( #4515 )
2025-03-15 12:59:00 +08:00
Johnny
34ab88348e
chore: sort by pinned
2025-03-13 19:57:12 +08:00
Johnny
e3a4f49c5c
feat: implement creator_id factor
2025-03-11 22:00:57 +08:00
Johnny
925e97882e
feat: support pinned factor
2025-03-10 18:52:12 +08:00
Johnny
2aaaef79f7
chore: fix tests
2025-02-18 22:32:30 +08:00
Johnny
2dc7766fd0
fix: content contains for postgres
2025-02-18 22:28:25 +08:00
johnnyjoy
54a48b58d7
chore: remove random field
2025-02-05 20:48:27 +08:00
johnnyjoy
07336f0392
chore: update condition concat check
2025-02-05 20:07:38 +08:00
johnnyjoy
a7ca63434b
feat: validate shortcut's filter
2025-02-03 18:34:31 +08:00
johnnyjoy
ff04fdc459
feat: support more operators in filter
2025-02-03 18:23:09 +08:00
johnnyjoy
f25acfe8e2
chore: fix linter
2025-02-03 17:34:46 +08:00
johnnyjoy
e0e735d14d
feat: support memo filter for mysql and postgres
2025-02-03 17:14:53 +08:00
johnnyjoy
d605faeffa
refactor: move pinned to memo
2025-01-31 20:58:18 +08:00
johnnyjoy
2058a8ab7b
chore: move references to memo property
2025-01-31 14:18:07 +08:00
Viacheslav Potoropin
7ed3a12a64
fix: internal error on pin/unpin ( #4332 )
2025-01-31 13:38:43 +08:00
johnnyjoy
c1498a1844
chore: retire webhook state
2025-01-10 22:24:12 +08:00
Johnny
e913271f15
refactor: move tags from property to payload ( #4229 )
...
* refactor: move tags from property to payload
* chore: fix tests
* chore: drop memo tags
* chore: update
---------
Co-authored-by: Steven <stevenlgtm@gmail.com>
2024-12-24 15:23:15 +00:00
Steven
14712b42fa
chore: add pagination to list inboxes
2024-10-14 23:32:39 +08:00
Steven
e527b6a878
feat: move reaction type to setting
2024-10-10 21:06:32 +08:00
Steven
8b444be6ca
chore: update tag search
2024-09-23 21:41:23 +08:00
Sriniwas
2db67118fc
fix: case insensetive memo search for postgres ( #3938 )
...
fix:case insensetive memo search for postgres #3892
2024-09-19 23:14:51 +08:00
Steven
525223c261
chore: add tests for migrator
2024-08-26 08:41:26 +08:00
Steven
1b6685d7cf
chore: tweak linter warning
2024-08-16 08:12:09 +08:00
Steven
6e901fc940
refactor: store migrator
2024-08-16 08:07:30 +08:00
Steven
07667257d5
feat: support order by time asc
2024-07-31 23:34:00 +08:00
Steven
edc3b578d6
feat: implement search multi tags
2024-07-26 08:40:40 +08:00
Steven
457cf92cc1
feat(api): implement get resource by uid
2024-07-11 23:43:44 +08:00
Steven
797f5a123c
feat: add HasIncompleteTasks to memo property
2024-06-05 08:39:56 +08:00
Steven
423861d48c
fix: create idp in postgres
2024-05-29 23:22:20 +08:00
Steven
f0e5a72271
feat: update search memo filter
2024-05-27 23:25:25 +08:00
Steven
0c673d49ef
chore: retire memo tags
2024-05-13 22:12:56 +08:00
Steven
c561362d62
feat: implement memo property
2024-05-13 22:04:37 +08:00
Steven
8948edf654
chore: impl memo payload definition
2024-05-13 20:24:11 +08:00
Steven
29a22914cf
fix: postgres upgrade script
2024-05-11 22:35:26 +08:00
Steven
f30599fbd2
chore: fix scripts
2024-05-10 23:23:15 +08:00
Steven
041f9b1beb
chore: bump version
2024-05-10 23:02:57 +08:00
boojack
3fbc4d8539
feat: implement drag and drop for resource order in editor ( #3337 )
...
* Implement drag and drop for resource order in editor
* chore: update
* chore: update
* chore: update
2024-05-10 20:34:35 +08:00
Steven
292861be16
chore: retire tag store
2024-05-08 20:03:18 +08:00
Steven
d0655ece53
refactor: update memo tags
2024-05-08 20:03:01 +08:00
Steven
74145157a0
chore: add presign background service
2024-05-02 22:08:45 +08:00
Steven
26545c855c
refactor: implement s3 storage
2024-05-02 21:28:06 +08:00
Steven
4338234641
chore: retire storage related functions
2024-04-28 21:50:09 +08:00
Steven
9a2c423435
chore: update var-naming
2024-04-13 12:11:59 +08:00
Steven
cebc46adc7
chore: tweak store definition
2024-04-13 11:54:37 +08:00
Steven
c373131b89
chore: migrate idp service
2024-04-13 10:50:25 +08:00
Steven
707e5caf89
chore: update workspace setting store
2024-04-13 02:08:35 +08:00
Steven
4c47e93fce
chore: tweak workspace setting store
2024-04-10 22:31:55 +08:00
Steven
a376dc4dd6
chore: fix linter
2024-04-10 22:04:02 +08:00
Steven
71c39ed554
chore: update workspace setting definition
2024-04-10 21:15:55 +08:00
Steven
c93b1efbae
chore: update workspace setting store
2024-04-10 20:05:17 +08:00
Steven
bb10bb200c
chore: implement search random memos
2024-03-30 13:50:18 +08:00
Steven
03c93785f4
chore: implement list random users
2024-03-30 13:29:48 +08:00
Steven
be525fa3df
chore: fix migration script
2024-03-23 01:03:11 +08:00
Steven
8fd1dff484
chore: update migration scripts
2024-03-21 22:24:39 +08:00
Steven
7cc8b951a3
refactor: update resource id naming
2024-03-20 20:39:16 +08:00
Steven
8fe6874b1b
chore: add description field to user
2024-03-13 21:24:16 +08:00
Steven
7d5f603482
chore: update compact view
2024-03-04 11:21:48 +08:00
Steven
ce133ad69b
chore: retire unused workspace settings
2024-02-23 08:40:33 +08:00
Steven
fa62e8b59a
chore: tweak linter errors
2024-02-20 23:07:42 +08:00
Steven
8e11826db1
chore: update workspace setting service
2024-02-20 23:02:01 +08:00
Steven
3dddd3ec4c
chore: tweak reaction store
2024-02-09 21:59:45 +08:00