Commit Graph

37 Commits

Author SHA1 Message Date
Texas0295
ace302111a [REF] unify file upload logic and pool utils
- merge putMediaToCloud and putFileToPool into putFileToCloud
  with FileUploadMode for media-safe vs generic uploads

Signed-off-by: Texas0295 <kimura@texas0295.top>
2025-09-21 22:38:49 +08:00
Texas0295
1391fa0dde [REF] unify pool handling with extension methods
- Move pool filtering and parsing logic into SnFilePool extension
- Replace PoolService and pool_utils with unified extension
- Update settings screen to use pools.filterValid() + resolveDefaultPoolId
- Cleanup references in compose_shared.dart
- Remove obsolete files: pool_service.dart, pool_utils.dart

Signed-off-by: Texas0295 <kimura@texas0295.top>
2025-09-21 22:10:25 +08:00
Texas0295
1a703b7eba add default pool selection with validation and fallback
- extend AppSettings with defaultPoolId
- add pool filtering utility to exclude media-only pools
- add resolveDefaultPoolId with fallback to safe pool
- update SettingsScreen with default pool dropdown
- integrate uploadAttachment with default pool resolution

Signed-off-by: Texas0295 <kimura@texas0295.top>
2025-09-21 20:33:12 +08:00
Texas0295
3621ea7744 support default file pool selection
- add defaultPoolId to AppSettings + persistence
- extend SettingsScreen with pool dropdown
- update uploadAttachment to use defaultPoolId with fallback

Signed-off-by: Texas0295 <kimura@texas0295.top>
2025-09-21 20:33:12 +08:00
Texas0295
269a64cabb add general file upload support with pool-aware tus client
- add "uploadFile" i18n key (en, zh-CN, zh-TW)
- introduce putFileToPool for tus upload with X-FilePool header
- add ComposeLogic.pickGeneralFile for arbitrary files
- extend uploadAttachment to support poolId override
- add toolbar button for general file upload

Signed-off-by: Texas0295 <kimura@texas0295.top>
2025-09-21 20:33:11 +08:00
aa648fec62 Reworked post draft 2025-09-08 22:25:54 +08:00
013f7f02bc Post embed view 2025-09-08 02:15:22 +08:00
573b76d3ff 🍱 Update media offline placeholder
🐛 Fix image picker
2025-09-06 13:23:09 +08:00
300541f9bb ♻️ Replaced picker 2025-09-01 01:00:52 +08:00
5d4b896f70 Post slug 2025-08-17 12:47:00 +08:00
1a892ab227 Realm post, and post publisher is org is rounded rect 2025-08-17 02:37:45 +08:00
b25e8d661a Show post tags and categories 2025-08-08 21:18:25 +08:00
e2e103fa67 Post categories selection 2025-08-08 17:57:47 +08:00
43c90da4e3 🐛 Fixes attachments 2025-08-08 15:04:50 +08:00
3c4a9767e1 ♻️ Move the title, description out of the settings sheet 2025-08-06 20:55:13 +08:00
a6d869ebf6 Poll answer 2025-08-06 01:37:38 +08:00
edd760fbcb Ability to crop image 2025-08-04 22:08:18 +08:00
ba269dbbb8 💄 Optimization styles 2025-08-04 18:20:13 +08:00
bec037622f Audio recorder 2025-08-02 14:06:58 +08:00
fd186f8391 💄 Optimize post compose and more 2025-07-31 02:01:18 +08:00
d8cd33e79a Add file from ID
🐛 Fix explore unauthorized render error on large screen
2025-07-28 02:01:36 +08:00
3a4faac8cb 🐛 Dozens of bug fixes 2025-07-18 18:57:16 +08:00
594ac39e3d Article attachments 2025-07-03 01:18:07 +08:00
23321171f3 💄 Optimized attachment insert in article compose 2025-07-03 01:11:56 +08:00
ee72d79c93 Hide attachments list on article 2025-07-03 01:06:01 +08:00
f479b9fc8b 🐛 Bug fixes on posts writing and etc 2025-07-02 23:34:27 +08:00
c4becb0a05 Publisher members 2025-06-28 18:57:32 +08:00
4deff5a920 Post tags 2025-06-27 02:31:21 +08:00
0361f031db Post editor tags 2025-06-27 00:56:07 +08:00
86258acc6e ♻️ Refactor snackbar 2025-06-25 22:05:37 +08:00
47c31ddec2 ♻️ Refactored post draft system 2025-06-25 02:15:45 +08:00
b89cffeb18 💄 Optimized drafts 2025-06-25 00:01:52 +08:00
568d70fffb ♻️ Refactor post draft with drift db 2025-06-24 23:39:09 +08:00
6d68b20122 Auto save post draft
🐛 Fix publisher edit screen overflow
2025-06-24 01:00:29 +08:00
fbbe373ce8 💄 Optimized compose page 2025-06-21 11:10:42 +08:00
8d855867c1 Replies sheet is back
🗑️ The silver paging helper is merged, remove the one inside the own codebase
2025-06-20 01:11:17 +08:00
89fd80bcb8 Article editor 2025-06-19 23:38:38 +08:00