Commit Graph

1514 Commits

Author SHA1 Message Date
DIYgod 29f48e3918
feat: timeline selector onWheel 2025-02-14 10:46:14 +08:00
DIYgod 9fb0affd82
feat: revert notifications and audio list styles 2025-02-14 10:29:59 +08:00
Stephen Zhou aff54864af
Revert "refactor: merge audio item layout (#2722)" (#2745)
This reverts commit e8e385105a.
2025-02-14 01:11:28 +00:00
Whitewater 903b98953a
feat(mobile): add social entry list component (#2733)
* refactor(mobile): extract entry list article component

* feat(mobile): add social entry list component

* fix: lint

* chore: typo

* refactor(mobile): replace FlashList with TimelineSelectorList

* chore: auto-fix linting and formatting issues

* refactor(mobile): extract ItemSeparator component

* chore: add diff

* fix: merge

---------

Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
2025-02-14 00:02:14 +08:00
DIYgod c475ecd400
feat: timeline button width 2025-02-13 22:59:37 +08:00
DIYgod 4303da22e1
feat: revert view merge, hide unused view 2025-02-13 22:59:37 +08:00
Innei baf1af5f99
feat(mobile): add context menu and animated text for timeline view selector
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-13 22:55:16 +08:00
Innei 710ae5da7a
refactor(mobile): reorganize timeline selector components and imports
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-13 22:41:14 +08:00
Innei 8703a0d503
feat(mobile): add animated unread indicator for entries
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-13 22:23:46 +08:00
Innei fcdf4df5b2
chore: add eas build ci (#2741)
* eas build

Signed-off-by: Innei <tukon479@gmail.com>

* fix pnpm

Signed-off-by: Innei <tukon479@gmail.com>

* fix

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-13 21:56:24 +08:00
Stephen Zhou ddd6a2c8cd
feat(mobile): unread state for entry (#2730)
* feat: unread state for entry

* mark feed as read

* fix type

* feat: mark as read when entering entry detail

* prefetch unread

* show unread count for view

* fix: use feed subscription for view unread count

* fix: clean not exist subscriptions

* Pre fetch subscriptions in advance

* fix: add entry ids to list
2025-02-13 18:51:39 +08:00
DIYgod 614c9b70b5
feat: update updater channel 2025-02-13 18:08:40 +08:00
DIYgod 8963f222cb
fix: missing icon 2025-02-13 17:37:58 +08:00
DIYgod 3f01ce87fa
feat: optimize translation display 2025-02-13 17:35:17 +08:00
DIYgod 676e8bc55b
feat: subscription list; TimelineSelectorHeader and TimelineSelectorList components 2025-02-13 13:58:46 +08:00
Stephen Zhou 1327f5671c
fix(mobile): context menu crash when released too quickly (#2732) 2025-02-12 22:34:03 +08:00
Innei bc252c33a0
refactor(mobile): improve AI summary component and remove unused assets
- Remove Media.xcassets and Accent color set
- Update Utils.swift to hardcode accent color
- Enhance AISummary component with error handling and retry functionality
- Adjust layout and styling for AI summary
- Update image size calculation to handle undefined dimensions

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-12 20:42:01 +08:00
Innei f5c4d35c6c
feat(mobile): add AI summary generation for entries
- Implement AI summary feature for entry details
- Add summaries table to database schema
- Create summary service and store for managing summaries
- Introduce new components for displaying AI-generated summaries
- Add header actions for generating and toggling summaries
- Integrate with API for summary generation

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-12 18:11:42 +08:00
DIYgod 39ca541fc5
fix: types 2025-02-12 16:56:05 +08:00
DIYgod 36f7767b56
feat: update icons 2025-02-12 16:52:03 +08:00
Whitewater dea3380beb
fix(mobile): update types and star entry with view (#2728) 2025-02-12 16:17:06 +08:00
Innei 60a2b9cad5
refactor(mobile): improve view selector and tab layout components
- Replace PlatformPressable with Pressable in tab layout
- Add separator between views and lists in view selector
- Use ReAnimatedTouchableOpacity and useAnimatedStyle
- Simplify color and styling imports

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-12 15:49:51 +08:00
Stephen Zhou d8a796d3ab
feat(mobile): load archive entries (#2725)
* feat(mobile): load archive entries

* only hydrate for view

* leave note

* fix type
2025-02-12 15:27:03 +08:00
DIYgod 3b1db30456
feat: animated view selector 2025-02-12 15:20:49 +08:00
Innei db5bd2641c
refactor(mobile): simplify heading component and remove unused imports
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-12 00:18:06 +08:00
Innei 970c9329d2
feat(mobile): enhance entry detail page with star and share actions
- Add star/unstar functionality for entries
- Implement share action for entries
- Improve header actions with animated visibility
- Update collection sync service with transaction handling
- Refactor useFeed hook to support optional selectors

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-12 00:08:14 +08:00
Innei d87a92a095
feat: custom content font size and line height, resolves FOL-354
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-11 23:09:57 +08:00
Stephen Zhou c01984d50f
feat(mobile): refresh control for entry list (#2723) 2025-02-11 22:15:18 +08:00
DIYgod 7874551167
fix: types 2025-02-11 21:41:07 +08:00
DIYgod d9bc62b44c
feat: get full list feeds 2025-02-11 21:35:29 +08:00
Stephen Zhou e8e385105a
refactor: merge audio item layout (#2722) 2025-02-11 21:31:11 +08:00
DIYgod 11c98c859f
fix: timeline selector scroll 2025-02-11 20:52:32 +08:00
DIYgod 793b19d3cf
fix: inbox fetch next page 2025-02-11 20:40:44 +08:00
DIYgod a80c248194
fix: cached entries data 2025-02-11 20:27:15 +08:00
Whitewater 2f1d0485f8
feat: add collections table and implement collection management services (#2718)
* feat: add collections table and implement collection management services

* chore: fix typo in star entry hook and add toast for star

* chore: generate drizzle migration script

* chore: clean code
2025-02-11 17:57:05 +08:00
Innei 43b49d8619
refactor: simplify preview media action overlay animation
- Replace Framer Motion animation with direct CSS styling
- Remove unnecessary animation controller
- Improve transition and hover effects for action buttons
- Maintain existing layout and functionality

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-11 16:17:27 +08:00
Innei f642cdd274
refactor: improve preview media action buttons layout and styling
- Restructure preview media action buttons container
- Remove unnecessary pointer-events-none class from inner div
- Wrap action buttons in an additional container for better overflow handling
- Maintain existing functionality for download and open in browser actions

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-11 16:15:25 +08:00
Innei 220e2e0843
refactor: migrate context menu and update entry detail interactions
- Replace custom iOS context menu with zeego/context-menu
- Add dropdown menu for entry detail header actions
- Implement copy link and open in browser functionality
- Update entry hook to support optional selector
- Rename action components for clarity
- Remove deprecated context menu implementation

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-11 16:06:21 +08:00
Innei ebea9d824f
refactor: improve navigation and component rendering in mobile app
- Update SafeNavigationScrollView to support custom headerLeft prop
- Optimize EntryListScreen with memoized header actions and simplified conditions
- Simplify EntryListContent by removing BottomTabBarHeightContext.Consumer
- Add Link to Terms of Service in login screen
- Wrap Feed screen with BottomTabBarHeightContext.Provider

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-11 15:42:27 +08:00
Whitewater f5618ddb3a
refactor: update asset handling in mobile app (#2720) 2025-02-11 14:07:56 +08:00
DIYgod d639b18c6c
feat: inbox list view 2025-02-11 12:02:45 +08:00
DIYgod 756e76f167
feat: update githubusercontent webp url 2025-02-11 10:49:43 +08:00
Stephen Zhou a63bb82935
feat(mobile): entry list by feed or category; pagination (#2717)
* feat(mobile): entry list pagination support, remove deprecated views

* feat: entry list by feed

* feat: support category

* back title
2025-02-11 09:04:20 +08:00
Innei fd14d2e7b1
refactor: optimize entries query with dynamic parameter handling
- Memoize `entriesOptions` to improve performance
- Add conditional logic to remove `listId` for business feed IDs
- Import `isBizId` utility function for ID type checking
- Enhance query parameter generation with more flexible configuration

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-10 22:39:26 +08:00
Innei 62bde1d5d0
feat: enhance list feed item with active state and improved interaction
- Add active state highlighting for selected feed items
- Implement event propagation prevention in feed item click handler
- Update ListFeedList component to pass current feed ID for active state
- Refine padding and styling for feed list items

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-10 22:28:58 +08:00
Innei 3ad053bab3
refactor: rename feed column to timeline column and update related components
- Rename `feed-column` directory to `timeline-column`
- Update import paths and references across the application
- Refactor sidebar and column-related atoms and hooks
- Improve naming consistency for timeline-related components and functions

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-10 22:24:56 +08:00
Innei 8fede2f0c4
refactor: update routes from /feeds to /timeline and improve timeline navigation (#2716)
* refactor: update routes from /feeds to /timeline and improve timeline navigation

Signed-off-by: Innei <tukon479@gmail.com>

* refactor: improve timeline selector and list view rendering

- Optimize timeline selector with auto-scrolling and dynamic rendering
- Enhance list switch button with improved styling and title display
- Memoize and optimize timeline-related hooks and components
- Add utility functions for scrolling and visibility detection

Signed-off-by: Innei <tukon479@gmail.com>

* fix: prevent timeline selector error when timelineId is undefined

- Add null check for timelineId before processing timeline selection
- Ensure safe handling of timeline selector when no timeline is selected

Signed-off-by: Innei <tukon479@gmail.com>

* feat: add InboxSwitchButton for timeline navigation

- Implement InboxSwitchButton component for inbox timeline selection
- Add handling for inbox timeline in TimelineSwitchButton
- Support unread indicator and navigation for inbox timelines

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-10 22:03:41 +08:00
DIYgod 4bbfb16755
feat: inbox switch button 2025-02-10 19:10:28 +08:00
Whitewater 5867d54eab
chore(mobile): improve layout and styling in login terms (#2715) 2025-02-10 17:58:37 +08:00
DIYgod 848e998d32
fix: feed title 2025-02-10 17:10:17 +08:00