Commit Graph
1044 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
KC 86b57120fc fix(media): adjust inline media size and alignment for better display #2251 (#2254) 2024-12-23 21:34:07 +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
X aab23d3a34 fix(animation): preserve exit transition for smoother animations (#2237) 2024-12-19 13:36:45 +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
Stephen Zhou 14b1aa50b8 chore: no drag for react scan 2024-12-13 17:02:26 +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
Innei 3e2603c3ea refactor: enhance icon transition handling and improve Zustand store proxy functionality
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-13 13:23:25 +08:00
Stephen Zhou dbcd56f468 chore: eslint to check package & only run type-aware rules in CI 2024-12-13 10:51:33 +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 40dc4c6775 chore: toast bg color
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-12 21:17:24 +08:00
XandInnei 008cc98f8a fix: image error ui (#2124)
Co-authored-by: Innei <i@innei.in>
2024-12-12 21:01:21 +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
DIYgod 74ba483b0d fix: values().map is undefined 2024-12-12 18:01:52 +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 7c44d3d3cc chore: react scan style 2024-12-12 11:19:30 +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