3.5 KiB
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
-
schema.dbml
- read
<base_dir>/001_documentation/Requirements/REQ0006/schema.dbml
this is file in dbml syntax state the main database
- read
-
schema.json
- read
<base_dir>/002_source/cms/src/db/schema.json
this is the file of live pocketbase schema output
- read
-
read
<base_dir>/002_source/cms/src/constants.ts
this is the content of@/constants
-
look into the md files in folder
<base_dir>/002_source/cms/_AI_WORKSPACE/001_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 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