Skip to content

ការបន្ថែមមុខងារថ្មី (Add a New Feature)

ស្វែងយល់ពីរបៀបបន្ថែមមុខងារស្មុគស្មាញដោយសុវត្ថិភាពទៅក្នុងគម្រោងដែលមានស្រាប់តាមរយៈលំហូរការងារ /enhance។


ទិដ្ឋភាពទូទៅ (Overview)

Section titled “ទិដ្ឋភាពទូទៅ (Overview)”

លំហូរការងារ /enhance គឺជាឧបករណ៍ប្រចាំថ្ងៃរបស់អ្នកសម្រាប់ការអភិវឌ្ឍន៍ជាបន្តបន្ទាប់។ ខុសពី /create ដែលបង្កើតគម្រោងពីដំបូង /enhance ផ្តោតលើការបន្ថែមមុខងារជាក់លាក់ដោយមិនធ្វើឱ្យប៉ះពាល់ ឬបែកបាក់កូដចាស់ដែលមានស្រាប់ឡើយ។

ℹ️

ស្ថានភាពជាក់ស្តែង៖ បន្ថែមមុខងារ “Dashboard Analytics” ទៅក្នុងកម្មវិធី SaaS ដែលមានស្រាប់។


ដំណើរការការងារ (The Process)

Section titled “ដំណើរការការងារ (The Process)”
1

ការរៀបចំផែនការមុខងារ

រៀបរាប់ពីតម្រូវការមុខងារឱ្យបានច្បាស់លាស់។

Terminal window
/enhance Add an analytics dashboard for user activity
Requirements:
- Track daily active users and page views
- Visual charts using Recharts
- API endpoint to aggregate data
2

ការអនុវត្តសមាសភាគ

ភ្នាក់ងារជំនាញអនុវត្តការងារគ្រប់ស្រទាប់៖

Database
Schema & migrations
Backend
Aggregator routes
Frontend
Telemetry charts
Testing
Regression tests
3

ផ្ទៀងផ្ទាត់ការរួមបញ្ចូល

ដំណើរការការត្រួតពិនិត្យចុងក្រោយដើម្បីបញ្ជាក់ពីទំហំ bundle, accessibility និងតេស្ត។


ឧទាហរណ៍ជាក់ស្តែង (Example Session)

Section titled “ឧទាហរណ៍ជាក់ស្តែង (Example Session)”
agent-session
$
/enhance add dark mode toggle
▸
Analyzing codebase…
រកឃើញ៖ Tailwind CSS មិនទាន់មាន config សម្រាប់ dark mode
ផែនការ៖ កែសម្រួល tailwind.config, បន្ថែម ThemeProvider, បង្កើត toggle component
Frontend:កំពុងបង្កើត ThemeToggle…
Testing:កំពុងបន្ថែម theme tests…
▸
✅ Feature Added!
ដំណើរការ /preview start ដើម្បីសាកល្បង។

គន្លឹះមានប្រយោជន៍ (Pro Tips)

Section titled “គន្លឹះមានប្រយោជន៍ (Pro Tips)”
💡

ពិនិត្យមើល Dependencies

ប្រើ checklist.py ដើម្បីការពារកុំឱ្យទំហំ bundle ឡើងធំពី library ថ្មី។

💡

រក្សាភាពជាម៉ូឌុល

ញែក component ថ្មីៗដើម្បីកាត់បន្ថយផលប៉ះពាល់លើកូដចាស់។


ជំហានបន្ទាប់ (Next Steps)

Section titled “ជំហានបន្ទាប់ (Next Steps)”