Skip to content

Change "Create ToDo" to "Add ToDo"#43

Merged
CharlesFarris merged 1 commit into
mainfrom
change-create-to-add
May 22, 2026
Merged

Change "Create ToDo" to "Add ToDo"#43
CharlesFarris merged 1 commit into
mainfrom
change-create-to-add

Conversation

@CharlesFarris

Copy link
Copy Markdown
Contributor
  • Rename functions
  • Rename comments
  • Change routes

- Rename functions
- Rename comments
- Change routes
Copilot AI review requested due to automatic review settings May 22, 2026 20:44
@CharlesFarris CharlesFarris self-assigned this May 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_TODO and updated their paths.
  • Updated the app router wiring to mount the renamed addToDoApi and addToDoPage handlers.
  • 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.

@CharlesFarris CharlesFarris merged commit c364db4 into main May 22, 2026
2 checks passed
@CharlesFarris CharlesFarris deleted the change-create-to-add branch May 22, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants