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
Task: Ensure Code Consistency Across the Applications
Frontend Guidelines
Component Naming
Use *Page for components representing routes (e.g., ContactPage).
Use *Form for form-related components (e.g., ContactForm).
Parameter Naming
Use camelCase for function parameters, variables, and props (e.g., versionId) instead of snake_case, (e.g., version_id,)
Async Components
Prefer React.Suspense for handling async components in Server Components (RSC).
Ensure proper fallback components are provided for a smooth user experience.
Action Handlers
Ensure action handlers follow a consistent parameter pattern:
Example: Use revalidatePath to update the store's cache when making updates via mutations.
Imports
Use easier to read app alias path defined in tsconfig.json over deeply nested, relative imports
Typography and styles - how to make it consistent?
Use themes in bciers/tailwind-workspace-preset.js
Backend Guidelines
Database Relationships
Use atomic transactions for all critical operations to ensure consistency and prevent partial updates.
For reverse relationships, use clear and concise names that reflect their purpose...
Naming
Use consistent file naming conventions
Use consistent parameter naming conventions
File Placement
Place files logically within your project structure
Place shared files in common directory
General Notes
Cleanup duplicated documentation details within classes etc.
Remove leftover Print statements
Conduct periodic code reviews to ensure adherence to these standards.
Outcome
By following these guidelines:
The codebase will maintain a uniform structure and naming convention.
Collaboration between teams will improve due to reduced ambiguity.
Changes and maintenance will become easier over time.
Tech Debt Triage
The purpose of our technical debt triage process is to analyze technical debt to determine risk level of the technical debt and the value in tackling that technical debt.
Risk Value Scoring:
Level
Value
High
3
Medium
2
Low
1
Technical Debt - Risk Types
Level
Value
Business Area Risk - Risk of business area visibility / damage to user experience
0
0
Developer Fault Risk - How likely will this tech debt cause a future error related to coding on top of it
0
0
System Fault Risk - Risk of system errors or application downtime
0
0
Time Scale Risk - Compound risk effect if left alone. How much more difficult to fix or dangerous will this become over time?
0
0
Time Sink Risk - How much will this tech debt slow the development process down
0
0
TOTAL SCORE:
0
0
Development Checklist:
Checklist item
Checklist item
Checklist item
The text was updated successfully, but these errors were encountered:
Task: Ensure Code Consistency Across the Applications
Frontend Guidelines
Component Naming
*Page
for components representing routes (e.g.,ContactPage
).*Form
for form-related components (e.g.,ContactForm
).Parameter Naming
camelCase
for function parameters, variables, and props (e.g.,versionId
) instead ofsnake_case
, (e.g.,version_id
,)Async Components
React.Suspense
for handling async components in Server Components (RSC).Action Handlers
revalidatePath
to update the store's cache when making updates via mutations.Imports
tsconfig.json
over deeply nested, relative importsTypography and styles - how to make it consistent?
bciers/tailwind-workspace-preset.js
Backend Guidelines
Database Relationships
Naming
File Placement
General Notes
Outcome
By following these guidelines:
Tech Debt Triage
The purpose of our technical debt triage process is to analyze technical debt to determine risk level of the technical debt and the value in tackling that technical debt.
Risk Value Scoring:
Development Checklist:
The text was updated successfully, but these errors were encountered: