You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ui/CONTRIBUTING.md
+21-16Lines changed: 21 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -210,7 +210,17 @@ Adopting consistent naming conventions helps in understanding and navigating the
210
210
211
211
#### 4. How to add a feature?
212
212
213
-
4.1. Use scaffdog to create the page folder
213
+
Adding a new feature may seem daunting at first, but by following these steps and working together can ensure a smooth and efficient process.
214
+
215
+
4.1 If there is no related issue then create a new one and clearly describe the feature.
216
+
217
+
4.2 Design a low-fidelity mockup of the feature. This helps in visualizing the user interface and the user experience. Ensure that the design aligns with the project's design guidelines and style.
218
+
219
+
4.3 Wait for feedback and approval before proceeding. Make any necessary revisions based on the feedback received.
220
+
221
+
4.4 Once the mockup is approved, you can begin the development process. Remember to write clean, readable, and maintainable code.
222
+
223
+
4.5. Use scaffdog to create the page folder
214
224
215
225
```shell
216
226
npx scaffdog generate
@@ -233,31 +243,26 @@ PageA/
233
243
|── index.ts
234
244
```
235
245
236
-
4.2. Update
237
-
238
-
`ui/src/pages/index.ts`
246
+
4.6. Update files
239
247
240
-
4.3. Update
248
+
- `ui/src/pages/index.ts`
241
249
242
-
`ui/src/data/featureData.ts`
250
+
- `ui/src/data/featureData.ts`
243
251
244
-
4.4. Update
252
+
- `ui/src/data/helpData.ts`
245
253
246
-
`ui/src/data/helpData.ts`
254
+
- `ui/src/data/menuData.ts`
247
255
248
-
4.5. Update
256
+
- `ui/src/data/routeData.tsx`
249
257
250
-
`ui/src/data/menuData.ts`
251
-
252
-
4.6. Update
253
-
254
-
`ui/src/data/routeData.tsx`
255
-
256
-
#### 5. How to add tests for a feature?
258
+
4.7 Add tests for a feature
257
259
258
260
- Identify the key functionalities of your feature that need testing.
259
261
- Define test cases for these functionalities, including both positive and negative scenarios.
260
262
- Ensure your test cases cover all critical paths and edge cases.
261
263
- Place your test scripts in the `__tests__` folder within your feature directory (in this case, `PageA/__tests__`).
262
264
- Mock any external dependencies or modules that your feature interacts with. This ensures that your tests are focused solely on the feature's functionality.
0 commit comments