Commit Graph
100 Commits
Author SHA1 Message Date
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
Ardeman 5acf3970a3 fix: improve error message handling in login action 2025-02-27 23:10:01 +08:00
Ardeman a15c267eda feat: remove .env file and update .gitignore to exclude it 2025-02-27 22:53:22 +08:00
Ardeman 16a6a14d67 feat: enhance Newsletter component with props 2025-02-27 19:40:31 +08:00
Ardeman f9d861f24d feat: add environment configuration and implement cookie handling for user authentication 2025-02-27 19:37:31 +08:00
Ardeman 9386b8dd69 feat: remove placeholder text from Banner component 2025-02-27 17:59:19 +08:00
Ardeman 581e99c4b3 feat: remove react-query dependency and simplify App component 2025-02-27 16:48:55 +08:00
Ardeman 929f5c91b0 chore: add eslint-import-resolver-typescript to dependencies and update version 2025-02-25 09:47:28 +08:00
Ardeman bf831b9c46 refactor: update ESLint configuration to include prettier and adjust rules 2025-02-25 09:41:47 +08:00
Ardeman 6829bc86fc refactor: update ESLint configuration to include @tanstack/query plugin and rules 2025-02-25 08:56:16 +08:00
Ardeman c1bacacb49 feat: add cookie management and HTTP client for user and admin authentication 2025-02-25 08:51:08 +08:00
Ardeman 0c38a775e3 refactor: move APP import from data to configs for better organization 2025-02-25 06:07:45 +08:00
Ardeman 5227204791 refactor: remove unnecessary size attribute from HeaderSearch input for improved styling 2025-02-25 06:06:01 +08:00
Ardeman cf130a00d9 refactor: update SuccessModal and News context for improved state management and clarity 2025-02-25 06:00:12 +08:00
Ardeman 6b2ba85642 feat: enhance SuccessModal and News context for improved modal management and subscription flow 2025-02-25 05:18:40 +08:00
Ardeman fe9b8bc97a refactor: simplify Carousel component and update news data structure for clarity 2025-02-25 04:48:13 +08:00
Ardeman 2a0b0af45f feat: add @tanstack/react-query, and DataTables packages 2025-02-24 12:27:49 +08:00
Ardeman 8bf7bd812d feat: add @tanstack/react-query and related packages for improved data fetching 2025-02-24 12:15:59 +08:00
Ardeman ca0dfbc5f8 feat: add DoctorIcon component and integrate it into dashboard reports 2025-02-24 09:31:48 +08:00
Ardeman 4d7fa04d91 fix: update GraphIcon fill property to 'none' for better SVG rendering 2025-02-24 08:36:06 +08:00
Ardeman 6082cf0cdb refactor: replace interface with type for component properties and improve code readability 2025-02-24 08:23:22 +08:00
Ardeman 9e6d2fe6c0 feat: add loader to redirect to admin dashboard 2025-02-24 08:17:35 +08:00
Ardeman e11f007eb1 feat: fix amount property typo and format numbers for dashboard reports 2025-02-24 08:04:09 +08:00
Ardeman 2b8d0604e0 feat: refactor components to use named exports for better tree-shaking 2025-02-23 22:10:47 +08:00
Ardeman 4dda852c62 feat: add reusable Input component and integrate it into the login form 2025-02-23 22:08:47 +08:00
Ardeman 4fa3873dda feat: add @hookform/resolvers dependency and update zod version in package.json 2025-02-23 19:47:12 +08:00
Ardeman feff32f588 feat: update social share component, and enhance modal structure 2025-02-23 19:43:45 +08:00