bcgov / bcgov/wps

Refactor frontend to use camelCase for all data responses

Open
#1,257 0 comments 0 reactions 0 assignees View on GitHub
4Refinement Task
Dominant language
Python
Stars
65
Forks
11
Avg merge
21h 25m
Merged PRs (30d)
70

Description

**Describe the task**
Currently all our apps use snake_case for variable names on the frontend, because that's what they receive from the Python backend. But for the purpose of consistency, our Typescript frontend should be using camelCase.

Suggest a refactor on the frontend so that all data received from the backend gets automatically re-formatted to use camelCase naming conventions.

There's an npm package that could help us with this - https://www.npmjs.com/package/camelcase

**Acceptance Criteria**
- [ ] Python backend still uses snake_case, Typescript frontend uses camelCase
- [ ] regression test

**Additional context**
- Consider something like protobuff to achieve this.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, entry points, or existing tests. Start by tracing how Python backend responses enter the TypeScript frontend and assess the suggested camelcase package or protobuf approach. Done means backend responses remain snake_case, frontend data is consistently camelCase, and a regression test passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, typescript
Domain
frontend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.