Skip to content

fix: clean HTML structure and resolve Prettier CI failures#86

Closed
shishir-21 wants to merge 6 commits intogbowne1:masterfrom
shishir-21:fix/ci-clean-html-prettier
Closed

fix: clean HTML structure and resolve Prettier CI failures#86
shishir-21 wants to merge 6 commits intogbowne1:masterfrom
shishir-21:fix/ci-clean-html-prettier

Conversation

@shishir-21
Copy link
Collaborator

What this PR does

This PR fixes CI failures caused by invalid HTML structure and formatting issues.

Changes made

  • Restored valid HTML structure after earlier merge conflicts
  • Ran Prettier across the codebase
  • Verified npx prettier --check . passes locally

Context

  • A previous PR was closed due to a Windows Git limitation involving an invalid filename
  • This PR is recreated from a clean branch based on master

Result

✅ Prettier CI checks pass
✅ No HTML syntax errors
✅ Clean, reproducible build

@shishir-21
Copy link
Collaborator Author

Hi @gbowne1 👋
It looks like the CI checks are failing due to environment-related issues (likely missing env vars / DB connection in CI).
All merge conflicts are resolved on my side.
Could you please advise how you’d like this handled (mock env, skip server start in CI, or CI config update)?
Thanks!

@gbowne1
Copy link
Owner

gbowne1 commented Feb 2, 2026

@shishir-21

I'm not totally sure what to do about the CI. It has several issues but... we need to address the .env-example filename. Theres now several open PRs trying to fix it so its kind of an emergency to fix this issue. Its causing issues in Windows and git. I'm hoping fixing this filename will fix some of the issues.

I think I would update the CI configuration.

@gbowne1 gbowne1 added bug Something isn't working enhancement New feature or request labels Feb 2, 2026
@gbowne1 gbowne1 moved this from Todo to In Progress in codestream Feb 2, 2026
@shishir-21
Copy link
Collaborator Author

@gbowne1

Got it 👍
Agreed — fixing the .env.example filename first makes sense.
Happy to help review or test CI changes once you update the configuration.

@gbowne1
Copy link
Owner

gbowne1 commented Feb 2, 2026

.env PR has been merged.

CI fix is likely in #87 by @glenjaysondmello so I would head there first then make appropriate changes to your PR(s) once that's merged @shishir-21 and @Ved178

We're tripping over ourselves due to some issues which should be in the DEVSETUP.MD etc document

@shishir-21
Copy link
Collaborator Author

@gbowne1

Thanks for the update 👍
Understood — I’ll wait for the CI fixes in #87 and adjust my PR(s) as needed.

@gbowne1
Copy link
Owner

gbowne1 commented Feb 2, 2026

This is going to keep happening if we dont get through all of these PRs then do #78 to separate out main.js into a bunch of different files to separate concernes then further separate the frontend code from the backend code as addressed in #77

Copy link
Owner

@gbowne1 gbowne1 left a comment

Choose a reason for hiding this comment

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

I checked out this change locally for testing and review for merge

It's of my opinion that the correct CI fix is in #87 by @glenjaysondmello

This can wait a little bit to further enhance that PR once it rebased at this point

I'll request changes now pending merge of #87

@gbowne1 gbowne1 self-requested a review February 2, 2026 17:22
@shishir-21
Copy link
Collaborator Author

Understood 👍
Agreed that #78 and #77 are key to preventing these recurring issues.
I’m fine waiting on #87 and will rebase/update my PR afterward as needed.

@gbowne1
Copy link
Owner

gbowne1 commented Feb 9, 2026

@shishir-21 @Ved178 @glenjaysondmello @abhisheksingh1204 etc

I think this could use one more rebase?

I merged #92 a pretty big PR which fixed the remaining issues and tests passed.

Let's try and get in these issue fixes and PRs soon.
#54 #61
#52 #68

I'll re review.

@EdoAbarca
Copy link
Contributor

EdoAbarca commented Feb 9, 2026

Hello! I’m here because my merged PR was mentioned in this one.

Given some of the recurring issues I’ve been seeing—CI failures, package-lock diffs, and linting/formatting inconsistencies—I wanted to propose some potential improvements:

1. Dockerize the codebase
Adding a minimal Docker setup could help standardize environments across contributors and CI, reduce “works on my machine” problems, and make installs/builds more deterministic. This could cover common workflows like build, test, and run.

2. Makefile as a command interface
A simple Makefile could wrap common (and sometimes hard-to-remember) commands into things like:

  • make lint
  • make format
  • make build
  • make test

This would give contributors a single, documented entry point and could also simplify the CI script.

3. Frontend / backend separation
It might also be worth considering a clearer separation between frontend and backend code (for example codestream-frontend and codestream-backend) to improve modularity and long-term maintainability. This would obviously be a larger refactor, so it's something to consider only if it aligns with the project’s direction.

I’d like to hear what the maintainers think about these ideas and whether they’d be open to this kind of change. If there’s general agreement, I’d be happy to help 👍

@gbowne1
Copy link
Owner

gbowne1 commented Feb 9, 2026

I think a preflight or precommit hook or something that runs before committing especially for lint and format would be better as long as people would. We could use husky?

Vite is pretty good about it's own warnings etc during development.

We're also gonna have to improve docs too.

We also should probably also add playwright or cypress. Cypress is a bit complex.

Anyway all discussion is in the Discussion tab of this project

I'm not opposed to a docker or even a dev container (VS/VSC). I just don't want to complicate

As for moving to a separated environment we are headed there just looking to get all open PRs merged before any real new ones appear, outside of solving the problems we're having.
I also made an issue for those things. #77 and #78 is of them.

Copy link
Owner

@gbowne1 gbowne1 left a comment

Choose a reason for hiding this comment

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

@shishir-21

I checked out this change locally for testing and review for merge

It looks clean as a eslint / prettier run.

Some minor things but I think the PR is good

Approving this PR for merge pending further review by the other collaborators and maintainers.

Copy link
Collaborator Author

@shishir-21 shishir-21 left a comment

Choose a reason for hiding this comment

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

@gbowne1

Thanks for the approval and fixes 👍

I see CI is still failing on the build-and-test jobs.
I’ll pull the latest master, rebase again, and run the full CI workflow locally to identify what’s breaking.

I’ll push an update shortly once I isolate the issue.

@gbowne1
Copy link
Owner

gbowne1 commented Feb 16, 2026

@shishir-21

There's still a few files that Prettier went nuts about doctype being lowercase.

I don't think it's a big problem either way just should be consistent and well 🤷‍♂️why it got changed

I'm old school. It should be always be DOCTYPE html.

A search or grep for lower case doctype should show them.

@gbowne1
Copy link
Owner

gbowne1 commented Feb 16, 2026

CI.yml needs a bit of work.

I agree with only one node workflow.

This particular run was bad package lockfile

@gbowne1
Copy link
Owner

gbowne1 commented Feb 16, 2026

@shishir-21

Actually.. I think.. we can just close this without merging.

I created #99 and #111 and a separate PR for index.html being completely messed up. #113

Will still need minor tweaks afterwards but this should render.

I have no idea what messed this up 🤷‍♂️

Let's review those and get them merged soon. Yours is a much older PR and we have had a bunch of merges since that messed up stuff significantly

@gbowne1
Copy link
Owner

gbowne1 commented Feb 17, 2026

Closing this PR as cleanup work is in progress #113 etc

@gbowne1 gbowne1 closed this Feb 17, 2026
@github-project-automation github-project-automation bot moved this from In Progress to Done in codestream Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants

Comments