Change "Create ToDo" to "Add ToDo"#43
Merged
Merged
Conversation
CharlesFarris
commented
May 22, 2026
Contributor
- Rename functions
- Rename comments
- Change routes
- Rename functions - Rename comments - Change routes
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request updates the “Create ToDo” feature naming to “Add ToDo” across the app, aligning both API and page routes with the new terminology.
Changes:
- Renamed the create-todo API/page route constants to
ADD_TODOand updated their paths. - Updated the app router wiring to mount the renamed
addToDoApiandaddToDoPagehandlers. - Updated HTTP request samples and feature tests/page heading text to use “Add ToDo”.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| todo-app.http | Updates the sample request to use /api/add-todo and “add todo” wording. |
| src/shared/pageRoutes.ts | Renames the page route constant from CREATE_TODO to ADD_TODO and changes path to /add-todo. |
| src/shared/apiRoutes.ts | Renames the API route constant from CREATE_TODO to ADD_TODO and changes path to /api/add-todo. |
| src/index.ts | Switches imports and .route(...) registrations from create-todo to add-todo. |
| src/features/add-todo/addToDoPage.tsx | Renames the exported page router and updates the <h1> text to “Add ToDo”. |
| src/features/add-todo/addToDoPage.test.tsx | Updates imports/test descriptions/assertions to match addToDoPage and “Add ToDo”. |
| src/features/add-todo/addToDoApi.tsx | Renames the exported API router to addToDoApi. |
| src/features/add-todo/addToDoApi.test.ts | Updates imports/test suite name and routing to use addToDoApi. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.