Commit Graph
718 Commits
Author SHA1 Message Date
Stephen Zhou 405ee42e8a fix: auth in electron 2024-12-25 10:02:06 +08:00
Stephen Zhou d42f52d3f1 fix: can not update profile image, close #2267 2024-12-25 09:45:24 +08:00
Stephen Zhou 36f0d00b07 style: use prettier-plugin-tailwindcss and disable sort in lint 2024-12-23 22:19:45 +08:00
Innei 8bf9dd07e5 feat(auth): enhance login modal with email login
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-23 21:32:48 +08:00
Innei d9a26387c5 feat(auth): add credential provider icon and update email translation in login flow
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-23 21:11:24 +08:00
Ethan Wong 1b0f62fbfe fix: clicking a media should mark the social media item as read (#2297) 2024-12-23 20:00:06 +08:00
DIYgod 8a666e5f1b feat: update text 2024-12-19 21:25:53 +08:00
Stephen Zhou acc628ade1 chore: bring credential provider back 2024-12-19 20:56:55 +08:00
Innei 49470821dc feat: re-design pwa updated notice
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-19 00:01:50 +08:00
Innei 77fa6088fb refactor: streamline entry action handling and replace ActionButton with CommandActionButton
- Removed unused imports and simplified the use of commands in `useEntryActions`.
- Updated `EntryItemWrapper`, `HeaderActions`, and `MoreActions` components to utilize `CommandActionButton` for better command handling.
- Introduced `CommandDropdownMenuItem` for consistent command representation in dropdowns.
- Enhanced readability and maintainability by reducing redundant code and improving type safety.

Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 20:07:33 +08:00
Innei 1e12588111 feat: copy profile email
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 19:37:06 +08:00
Stephen Zhou ead7b3a2f1 chore: fix merge conflict 2024-12-17 15:36:42 +08:00
Innei 0e86a24b58 Merge remote-tracking branch 'origin/main' into dev
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 14:43:55 +08:00
Stephen Zhou 3ff8e244a6 chore: remove default category when following from user profile 2024-12-17 09:43:46 +08:00
Stephen Zhou b3ee5727e2 feat: copy button for ai summary 2024-12-17 09:38:50 +08:00
Innei de8d337671 fix(auth): handle optional icon class names for providers in login components
- Updated the LoginModalContent and Login components to safely access provider icon class names using optional chaining.
- Excluded the "credential" provider from the list of displayed auth providers to streamline the login options.

Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 01:04:12 +08:00
Stephen Zhou 3497623b85 feat: email verification
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 01:02:45 +08:00
ae0dc2c30d feat: register or login with email and password (#2075)
* feat: login with password

* chore: auto-fix linting and formatting issues

* feat: show email

* refactor: login form

* chore: update

* fix: show login error

* chore: update

* credential provider

* feat: confirm password

* chore: update

* revokeOtherSessions when update password

* changelog

* typecheck

* chore: update

* chore: update hono

* feat: forget password

* chore: update

* feat: reset password page

* feat: register form

* chore: update

* chore: update

* chore: update

* chore: update

* fix: email login handler

* fix: navigate to login after register

* chore: remove forget password button for now

* chore: update

* feat: forget password page

* chore: update hono

* fix: forget-password link

* feat: login email text

* refactor: enhance login and forget password functionality

- Updated the forget password page to include a back navigation button using MotionButtonBase.
- Refactored the login component to utilize the new Login module, simplifying the structure.
- Adjusted translations for consistency in the login text across English and German locales.
- Improved the useAuthProviders hook to return a more structured AuthProvider interface.

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

* feat: add form validation and UI enhancements for login-related pages

- Introduced form validation state management in forget-password, register, and reset-password components.
- Updated button states to be disabled when forms are invalid, improving user experience.
- Enhanced UI elements with consistent styling and layout adjustments, including the addition of MotionButtonBase for navigation.
- Improved accessibility and responsiveness of card components.

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

* feat: enhance login component with dynamic provider buttons

- Added MotionButtonBase for improved button animations and interactions.
- Refactored the rendering logic to conditionally display login options based on the presence of credential providers.
- Introduced a new icon mapping for providers to enhance visual representation.
- Improved layout and styling for better user experience during login.

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

* feat: add GitHub provider icon and adjust button margin in login component

- Introduced a GitHub icon to the provider icon map for enhanced visual representation.
- Adjusted the margin of the submit button to improve layout consistency.

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

* chore: update

---------

Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: hyoban <hyoban@users.noreply.github.com>
Co-authored-by: DIYgod <i@diygod.me>
Co-authored-by: Innei <tukon479@gmail.com>
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 01:02:17 +08:00
Innei ffca1301b4 fix: commands in action responsive
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 00:45:23 +08:00
Innei d0bf0fb657 refactor: replace useGetCommand with getCommand for improved command retrieval
- Updated the command retrieval method in various hooks and components to use the new getCommand function instead of the deprecated useGetCommand.
- Refactored related tests to ensure type correctness with the new command retrieval approach.
- Enhanced the PictureWaterFallItem component by optimizing mouse event handling with useCallback for better performance.
- Improved animation handling in the PictureWaterFallItem component for smoother transitions.

This change streamlines command access and enhances component performance.

Signed-off-by: Innei <tukon479@gmail.com>
2024-12-17 00:32:28 +08:00
Stephen Zhou d4905fd008 feat: email verification 2024-12-16 22:02:55 +08:00
Innei 8ad40c004e feat(settings): clean web app service worker cache
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-16 20:15:13 +08:00
7a6edb4575 feat: register or login with email and password (#2075)
* feat: login with password

* chore: auto-fix linting and formatting issues

* feat: show email

* refactor: login form

* chore: update

* fix: show login error

* chore: update

* credential provider

* feat: confirm password

* chore: update

* revokeOtherSessions when update password

* changelog

* typecheck

* chore: update

* chore: update hono

* feat: forget password

* chore: update

* feat: reset password page

* feat: register form

* chore: update

* chore: update

* chore: update

* chore: update

* fix: email login handler

* fix: navigate to login after register

* chore: remove forget password button for now

* chore: update

* feat: forget password page

* chore: update hono

* fix: forget-password link

* feat: login email text

* refactor: enhance login and forget password functionality

- Updated the forget password page to include a back navigation button using MotionButtonBase.
- Refactored the login component to utilize the new Login module, simplifying the structure.
- Adjusted translations for consistency in the login text across English and German locales.
- Improved the useAuthProviders hook to return a more structured AuthProvider interface.

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

* feat: add form validation and UI enhancements for login-related pages

- Introduced form validation state management in forget-password, register, and reset-password components.
- Updated button states to be disabled when forms are invalid, improving user experience.
- Enhanced UI elements with consistent styling and layout adjustments, including the addition of MotionButtonBase for navigation.
- Improved accessibility and responsiveness of card components.

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

* feat: enhance login component with dynamic provider buttons

- Added MotionButtonBase for improved button animations and interactions.
- Refactored the rendering logic to conditionally display login options based on the presence of credential providers.
- Introduced a new icon mapping for providers to enhance visual representation.
- Improved layout and styling for better user experience during login.

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

* feat: add GitHub provider icon and adjust button margin in login component

- Introduced a GitHub icon to the provider icon map for enhanced visual representation.
- Adjusted the margin of the submit button to improve layout consistency.

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

* chore: update

---------

Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: hyoban <hyoban@users.noreply.github.com>
Co-authored-by: DIYgod <i@diygod.me>
Co-authored-by: Innei <tukon479@gmail.com>
2024-12-16 19:13:46 +08:00
X ffe535d5e7 fix: feed column flickering (#2143)
* fix: feed column flickering

* fix: update
2024-12-16 18:40:37 +08:00
ktKongTong 0505e3df3f fix(header): improve border visibility for meta display (#2138) 2024-12-14 00:36:15 +08:00
Innei d4dd4fb68d feat: integrate react-query for fetching unread feed items by view
- Added useQuery to fetch unread items based on the current view with a 10-minute refetch interval.
- Updated imports to include necessary hooks and actions for managing unread feed state.

Signed-off-by: Innei <tukon479@gmail.com>
2024-12-13 16:19:48 +08:00
Innei 351f34289f fix: update SupportCreator component styles for better layout
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-13 13:26:42 +08:00
Stephen Zhou 84698e139b chore: fix user handle type 2024-12-13 09:43:07 +08:00
Stephen Zhou aeaf79522b fix: update user profile 2024-12-13 09:32:01 +08:00
Innei a10b78a79c feat: optimize action pages
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-12 19:32:57 +08:00
DIYgod e9f7ff3176 feat: reduce the size of the list in feed list 2024-12-12 18:48:35 +08:00
DIYgod 4035a6b7b8 fix: feed column pb in mobile 2024-12-12 18:30:41 +08:00
Innei 96b892923a fix: login override provider icon
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-12 18:00:48 +08:00
Innei cae7fa6715 fix: article render container responsive width
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-12 17:57:36 +08:00
DIYgod 3e9a92d16a feat: bigger font size in mobile 2024-12-12 14:11:04 +08:00
Stephen Zhou 6d9212ef48 feat: action page (#2006) 2024-12-12 11:16:30 +08:00
X 0ae6ec954a fix: discover form button disable state error (#2113) 2024-12-12 11:16:17 +08:00
Innei 0eed6d1b23 fix(video): open entry url directly on mobile
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-11 19:24:47 +08:00
Stephen Zhou 8ce4702df3 fix: remove URL.canParse
close #2103
2024-12-11 15:38:13 +08:00
DIYgod b22f32594c fix: types 2024-12-11 00:16:45 +08:00
Innei 9a84ed40a1 fix: filter no picture breaking logic
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-10 22:22:36 +08:00
Innei 2b93dfd58f fix: grid virtualizer on mobile can't show any items
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-10 22:18:56 +08:00
Innei dac1a47b0e feat: support read indicator and back to top, fixed #2040
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-09 22:25:57 +08:00
Innei 76fc17eddf fix: add entryId to deps, try fix isActive judge
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-09 21:34:14 +08:00
Innei 639b922ec8 feat: add auto-expand setting for long social media entries and remove placeholder component, fixed #2064
- Introduced a new setting to automatically expand long social media entries.
- Removed the ReactVirtuosoItemPlaceholder component, replacing it with null returns for better handling of empty entries.
- Updated relevant settings files and translations for the new feature.

Signed-off-by: Innei <tukon479@gmail.com>
2024-12-09 21:08:37 +08:00
Innei 12bd659458 perf: optimize dnd re-render
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-09 19:51:07 +08:00
LavaandInnei d684e14056 feat: move feed to new category in context menu (#2072)
* feat: move feed to new category in context menu

* chore: update `next.md`

* fix: perf

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: Innei <tukon479@gmail.com>
2024-12-09 17:03:20 +08:00
Lava ab85406d4f fix: handle popstate for navigation in mobile entry content (#2038)
* fix: handle back navigation to pending feeds on mobile while changing orientation

* fix: navigate to incorrect place

* chore: update `next.md`
2024-12-08 17:23:20 +08:00
Innei 2b2d56c746 fix: scrollbar z-index
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-07 17:01:45 +08:00
Jerry Wong 6f7095e9ab feat: add translation for "show more" and update zh-HK file (#2033)
* feat: update zh-HK file

* feat: add translation for "show more"
feat: Improve the zh-hk file
2024-12-07 16:38:25 +08:00