Skip to content

CodeBase Clean up#123

Merged
UcheWendy merged 3 commits intomainfrom
codebase_cleanup
Sep 10, 2025
Merged

CodeBase Clean up#123
UcheWendy merged 3 commits intomainfrom
codebase_cleanup

Conversation

@UcheWendy
Copy link
Collaborator

@UcheWendy UcheWendy commented Sep 10, 2025

Description

A pull request must contain the following elements.

1. What was Changed

i deleted unused .js files and reduntant html files, to simplify app start up, i added concurrent script to package.json to start API and frontend servers, updated ReadMe file and integrated HTMX for dynamic description loading.

2. Why it was Changed

make the code base easier for developers to work with and avoid conflicts

3. How it was Changed

deleted fetch.js, boneset.js, image_handling.js as well as bone.html as there were no longer needed. then updated the script tag in package.json from root directory so both frontend and backend starts together and directly takes you to web.
i also added the HTMX library to boneset.html.
Updated the <select> dropdowns in boneset.html with hx-get attributes to fetch descriptions on change.
added a new /api/description/ endpoint to server.js that serves HTML fragments.
these changes will update the initial data fetch in api.js to use an absolute URL, fixing cross-port communication with the backend API.

4. Screenshots (if applicable)

not applicable

…t to start API and frontend servers, Update README with correct project setup and run instructions
Copy link
Collaborator

@jacksayshi jacksayshi left a comment

Choose a reason for hiding this comment

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

lgtm. This makes navigating the repo much easier.

@UcheWendy UcheWendy merged commit 44cb0a7 into main Sep 10, 2025
1 check failed
@UcheWendy UcheWendy deleted the codebase_cleanup branch December 8, 2025 22:04
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