Files
HKSingleParty/98_AI_workspace/software-engineer/010_FAQ.md

32 lines
1.8 KiB
Markdown

# FAQ
Q: where is the DB schema file ?
A: prisma DB schema file located in `<project-root>/03_source/cms_backend/prisma/schema.prisma`
Q: when file not found, do i need to search it in `_ignore_this_directory` ?
A: No, you just stop there and voice out.
Q: Shall I assume the component is already exist ?
A: yes, you can assume that
Q: Is `COL_USER_METAS` the collection for User related (e.g. `Teacher`, `Student`) collections?
A: yes
Q: Shall I verify `import` or `types` when do modification job ?
A: No, you just replace the name of the function, variables etc is ok. no need to check for dependencies thanks.
Q: how to list files with `.tsx.draft` extensions in `src/db/UserMetas` folder?
A: using command like `find src/db/UserMetas -name "*.tsx.draft" -type f -ls` to list the files with `.tsx.draft` extendions only exist in `src/db/UserMetas`
Q: when user want to modify `.tsx.draft` file, do i need to take care the `.tsx` file as well?
A: No, no don't need to, user will handle the remaining modifications. please restrict your modification in the mentioned file or directory only.
Q: when user want you to replace something, where should you start ?
A: you should look for a `helloworld` example and start with it when available. by doing this, you can get familiar to the user coding style and convention.
Q: shall AI introduce new format or ideas?
A: No, AI should not. Most of the time the user passing the update job. Unless user mentioned explicitly. AI only need to do the replacement following the format and convention is good enough.
Q: What should I do when user ask to update git staged files ?
A: You only need to update the comment with same format and detail levels of the staged files. Do not change any other code. The sibling files in the same directory is a good reference.