Commit Graph

66 Commits

Author SHA1 Message Date
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
cbdc7acdcd [REF] refactor file pool model and imports
- Refactor SnFilePool using freezed + sealed for consistency with other Sn models
- Add extension method listFromResponse for PoolService compatibility
- Update PoolService and utils to use SnFilePool
- Replace relative imports (../) with package imports for clarity and maintainability

Signed-off-by: Texas0295 <kimura@texas0295.top>
2025-09-21 21:37:07 +08:00
Texas0295
b80d91825a migrate file upload from tus to FileUploader API
The tus-based upload flow (/drive/tus) has been removed upstream in favor
of a new multipart upload protocol. This commit replaces all TusClient
usage with the new FileUploader service that follows the official
/drive/files/upload/{create,chunk,complete} endpoints.

Changes include:
- remove tus_client_dart dependency and related code
- add putFileToPool() backed by FileUploader.uploadFile()
- update uploadAttachment() to call the new putFileToPool
- preserve poolId support, filename, and mimetype handling
- ensure progress callbacks fire at start and completion

This aligns the client with the new upload protocol while keeping the
same Compose UI and settings logic introduced in earlier patches.

Signed-off-by: Texas0295 <kimura@texas0295.top>
2025-09-21 20:33:17 +08:00
Texas0295
b638343f02 add pool fetching service and provider
- define FilePool model
- implement PoolService with /drive/pools endpoint
- add Riverpod providers (poolServiceProvider, poolsProvider)

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
9bdd08d8dd New protocol to upload file 2025-09-21 18:46:48 +08:00
a2c2bfe585 ♻️ Replace the pattle_generator 2025-09-21 14:50:30 +08:00
c7f9da0dee ⬆️ Upgrade deps and flutter 2025-09-21 02:06:34 +08:00
313af28d7f 👽 Update service usage 2025-09-17 00:48:01 +08:00
c64e1e208c Desktop device name, close #7 2025-09-14 19:38:01 +08:00
1f2f80aa3e 🐛 Trying to fix windows notification issue 2025-09-10 23:40:19 +08:00
aa648fec62 Reworked post draft 2025-09-08 22:25:54 +08:00
3cafce00a2 Windows auto update 2025-09-07 15:44:51 +08:00
837f3fbe98 👽 Update the update service to use Solsynth download source 2025-09-07 15:31:36 +08:00
f7dad5e419 Cache udid 2025-09-06 13:09:27 +08:00
9f2f1c0848 System notification for desktop and android 2025-09-06 12:59:23 +08:00
3b375abc09 Tray 2025-09-04 22:10:00 +08:00
3745157c42 💄 Optimize snackbars 2025-08-15 00:09:05 +08:00
ae2fb3b303 👽 Support new authorized device 2025-08-14 02:10:21 +08:00
Texas0295
49db54529d 🐛 linux: guard FirebaseMessaging on unsupported platforms 2025-08-10 13:17:48 +08:00
f3d1183076 🐛 Fix android update 2025-08-10 04:16:53 +08:00
808e7dcffa Option to boost github assets download 2025-08-10 03:25:57 +08:00
9bed4fa6fb Android install update 2025-08-10 03:21:34 +08:00
af8d87857e Update service 2025-08-07 14:29:20 +08:00
edd760fbcb Ability to crop image 2025-08-04 22:08:18 +08:00
e1286c797f Audio player 2025-08-02 14:54:56 +08:00
18db50d80c 🐛 Dozens of bug fixes 2025-07-20 02:31:50 +08:00
3a4faac8cb 🐛 Dozens of bug fixes 2025-07-18 18:57:16 +08:00
e6c58b7b63 👽 Update API to microservices
♻️ Refactor router pushes
2025-07-17 14:35:09 +08:00
9546d6e4b8 🗑️ Disable the technical review tour 2025-07-03 22:11:12 +08:00
2c98b348d5 Abuse reports 2025-07-03 20:53:30 +08:00
2ad85addf6 🐛 Fix wrong notification permission is requested 2025-07-03 01:29:43 +08:00
9dd6cffe0c 🐛 Trying to fix push notification 2025-07-03 00:27:30 +08:00
536375729f 💄 Optimize the notification snackbar position 2025-06-27 22:18:16 +08:00
0361f031db Post editor tags 2025-06-27 00:56:07 +08:00
f2829b2012 ♻️ Refactor router, moved from auto_router to go_router 2025-06-26 14:13:44 +08:00
60c5e584be 💄 Optimized notification snack bar 2025-06-26 02:12:38 +08:00
2b237eaad9 💄 Optimized bottom nav 2025-06-26 01:54:43 +08:00
1a8abe5849 Better link previewing 2025-06-25 22:33:12 +08:00
86258acc6e ♻️ Refactor snackbar 2025-06-25 22:05:37 +08:00
0062d3baf0 Receving share from system 2025-06-25 17:56:08 +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
4728df93e2 Solarpay sheet 2025-06-22 17:55:35 +08:00
d1506f10ef 💄 Optimized call 2025-06-22 01:40:10 +08:00
006841cf82 Pin code
🐛 Bug fixes
2025-06-22 00:38:51 +08:00
15a5848785 Client side remove GPS EXIF 2025-06-18 23:07:51 +08:00
eb4d2c2e2f Finish up connections 2025-06-17 23:49:46 +08:00