Commit Graph
100 Commits
Author SHA1 Message Date
Ardeman 634c809489 fix: allow end_date to be nullable in user response schema 2025-03-09 09:41:11 +08:00
Ardeman 0da2006e78 refactor: destructure loaderData in multiple components for cleaner code 2025-03-09 09:32:51 +08:00
Ardeman 09e5f84b8b style: update social share button styles for improved UI consistency 2025-03-09 09:09:54 +08:00
Ardeman aad67720c1 fix: correct TODO comment formatting in news detail loader 2025-03-08 17:25:24 +08:00
Ardeman f3be8138c4 feat: add meta title generation for news detail page 2025-03-08 17:24:53 +08:00
Ardeman 6e858f1860 feat: add reading time calculation to news detail page 2025-03-08 15:34:38 +08:00
Ardeman be63337024 fix: correct button label and table title in TagsPage component 2025-03-08 15:25:20 +08:00
Ardeman 4b61fd9501 feat: enhance navbar and news detail page with improved profile picture handling 2025-03-08 15:23:22 +08:00
Ardeman 609866beef feat: update news detail loader to use route parameters and fix typo in TODO comment 2025-03-08 15:03:45 +08:00
Ardeman 1c6bf68b1e feat: remove unused breadcrumb and news detail data components, update TNewsDetail type definition 2025-03-08 15:02:11 +08:00
Ardeman 87156e93ee feat: sort categories by sequence and update category description handling in news pages 2025-03-08 02:14:36 +08:00
Ardeman 40a3553f9d feat: implement category update functionality with validation and new fields in form 2025-03-08 01:58:59 +08:00
Ardeman c975169f05 feat: refactor category update functionality 2025-03-08 01:32:25 +08:00
Ardeman 2c64d430bd feat: refactor import paths for content and category schemas to improve clarity and organization 2025-03-08 00:47:33 +08:00
Ardeman 3a15c0d945 feat: enhance category schema with sequence and description fields, and update dashboard display 2025-03-08 00:45:05 +08:00
Ardeman a7bae3ea43 feat: remove unused admin dashboard components and icons for cleanup 2025-03-07 17:31:30 +08:00
Ardeman 40a3f33ea3 feat: update category menu and dashboard titles for consistency and clarity 2025-03-07 15:04:22 +08:00
Ardeman 72e2dac328 feat: refactor category routes and components for improved organization and clarity 2025-03-07 14:58:35 +08:00
Ardeman 097268647a Merge branch 'feature/slicing' 2025-03-07 14:46:05 +08:00
Ardeman aa660f4f5f feat: sort news data by publication date and update column title for clarity 2025-03-07 14:43:12 +08:00
Ardeman d885b3cf26 feat: implement update news functionality with API integration and form handling 2025-03-07 14:40:04 +08:00
Ardeman e0b68611bd feat: update Titles in ContentsFormPage and ContentsPage for better context 2025-03-07 13:53:07 +08:00
Ardeman 5c716d7210 feat: integrate news data fetching by slug and update ContentsFormPage to utilize fetched data 2025-03-07 13:50:16 +08:00
Ardeman 2c05c543ce feat: remove DefaultTextEditor and UpdateContentsPage, replace with ContentsFormPage 2025-03-07 12:42:45 +08:00
Ardeman 18098d63ba feat: add news and dashboard content routes with corresponding layouts 2025-03-07 12:11:48 +08:00
Ardeman afebd8b335 feat: create ContentsFormPage for content creation and update related imports 2025-03-07 11:10:53 +08:00
Ardeman 75e548dc83 feat: update Switch component to support customizable labels and adjust related UI elements 2025-03-07 10:30:46 +08:00
Ardeman d765d92df7 feat: refactor API response schemas for improve consistency 2025-03-07 09:04:11 +08:00
Ardeman 7163266100 feat: update create-category API to use consistent parameter type and improve type definitions 2025-03-07 08:53:55 +08:00
Ardeman 7ce014e70e Merge commit 'eac8e0cb43334053e5d9862f9477ba9d52df3240' 2025-03-07 08:50:42 +08:00
Ardeman 1bb63bec8e feat: refactor news and category schemas, update API response handling, and improve date formatting 2025-03-07 08:50:04 +08:00
Ardeman d5c77dc13b feat: enhance news and user schemas with author and subscription details 2025-03-06 18:46:57 +08:00
Ardeman 57a20aa048 style: update premium and normal status indicators for improved UI consistency 2025-03-06 09:39:40 +08:00
Ardeman 703e347830 feat: implement news fetching API and integrate with dashboard contents 2025-03-06 09:30:53 +08:00
Ardeman d27c068f39 style: update class names for improved consistency in text editor and switch components 2025-03-06 09:01:26 +08:00
Ardeman 32b435d762 refactor: remove dark mode functionality from text editor components 2025-03-06 08:56:03 +08:00
Ardeman 5cf6eb191d fix: update validation logic to ensure category selection is not empty 2025-03-06 08:47:21 +08:00
Ardeman a7c5da8d9c style: update button and switch components for improved UI consistency 2025-03-06 08:45:24 +08:00
Ardeman 95565b5313 refactor: remove Select component from UI library 2025-03-06 08:20:39 +08:00
Ardeman d4d9861727 feat: add Switch component for premium content toggle in CreateContentsPage 2025-03-06 08:18:36 +08:00
Ardeman 8f8fb6b97c feat: add Save button to CreateContentsPage for improved user interaction 2025-03-06 05:51:03 +08:00
Ardeman c6149f1bd5 fix: update createNewsRequest to use category and tag IDs instead of codes 2025-03-06 05:49:49 +08:00
Ardeman 414806734d feat: implement createNews API and integrate with content creation flow 2025-03-06 05:46:25 +08:00
Ardeman 894698c5d6 feat: enhance TextEditor and Input components with improved styling and error handling 2025-03-06 03:53:15 +08:00
Ardeman 9117a99cc3 feat: add TextEditor component 2025-03-05 23:39:09 +08:00
Ardeman a6e6e10c69 fix: simplify path extraction logic in Sidebar component 2025-03-05 22:39:00 +08:00
Ardeman 9dd7e798f7 feat: refactor sidebar component to use extracted path for active link styling 2025-03-05 22:36:34 +08:00
Ardeman 1a1d8cc209 feat: implement getTags API and integrate with content creation form 2025-03-05 17:57:52 +08:00
Ardeman 1758b7837e fix: update variable names in Combobox component for clarity 2025-03-04 12:03:02 +08:00
Ardeman dc794a29d3 feat: enhance layout and button functionality in subscriptions page 2025-03-04 09:53:13 +08:00
Ardeman 6d8e352ffc feat: refactor login handling to use staff-login page and update related imports 2025-03-04 09:44:09 +08:00
Ardeman 8aeb7a3197 feat: replace Select component with Combobox for subscription selection and update validation schema 2025-03-04 09:00:10 +08:00
Ardeman 78287cc6c5 feat: add Combobox component for subscription selection and integrate with form validation 2025-03-04 08:55:01 +08:00
Ardeman c20022f58c Merge commit '90d13fe3422986427b6727428e7401e8880c25a0' 2025-03-04 07:06:45 +08:00
Ardeman 7c244e256f feat: remove NotificationIcon from admin navbar and add @heroicons/react dependency 2025-03-04 05:49:00 +08:00
Ardeman f4e83f7eac feat: improved padding on modal components and implement logout in mobile menu 2025-03-04 03:47:54 +08:00
Ardeman a9b9b76ef2 fix: correct app description text and adjust header styling for better visibility 2025-03-04 03:41:02 +08:00
Ardeman 256c07a2b9 feat: update admin login page to redirect to home and remove registration link 2025-03-04 03:35:14 +08:00
Ardeman 5f5a0dff31 feat: update admin navbar to display staff profile information and refactor loader data 2025-03-03 19:10:50 +08:00
Ardeman 8f5f1bc552 feat: implement logout functionality in admin navbar and update sidebar links 2025-03-03 19:03:04 +08:00
Ardeman 1bebe61634 feat: enhance admin login flow with conditional redirects based on authentication status 2025-03-03 17:50:10 +08:00
Ardeman 5007b8d4db feat: update cookie paths for staff authentication and implement redirect logic in admin login 2025-03-03 17:48:24 +08:00
Ardeman 599a92fba3 feat: update staff API schema and refactor admin login paths 2025-03-03 17:33:52 +08:00
Ardeman 459e25c010 feat: refactor admin authentication to staff authentication with updated cookie handling 2025-03-03 16:47:59 +08:00
Ardeman 4f4e94389e feat: add admin login page and authentication logic with form handling 2025-03-03 16:33:30 +08:00
Ardeman acd3e36b31 Merge commit 'b42aa6c960d7adfc435a7386ae0d983df1b5739c' 2025-03-03 15:42:59 +08:00
Ardeman ba19a4dc5b feat: add staff and user authentication APIs with request handling 2025-03-03 15:42:12 +08:00
Ardeman 1b4ff4c3e7 feat: refactor user handling in news components and add premium attribute logic 2025-03-03 08:59:06 +08:00
Ardeman a594227026 feat: update subscription handling in context and components 2025-03-03 08:41:38 +08:00
Ardeman 722966f50e feat: implement subscription form with validation and fetcher integration 2025-03-03 05:16:31 +08:00
Ardeman 0a6f1a2d6f refactor: replace userToken with userData in SuccessModal and HeaderTop components 2025-03-02 16:36:03 +08:00
Ardeman a53f754ec5 refactor: update onClick type in getPremiumAttribute to MouseEventHandler 2025-03-02 16:19:51 +08:00
Ardeman cd85f660b7 refactor: simplify premium button logic by creating getPremiumAttribute utility 2025-03-02 16:15:24 +08:00
Ardeman b0f96c33a5 feat: enhance SuccessModal and conditional rendering for login and subscription options 2025-03-02 15:46:44 +08:00
Ardeman 82c0894ccd refactor: change import to type import for loader in header-top component 2025-03-02 15:11:21 +08:00
Ardeman 20fa80370b refactor: replace hardcoded descriptions with a constant for consistency 2025-03-02 12:37:19 +08:00
Ardeman 3937cc673a refactor: remove Carousel and TableComponent for code cleanup 2025-03-02 12:22:30 +08:00
Ardeman 9980cb90df feat: refactor subscription handling in registration form and header component 2025-03-02 12:21:18 +08:00
Ardeman 4aa6c8d0d4 refactor: remove unused news data and simplify NewsContextProperties type 2025-03-02 12:09:48 +08:00
Ardeman 25e136ba72 feat: implement category fetching and integrate into header menus 2025-03-02 12:06:30 +08:00
Ardeman cfc864cb43 fix: update subscription status check to use subscribe_plan_code instead of subscribe_status 2025-03-02 10:18:07 +08:00
Ardeman b58c57a6af feat: rename subscription field to subscribe_plan in registration payload and form 2025-03-02 09:17:28 +08:00
Ardeman e76b89277c Merge commit '06c8fb85356ccad9a7de745e2648e365af1a8da5' 2025-03-02 01:36:43 +08:00
Ardeman 02e2ed3f52 feat: transform registration payload to include subscription plan ID and update select options 2025-03-02 01:36:19 +08:00
Ardeman adba58780a feat: add subscription selection to registration form and implement API for fetching subscriptions 2025-03-02 01:20:18 +08:00
Ardeman 1e876ae04f feat: refactor Button and Input components to use Headless UI 2025-03-01 16:14:03 +08:00
Ardeman 9ef33d72d3 feat: refactor Input component to use Headless UI and add disabled prop 2025-03-01 06:32:20 +08:00
Ardeman 42eb159a52 feat: implement user registration functionality with form validation and API integration 2025-03-01 01:00:52 +08:00
Ardeman fd745c20a0 feat: conditionally open subscription modal based on user subscribe status in FormLogin 2025-03-01 00:07:57 +08:00
Ardeman 0577975846 feat: implement HttpServer for API requests and add getUser function for user profile retrieval 2025-02-28 23:56:47 +08:00
Ardeman 9bc7fbb902 Merge commit '9b13733205cf48354c86997c188063706657962a' 2025-02-28 22:58:55 +08:00
Ardeman 13f44f336d feat: update News context to use consistent setter naming and refactor FormLogin to utilize context 2025-02-28 22:50:58 +08:00
Ardeman 3f9bfded80 feat: update admin routes and cookie paths to use '/lg-admin' prefix 2025-02-28 12:19:05 +08:00
Ardeman 5f1fd8b1a2 feat: implement admin authentication and dashboard layout with routing 2025-02-28 12:05:20 +08:00
Ardeman 23e3493a3f feat: restructure routing and layouts for admin and news sections, update cookie paths 2025-02-28 11:49:51 +08:00
Ardeman 4b8fc0721e feat: enhance Input component with placeholder support and styling adjustments 2025-02-28 09:23:36 +08:00
Ardeman f66ddde6f0 feat: switch from useFormContext to useRemixFormContext in Input component 2025-02-28 09:12:38 +08:00
Ardeman 0b6b43a951 feat: enhance login form with error handling and disable state 2025-02-28 09:10:45 +08:00
Ardeman e546ebd3dd docs: update README to include environment variable setup instructions 2025-02-27 23:54:53 +08:00
Ardeman 7db38d3b67 feat: implement logout action 2025-02-27 23:50:46 +08:00