Skip to content

464 implement frontend javascript testing#533

Merged
AdrianDAlessandro merged 21 commits into
mainfrom
464-implement-frontend-javascript-testing
Jun 11, 2026
Merged

464 implement frontend javascript testing#533
AdrianDAlessandro merged 21 commits into
mainfrom
464-implement-frontend-javascript-testing

Conversation

@sbland

@sbland sbland commented Oct 29, 2025

Copy link
Copy Markdown
Contributor

Description

Some tidying up of the frontend node code related to #529

Fixes #464

Type of change

  • Documentation (non-breaking change that adds or improves the documentation)
  • New feature (non-breaking change which adds functionality)
  • Optimization (non-breaking, back-end change that speeds up the code)
  • Technical work (non-breaking, change which is work as part of a new feature)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (whatever its nature)

Key checklist

  • All tests pass (eg. python -m pytest)
  • The documentation builds and looks OK (eg. mkdocs serve)
  • Pre-commit hooks run successfully (eg. pre-commit run --all-files)

Further checks

  • Code is commented, particularly in hard-to-understand areas
  • Tests added or an issue has been opened to tackle that in the future. (Indicate issue here: # (issue))

@sbland

sbland commented Oct 29, 2025

Copy link
Copy Markdown
Contributor Author

Fixes #464

@codecov

codecov Bot commented Oct 29, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sbland

sbland commented Oct 29, 2025

Copy link
Copy Markdown
Contributor Author

@AdrianDAlessandro I moved the node documentation to a separate README.md inside the node directory. This seems to have broken the mkdocs build. I tried looking through the code and docs but I can't see how to add this file.

@sbland sbland self-assigned this Oct 29, 2025
@sbland sbland requested a review from davehorsfall October 29, 2025 11:39
Comment thread README.md Outdated
@sbland sbland force-pushed the 464-implement-frontend-javascript-testing branch from f62472c to 053c4be Compare November 27, 2025 19:41
@sbland

sbland commented Nov 27, 2025

Copy link
Copy Markdown
Contributor Author

@AdrianDAlessandro FYI I've rebased this onto the main branch.

@AdrianDAlessandro AdrianDAlessandro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'll be happy to review and merge this if you can rebase it onto main. Would be good to merge this before looking at moving the node configs into a sub-directory

@sbland sbland force-pushed the 464-implement-frontend-javascript-testing branch from 053c4be to f7a61a7 Compare March 2, 2026 16:39
@sbland

sbland commented Mar 2, 2026

Copy link
Copy Markdown
Contributor Author

@AdrianDAlessandro this is rebased back onto main and should be ready to merge

@AdrianDAlessandro AdrianDAlessandro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Overall, this looks really good. I've run the tests and see that they pass. I haven't individually reviewed the tests because I am not likely to understand them. My only concern is that they might be too prescriptive. So if we make changes to the radial plots, it might cause many failures and make it difficult to update them all.

I've made some other comments, but they might be out of my naivety of best practice with node/npm/vitest, so please take it all with a grain of salt.

Comment thread node/README.md Outdated
Comment thread package.json Outdated
Comment thread node/README.md
@sbland

sbland commented Mar 9, 2026

Copy link
Copy Markdown
Contributor Author

Overall, this looks really good. I've run the tests and see that they pass. I haven't individually reviewed the tests because I am not likely to understand them. My only concern is that they might be too prescriptive. So if we make changes to the radial plots, it might cause many failures and make it difficult to update them all.

I've made some other comments, but they might be out of my naivety of best practice with node/npm/vitest, so please take it all with a grain of salt.

Thanks @AdrianDAlessandro I'll take a look.

@sbland sbland force-pushed the 464-implement-frontend-javascript-testing branch from f7a61a7 to 35078c1 Compare March 16, 2026 21:05
Comment thread node/src/js/dataviz/radial-plot-dataprocessing.js
Comment thread node/src/js/dataviz/radial-plot-dataprocessing.js Outdated
Comment thread node/README.md
@sbland sbland force-pushed the 464-implement-frontend-javascript-testing branch 2 times, most recently from 5eaa23d to e047ebe Compare June 9, 2026 21:06
Comment thread README.md Outdated
```bash
npm run styles:expanded
```
See [node/README.md](https://github.com/direct-framework/direct-webapp/blob/main/node/README.md) for details on working with the NPM-based frontend asset pipeline.

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.

🚫 [linkspector] reported by reviewdog 🐶
Cannot reach https://github.com/direct-framework/direct-webapp/blob/main/node/README.md Status: 404

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is resolved by #740

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This doesn't seem to be failing anymore despite the change in #740 not being included in this PR.

@sbland sbland force-pushed the 464-implement-frontend-javascript-testing branch from 57d4f92 to 69c60de Compare June 10, 2026 20:59
@sbland

sbland commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

@AdrianDAlessandro I've fixed the lint and build issues so this should be ready to merge now.
I've also added in a CI action to run the javascript linter. We could do with one to run the build script and check nothing changes but I'll create another issue for that.

@AdrianDAlessandro

Copy link
Copy Markdown
Collaborator

@sbland I have just pushed a change to fix the issue with the docs failing

@AdrianDAlessandro AdrianDAlessandro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This all looks good to me now!

@AdrianDAlessandro AdrianDAlessandro merged commit 3e3ae59 into main Jun 11, 2026
7 checks passed
@AdrianDAlessandro AdrianDAlessandro deleted the 464-implement-frontend-javascript-testing branch June 11, 2026 09:45
@github-project-automation github-project-automation Bot moved this from 📋 Backlog to ✅ Done in Web App Development Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Implement Frontend javascript Testing

3 participants