diff --git a/002_source/cms/_AI_WORKSPACE/001_guideline/index.md b/002_source/cms/_AI_WORKSPACE/001_guideline/index.md deleted file mode 100644 index d79e657..0000000 --- a/002_source/cms/_AI_WORKSPACE/001_guideline/index.md +++ /dev/null @@ -1,15 +0,0 @@ -# guideline - -- please divide the problem into small parts -- if you found youself cannot understand the problem, please stop and ask how to do -- if you found youself cannot solve the problem, plesae stop and ask how to do -- review the whole solution before you reply to user -- if code syntax is already there, do follow (e.g. naming convention, syntax) the existing code - -- example for page can be found in `./src/app/_helloworld/page.tsx` -- example for component can be found in `./src/components/_helloworld/index.tsx` - -- no need to explain the reason until you are told to do so -- no need to show me the code change, at the end just simple summary in point form is ok - -Thanks diff --git a/002_source/cms/_AI_WORKSPACE/code/001_INIT.md b/002_source/cms/_AI_WORKSPACE/code/001_INIT.md deleted file mode 100644 index d794e3d..0000000 --- a/002_source/cms/_AI_WORKSPACE/code/001_INIT.md +++ /dev/null @@ -1,44 +0,0 @@ -# AI GUIDELINE - -## getting started - -Imagine there is a: - -1. developer (provide the modification) -2. QA engineer (provide the feedback, and testing) -3. software engineer -4. technical writer - -they will: - -- conclude and integrate the ideas from developer and QA engineer -- make decision to modify the code accordingly. - -## project background and initial setup - -- No need to reply me what you are going on and your digest in this phase. - Just reply me "OK" when done - -- base_dir=`/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project` - -- `schema.dbml` - - - read `/001_documentation/Requirements/REQ0006/schema.dbml` - this is file in `dbml` format stating the main database structure - -- `schema.json` - - - read `/002_source/cms/src/db/schema.json` - this is the file of current pocketbase schema - -- read `/002_source/cms/src/constants.ts` - this is the content of `@/constants` - -- look into the md files in folder `/002_source/cms/_AI_WORKSPACE/001_guideline` - -- directory may contain `repomix-output.xml` file, that is a simple summary of all files inside the directory - -- if the directory user provided contins `_GUIDELINES.md`, please read the file - -- read the files, remember and link up the ideas in file stated above, - i will tell them the task afterwards diff --git a/002_source/cms/_AI_WORKSPACE/code/002_nextjs.mdc b/002_source/cms/_AI_WORKSPACE/code/002_nextjs.mdc deleted file mode 100644 index ae7f4e0..0000000 --- a/002_source/cms/_AI_WORKSPACE/code/002_nextjs.mdc +++ /dev/null @@ -1,52 +0,0 @@ ---- -description: Next.js with TypeScript and Tailwind UI best practices -globs: **/*.tsx, **/*.ts, src/**/*.ts, src/**/*.tsx ---- - -# Next.js Best Practices - -## Project Structure -- Use the App Router directory structure -- Place components in `app` directory for route-specific components -- Place shared components in `components` directory -- Place utilities and helpers in `lib` directory -- Use lowercase with dashes for directories (e.g., `components/auth-wizard`) - -## Components -- Use Server Components by default -- Mark client components explicitly with 'use client' -- Wrap client components in Suspense with fallback -- Use dynamic loading for non-critical components -- Implement proper error boundaries -- Place static content and interfaces at file end - -## Performance -- Optimize images: Use WebP format, size data, lazy loading -- Minimize use of 'useEffect' and 'setState' -- Favor Server Components (RSC) where possible -- Use dynamic loading for non-critical components -- Implement proper caching strategies - -## Data Fetching -- Use Server Components for data fetching when possible -- Implement proper error handling for data fetching -- Use appropriate caching strategies -- Handle loading and error states appropriately - -## Routing -- Use the App Router conventions -- Implement proper loading and error states for routes -- Use dynamic routes appropriately -- Handle parallel routes when needed - -## Forms and Validation -- Use Zod for form validation -- Implement proper server-side validation -- Handle form errors appropriately -- Show loading states during form submission - -## State Management -- Minimize client-side state -- Use React Context sparingly -- Prefer server state when possible -- Implement proper loading states \ No newline at end of file diff --git a/002_source/cms/_AI_WORKSPACE/code/002_update_app_page.md b/002_source/cms/_AI_WORKSPACE/code/002_update_app_page.md deleted file mode 100644 index a0e834d..0000000 --- a/002_source/cms/_AI_WORKSPACE/code/002_update_app_page.md +++ /dev/null @@ -1,20 +0,0 @@ -# task - -update app page to cover `vocabulary` - -## steps - -1. read `tsx` from folder: `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/app/dashboard/vocabularies.draft` -1. fix the paths, variable, function names, class etc from `lesson-categories` to `vocabularies`. - -thanks - -## FAQ - -1. 在 `constants.ts` 中是否已定义 `COL_VOCABULARIES` 常量?没有,需要先定义它。 -2. Vocabulary 相关的类型定义在哪里?是在现有文件中还是需要新建? 需要新建 -3. 是否需要保留原始 `lessonCategories` 驱动文件? 不需要 - -- `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/app/dashboard/vocabularies.draft` - -- `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/vocabulary.draft` diff --git a/002_source/cms/_AI_WORKSPACE/code/003_typescript.mdc b/002_source/cms/_AI_WORKSPACE/code/003_typescript.mdc deleted file mode 100644 index b3919bd..0000000 --- a/002_source/cms/_AI_WORKSPACE/code/003_typescript.mdc +++ /dev/null @@ -1,57 +0,0 @@ ---- -description: TypeScript coding standards and best practices for modern web development -globs: **/*.ts, **/*.tsx, **/*.d.ts ---- - -# TypeScript Best Practices - -## Type System -- Prefer interfaces over types for object definitions -- Use type for unions, intersections, and mapped types -- Avoid using `any`, prefer `unknown` for unknown types -- Use strict TypeScript configuration -- Leverage TypeScript's built-in utility types -- Use generics for reusable type patterns - -## Naming Conventions -- Use PascalCase for type names and interfaces -- Use camelCase for variables and functions -- Use UPPER_CASE for constants -- Use descriptive names with auxiliary verbs (e.g., isLoading, hasError) -- Prefix interfaces for React props with 'Props' (e.g., ButtonProps) - -## Code Organization -- Keep type definitions close to where they're used -- Export types and interfaces from dedicated type files when shared -- Use barrel exports (index.ts) for organizing exports -- Place shared types in a `types` directory -- Co-locate component props with their components - -## Functions -- Use explicit return types for public functions -- Use arrow functions for callbacks and methods -- Implement proper error handling with custom error types -- Use function overloads for complex type scenarios -- Prefer async/await over Promises - -## Best Practices -- Enable strict mode in tsconfig.json -- Use readonly for immutable properties -- Leverage discriminated unions for type safety -- Use type guards for runtime type checking -- Implement proper null checking -- Avoid type assertions unless necessary - -## Error Handling -- Create custom error types for domain-specific errors -- Use Result types for operations that can fail -- Implement proper error boundaries -- Use try-catch blocks with typed catch clauses -- Handle Promise rejections properly - -## Patterns -- Use the Builder pattern for complex object creation -- Implement the Repository pattern for data access -- Use the Factory pattern for object creation -- Leverage dependency injection -- Use the Module pattern for encapsulation \ No newline at end of file diff --git a/002_source/cms/_AI_WORKSPACE/code/004-update-constants-file.md b/002_source/cms/_AI_WORKSPACE/code/004-update-constants-file.md deleted file mode 100644 index b624bdf..0000000 --- a/002_source/cms/_AI_WORKSPACE/code/004-update-constants-file.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -tags: update-constants-file ---- - -# task - -update constants file - -## steps - -- have a look to `_constants.ts` files in slibing directory -- get the convention -- update `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/vocabulary/_constants.ts` according to dbml thanks diff --git a/002_source/cms/_AI_WORKSPACE/code/005_review-function-name.md b/002_source/cms/_AI_WORKSPACE/code/005_review-function-name.md deleted file mode 100644 index 69f8b89..0000000 --- a/002_source/cms/_AI_WORKSPACE/code/005_review-function-name.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -tags: review-function-names ---- - -# task - -review function names - -## steps - -- have a look to `tsx` files in slibing directory `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/Vocabularies` -- get the convention -- update the function name of `tsx` file in `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/Vocabularies` diff --git a/002_source/cms/_AI_WORKSPACE/db/001_INIT.md b/002_source/cms/_AI_WORKSPACE/db/001_INIT.md deleted file mode 100644 index 9fcaa0a..0000000 --- a/002_source/cms/_AI_WORKSPACE/db/001_INIT.md +++ /dev/null @@ -1,49 +0,0 @@ -# AI GUIDELINE - -## getting started - -Imagine there is a: - -1. developer (provide the modification) -2. QA engineer (provide the feedback, and testing) -3. software engineer -4. technical writer - -they will: - -- conclude and integrate the ideas from developer and QA engineer -- make decision to modify the code accordingly. - -## project background and initial setup - -- **IMPORTANT**: No need to reply me what you are going on and your digest in this phase. - No need to show me your code plan - Just reply me "OK" when done - -- base_dir=`/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project` - -- `schema.dbml` - - - read `/001_documentation/Requirements/REQ0006/schema.dbml` - this is file in `dbml` format stating the main database structure - -- `schema.json` - - - read `/002_source/cms/src/db/schema.json` - this is the file of current pocketbase schema - -- read `/002_source/cms/src/constants.ts` - this is the content of `@/constants` - -- look into the md files in folder `/002_source/cms/_AI_WORKSPACE/001_guideline` - -- if the directory user provided contins `_GUIDELINES.md`, please read the file - -- read the files, remember and link up the ideas in file stated above, i will tell them the task afterwards - -- please review at least 3 times after you modified the code - -## frameworks documentation and samples - -- `MUI` - - `/002_source/cms/src/components/widgets/forms` contains sample forms, diff --git a/002_source/cms/_AI_WORKSPACE/db/002_PROMPT.md b/002_source/cms/_AI_WORKSPACE/db/002_PROMPT.md deleted file mode 100644 index 3c94528..0000000 --- a/002_source/cms/_AI_WORKSPACE/db/002_PROMPT.md +++ /dev/null @@ -1,22 +0,0 @@ -Hi, i need your help. - -i am working on a nextjs react typescript project - -please read the code in directory `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/QuizLPQuestions` (denoted `QuizLPQuestions`) - -i want you to: - -- list files from directory `QuizLPQuestions` and use them as template -- understand the relations (e.g. `lp` -> `lp_categories`, `lp` -> `COL_QUIZ_LP_CATEGORIES`) -- review if any remaining `lp` or `mf` exist in `cr` directory and please help to do replace it to `cr`. (e.g. `COL_QUIZ_LP_CATEGORIES` -> `COL_QUIZ_CR_CATEGORIES` ) -- please create if you find any missing files/codes/constants -- using template, create the similar code for `cr` named `QuizCRCategories` - -thank you - ---- - -- I proofed the code is working already, what you need to do is refactoring of the `variables`, `functions`, `classes`, `constants` (`lp` -> `cr`) -- compare the difference between `lp` and `mf`, -- remember the differences and -- draft the new type `cr` (e.g. modify the `import` locations, variables, functions, classes, constants name etc.) diff --git a/002_source/cms/_AI_WORKSPACE/db/002_PROMPT_categories.md b/002_source/cms/_AI_WORKSPACE/db/002_PROMPT_categories.md deleted file mode 100644 index 44b61a5..0000000 --- a/002_source/cms/_AI_WORKSPACE/db/002_PROMPT_categories.md +++ /dev/null @@ -1,22 +0,0 @@ -Hi, i need your help. - -i am working on a nextjs react typescript project - -please read the code in directory `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/QuizLPCategories` (denoted `QuizLPCategories`) - -i want you to: - -- list files from directory `QuizLPCategories` and use them as template -- understand the relations (e.g. `lp` -> `lp_categories`, `lp` -> `COL_QUIZ_LP_CATEGORIES`) -- review if any remaining `lp` or `mf` exist in `cr` directory and please help to do replace it to `cr`. (e.g. `COL_QUIZ_LP_CATEGORIES` -> `COL_QUIZ_CR_CATEGORIES` ) -- please create if you find any missing files/codes/constants -- using template, create the similar code for `cr` named `QuizCRCategories` - -thank you - ---- - -- I proofed the code is working already, what you need to do is refactoring of the `variables`, `functions`, `classes`, `constants` (`lp` -> `cr`) -- compare the difference between `lp` and `mf`, -- remember the differences and -- draft the new type `cr` (e.g. modify the `import` locations, variables, functions, classes, constants name etc.) diff --git a/002_source/cms/_AI_WORKSPACE/db/002_PROMPT_questions.md b/002_source/cms/_AI_WORKSPACE/db/002_PROMPT_questions.md deleted file mode 100644 index 0bb7a43..0000000 --- a/002_source/cms/_AI_WORKSPACE/db/002_PROMPT_questions.md +++ /dev/null @@ -1,22 +0,0 @@ -Hi, i need your help. - -i am working on a nextjs react typescript project - -please read the code in directory `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/QuizLPQuestions` (denoted `QuizLPQuestions`) - -i want you to: - -- list files from directory `QuizLPQuestions` and use them as template -- understand the relations (e.g. `lp` -> `lp_Questions`, `lp` -> `COL_QUIZ_LP_QUESTIONS`) -- review if any remaining `lp` or `mf` exist in `cr` directory and please help to do replace it to `cr`. (e.g. `COL_QUIZ_LP_QUESTIONS` -> `COL_QUIZ_CR_Questions` ) -- please create if you find any missing files/codes/constants -- using template, create the similar code for `customer` named `Customers` - -thank you - ---- - -- I proofed the code is working already, what you need to do is refactoring of the `variables`, `functions`, `classes`, `constants` (`lp` -> `cr`) -- compare the difference between `lp` and `mf`, -- remember the differences and -- draft the new type `cr` (e.g. modify the `import` locations, variables, functions, classes, constants name etc.) diff --git a/002_source/cms/_AI_WORKSPACE/db/003_update_dbml_from_schema.md b/002_source/cms/_AI_WORKSPACE/db/003_update_dbml_from_schema.md deleted file mode 100644 index 798c81e..0000000 --- a/002_source/cms/_AI_WORKSPACE/db/003_update_dbml_from_schema.md +++ /dev/null @@ -1,27 +0,0 @@ -Hi, i need your help. - -## task - -i am working on a `dbml` file -i got a `schema.json` which is exported from pocketbase -and i want to update it to my current `dbml` file (one way process for documentation usage) - -## Rules - -- the collection from `json` file started with `_` can be ignored. they are system collection and should not appear in `dbml` -- one collection from `json` file mapped with one table in `dbml` file -- the `presentable` field from `json` file should be ignored. -- the `id` of collection in `json` file should be jod down in the comment of `dbml` file as an reference. - -## information - -json file: `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/schema.json` -dbml file: `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/001_documentation/Requirements/REQ0006/schema.dbml` - -## FAQ - -1. 对于json中有但dbml中没有的表,应该如何处理? 添加为新表 -1. 是否需要保留dbml文件中现有的注释和关系定义? 完全保留 -1. 字段类型映射是否有特殊规则? 沒有 - -thanks diff --git a/002_source/cms/_AI_WORKSPACE/db/004_clone_db_driver.md b/002_source/cms/_AI_WORKSPACE/db/004_clone_db_driver.md deleted file mode 100644 index 2dcc01f..0000000 --- a/002_source/cms/_AI_WORKSPACE/db/004_clone_db_driver.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -tags: db, driver ---- - -# clone db driver - -please understand the tsx files in folder -`/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/vocabularies.draft` - -change all occurrence of `lessonCategories` to `vocabularies` thanks. - -## FAQ - -1. 在 `constants.ts` 中是否已定义 `COL_VOCABULARIES` 常量?没有,需要先定义它。 -2. Vocabulary 相关的类型定义在哪里?是在现有文件中还是需要新建? 需要新建 -3. 是否需要保留原始 `lessonCategories` 驱动文件? 不需要 - -请确认这些信息,以便我制定完整的修改方案。 - -当前已确认需要修改的内容包括: - -函数名中的customer → notification -COL_CUSTOMERS → COL_NOTIFICATIONS -相关类型引用 -注释中的customer → notification - ---- - - - -`/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/Notifications/type.d.ts` the fields is currently wrong, please help to update thanks. - -update the `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/Notifications/EmptyNotification.ts` as well thanks. - ---- - -please draft `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/Notifications/GetNotificationByUserId.tsx` by reference `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/Notifications/GetById.tsx` diff --git a/002_source/cms/_AI_WORKSPACE/db/009_draft_db_drivers.md b/002_source/cms/_AI_WORKSPACE/db/009_draft_db_drivers.md deleted file mode 100644 index df19de6..0000000 --- a/002_source/cms/_AI_WORKSPACE/db/009_draft_db_drivers.md +++ /dev/null @@ -1,18 +0,0 @@ -# task - -update `dbml` from `schema.json` - -## things to note - -1. please skip `presentable` properties from `schema.json` - -## steps - -1. read file `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/schema.json`. this is the export from `pocketbase`. -1. read file `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/001_documentation/Requirements/REQ0006/schema.dbml`. this is file written in dbml format. -1. currently the collection in `schama.json` is mapped to table in `schema.dbml` -1. compare the `schema.json` and `schema.dbml`, remember the differences -1. you may found some comment already exist in `schema.dbml`, please keep them -1. while keeping `schema.json` content unchanged. write file to `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/001_documentation/Requirements/REQ0006/schema.dbml` content based on `schema.json`. - -thanks. diff --git a/002_source/cms/_AI_WORKSPACE/db/010_extend_function_by_clone_and_updating_exist_code.md.md b/002_source/cms/_AI_WORKSPACE/db/010_extend_function_by_clone_and_updating_exist_code.md.md deleted file mode 100644 index 6a3a3ef..0000000 --- a/002_source/cms/_AI_WORKSPACE/db/010_extend_function_by_clone_and_updating_exist_code.md.md +++ /dev/null @@ -1,10 +0,0 @@ -# task - -extend function by clone and updating exist code - -## steps - -please read file -`/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/QuizListenings/GetAllCount.tsx` - -duplicate it to cover `GetActiveCount`, `GetPendingCount` and `GetBlockedCount`. create them in `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/Customers` directory thanks. diff --git a/002_source/cms/_AI_WORKSPACE/db/Code_XE50rE8nMK.mp4 b/002_source/cms/_AI_WORKSPACE/db/Code_XE50rE8nMK.mp4 deleted file mode 100644 index 10e2f17..0000000 Binary files a/002_source/cms/_AI_WORKSPACE/db/Code_XE50rE8nMK.mp4 and /dev/null differ diff --git a/002_source/cms/_AI_WORKSPACE/db/DB_AI_GUIDELINE.MD b/002_source/cms/_AI_WORKSPACE/db/DB_AI_GUIDELINE.MD deleted file mode 100644 index b2a12a6..0000000 --- a/002_source/cms/_AI_WORKSPACE/db/DB_AI_GUIDELINE.MD +++ /dev/null @@ -1,108 +0,0 @@ -# AI GUIDELINE - -## getting started - -Imagine there is a software developer and a QA engineer to solve the problems together - -They will: - -no need to reply me what you are going on and your digest in this phase. -just reply me "OK" when done - -base_dir=`/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project` - -- read `/001_documentation/Requirements/REQ0006/schema.dbml` -this is file in dbml syntax state the main database - -- read `/002_source/cms/src/db/schema.json` -this is the file of live pocketbase schema output - -- read `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/constants.ts` -this is the content of `@/constants` - -- look into the md files in folder `/002_source/cms/_AI_GUIDELINE` - -- read, remember and link up the ideas in file stated above, -i will tell them the task afterwards - ---- - -The software engineer will provide solutions, -while QA engineer will feedback the opinion. - -this is now not in debug phase, -so, no need to reply me what they are going on or their insight throught the prompt. -just reply me "OK" when done - ---- - -clone `GetVisibleCount.tsx` and `GetHiddenCount.tsx` from `LessonTypes` to `LessonCategories` and update it - -please draft `GetHiddenCount.tsx` for COL_LESSON_TYPES and `status = hidden` - -well done !, please proceed to another request - -working directory: `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db` - -according information from `schema.json`, get the collection of `Students` - -pleaes clone the `tsx` files from `LessonTypes` and `LessonCategories` to `Students` and update the content - -when you draft coding, review file and append with `.tsx.draft` - ---- - -- this is part of react typescript project, with pocketbase -- `schema.dbml`, describe the collections(tables) -- folder `LessonCategories`, the correct references -- folder `LessonTypes`, the correct references -- you can find the `schema.dbml` and schema information from `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/001_documentation/Requirements/REQ0006` -- do not read root directory, assume it is a fresh copy of nextjs project is ok - -## instruction - -- break the questions into smaller parts -- review file append with `.draft`, see if the content aligned with the correct references -- read and understand `dbml` file -- lookup the every folder - -## tasks - -Thanks - - - ---- - - -please take a look in `schema.dbml` and `schema.json`, -associate the collection from json file to the table in dbml file - -please modify the `schema.dbml` to align with `schema.json` - -to the collection `QuizLPCategories` align the dbml file in the previous prompt - - ---- - -please revise - -please revise -`/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/types/LpCategory.tsx` `interface LpCategory` - -to the collection `QuizLPCategories` align the dbml file in the previous prompt - - -please modify `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/lp_categories/_constants.tsx` - -to follow the type definition in `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/types/LpCategory.tsx`, the constant `defaultLpCategory` - ---- - -the constants file (`@/constants`) was `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/constants.ts` - -please help to fix the `tsx` files in folder `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/QuizMFCategories`, -the `COL` constants is wrongly used, it should refer to `COL_QUIZ_MF_CATEGORIES`. thanks - - -please update the `COL_XXXX` TO COL_MF_CATEGORIES diff --git a/002_source/cms/_AI_WORKSPACE/db/DB_PROMPT.MD b/002_source/cms/_AI_WORKSPACE/db/DB_PROMPT.MD deleted file mode 100644 index ba93847..0000000 --- a/002_source/cms/_AI_WORKSPACE/db/DB_PROMPT.MD +++ /dev/null @@ -1,66 +0,0 @@ -The software engineer will provide solutions, -while QA engineer will feedback the opinion. - -this is now not in debug phase, -so, no need to reply me what they are going on or their insight throught the prompt. -just reply me "OK" when done - ---- - -clone `GetVisibleCount.tsx` and `GetHiddenCount.tsx` from `LessonTypes` to `LessonCategories` and update it - -please draft `GetHiddenCount.tsx` for COL_LESSON_TYPES and `status = hidden` - -well done !, please proceed to another request - -working directory: `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db` - -according information from `schema.json`, get the collection of `Students` - -pleaes clone the `tsx` files from `LessonTypes` and `LessonCategories` to `Students` and update the content - -when you draft coding, review file and append with `.tsx.draft` - ---- - -- this is part of react typescript project, with pocketbase -- `schema.dbml`, describe the collections(tables) -- folder `LessonCategories`, the correct references -- folder `LessonTypes`, the correct references -- you can find the `schema.dbml` and schema information from `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/001_documentation/Requirements/REQ0006` -- do not read root directory, assume it is a fresh copy of nextjs project is ok - -## instruction - -- break the questions into smaller parts -- review file append with `.draft`, see if the content aligned with the correct references -- read and understand `dbml` file -- lookup the every folder - -## tasks - -Thanks - ---- - ---- - -please revise - -please revise -`/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/types/LpCategory.tsx` `interface LpCategory` - -to the collection `QuizLPCategories` align the dbml file in the previous prompt - -please modify `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/lp_categories/_constants.tsx` - -to follow the type definition in `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/types/LpCategory.tsx`, the constant `defaultLpCategory` - ---- - -the constants file (`@/constants`) was `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/constants.ts` - -please help to fix the `tsx` files in folder `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/QuizMFCategories`, -the `COL` constants is wrongly used, it should refer to `COL_QUIZ_MF_CATEGORIES`. thanks - -please update the `COL_XXXX` TO COL_MF_CATEGORIES diff --git a/002_source/cms/_AI_WORKSPACE/get_summary/001_INIT.md b/002_source/cms/_AI_WORKSPACE/get_summary/001_INIT.md deleted file mode 100644 index 469529a..0000000 --- a/002_source/cms/_AI_WORKSPACE/get_summary/001_INIT.md +++ /dev/null @@ -1,38 +0,0 @@ -# AI GUIDELINE - -## getting started - -Imagine there is a - -1. software developer and a -2. QA engineer -3. technical writer - -to solve the problems together - -They will: - -no need to reply me what you are going on and your digest in this phase. -just reply me "OK" when done - -base_dir=`/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project` - -- `schema.dbml` - - - read `/001_documentation/Requirements/REQ0006/schema.dbml` - this is file in `dbml` format stating the main database structure - -- `schema.json` - - - read `/002_source/cms/src/db/schema.json` - this is the file of current pocketbase schema - -- read `/002_source/cms/src/constants.ts` - this is the content of `@/constants` - -- look into the md files in folder `/002_source/cms/_AI_WORKSPACE/001_guideline` - -- directory may contain `repomix-output.xml` file, that is a simple summary of all files inside the directory - -- read, remember and link up the ideas in file stated above, - i will tell them the task afterwards diff --git a/002_source/cms/_AI_WORKSPACE/get_summary/002_PROMPT.md b/002_source/cms/_AI_WORKSPACE/get_summary/002_PROMPT.md deleted file mode 100644 index b48bcc3..0000000 --- a/002_source/cms/_AI_WORKSPACE/get_summary/002_PROMPT.md +++ /dev/null @@ -1,15 +0,0 @@ -Hi, i need your help. - -## background - -i am working on a nextjs react typescript project - -## task - -i want you to summarize the code, write it to `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/cr/categories/_PROMPT.md` - -## steps - -1. list all `tsx` files from directory `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/cr/categories` -2. take a look to the `tsx` file listed. try to understand what's going on (e.g. it is a component for `cr-categories`, it is a table) -3. write your result to `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/cr/categories/_PROMPT.md` diff --git a/002_source/cms/_AI_WORKSPACE/get_summary/030_TEMPLATE_PROMPT.md b/002_source/cms/_AI_WORKSPACE/get_summary/030_TEMPLATE_PROMPT.md deleted file mode 100644 index e4a17a9..0000000 --- a/002_source/cms/_AI_WORKSPACE/get_summary/030_TEMPLATE_PROMPT.md +++ /dev/null @@ -1,17 +0,0 @@ -Hi, i need your help. - -## background - -i am working on a nextjs react typescript project - -## task - -i want you to summarize the code, write it to `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/lp/questions/_SUMMARY.md` - -## steps - -1. list all `tsx` files from directory `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/lp/questions` -2. read every `tsx` files listed. try to understand what's going on (e.g. it is a component for `cr-questions`, it is a table) -3. read file `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/cr/questions/_SUMMARY.md`. -4. make use of `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/cr/questions/_SUMMARY.md` as template, update the content and create a new summary -5. write your new summary to `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/lp/questions/_SUMMARY.md` diff --git a/002_source/cms/_AI_WORKSPACE/get_summary/031_TEMPLATE_PROMPT.md b/002_source/cms/_AI_WORKSPACE/get_summary/031_TEMPLATE_PROMPT.md deleted file mode 100644 index 856c1d4..0000000 --- a/002_source/cms/_AI_WORKSPACE/get_summary/031_TEMPLATE_PROMPT.md +++ /dev/null @@ -1,17 +0,0 @@ -Hi, i need your help. - -## background - -i am working on a nextjs react typescript project - -## task - -i want you to summarize the code, write it to `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/lp/categories/_SUMMARY.md` - -## steps - -1. list all `tsx` files from directory `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/lp/categories` -2. read every `tsx` files listed. try to understand what's going on (e.g. it is a component for `cr-categories`, it is a table) -3. read file `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/cr/categories/_SUMMARY.md`. -4. make use of `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/cr/categories/_SUMMARY.md` as template, update the content and create a new summary -5. write your new summary to `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/lp/categories/_SUMMARY.md` diff --git a/002_source/cms/_AI_WORKSPACE/get_summary/DB_PROMPT.MD b/002_source/cms/_AI_WORKSPACE/get_summary/DB_PROMPT.MD deleted file mode 100644 index ba93847..0000000 --- a/002_source/cms/_AI_WORKSPACE/get_summary/DB_PROMPT.MD +++ /dev/null @@ -1,66 +0,0 @@ -The software engineer will provide solutions, -while QA engineer will feedback the opinion. - -this is now not in debug phase, -so, no need to reply me what they are going on or their insight throught the prompt. -just reply me "OK" when done - ---- - -clone `GetVisibleCount.tsx` and `GetHiddenCount.tsx` from `LessonTypes` to `LessonCategories` and update it - -please draft `GetHiddenCount.tsx` for COL_LESSON_TYPES and `status = hidden` - -well done !, please proceed to another request - -working directory: `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db` - -according information from `schema.json`, get the collection of `Students` - -pleaes clone the `tsx` files from `LessonTypes` and `LessonCategories` to `Students` and update the content - -when you draft coding, review file and append with `.tsx.draft` - ---- - -- this is part of react typescript project, with pocketbase -- `schema.dbml`, describe the collections(tables) -- folder `LessonCategories`, the correct references -- folder `LessonTypes`, the correct references -- you can find the `schema.dbml` and schema information from `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/001_documentation/Requirements/REQ0006` -- do not read root directory, assume it is a fresh copy of nextjs project is ok - -## instruction - -- break the questions into smaller parts -- review file append with `.draft`, see if the content aligned with the correct references -- read and understand `dbml` file -- lookup the every folder - -## tasks - -Thanks - ---- - ---- - -please revise - -please revise -`/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/types/LpCategory.tsx` `interface LpCategory` - -to the collection `QuizLPCategories` align the dbml file in the previous prompt - -please modify `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/components/dashboard/lp_categories/_constants.tsx` - -to follow the type definition in `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/types/LpCategory.tsx`, the constant `defaultLpCategory` - ---- - -the constants file (`@/constants`) was `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/constants.ts` - -please help to fix the `tsx` files in folder `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/QuizMFCategories`, -the `COL` constants is wrongly used, it should refer to `COL_QUIZ_MF_CATEGORIES`. thanks - -please update the `COL_XXXX` TO COL_MF_CATEGORIES diff --git a/002_source/cms/_AI_WORKSPACE/init.md b/002_source/cms/_AI_WORKSPACE/init.md deleted file mode 100644 index 7ef4f78..0000000 --- a/002_source/cms/_AI_WORKSPACE/init.md +++ /dev/null @@ -1 +0,0 @@ -please read, understand and remember `/home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/_AI_WORKSPACE/code`