Issue #5: Add a web UI. #60

Merged
danny merged 6 commits from issue5_add_web_UI into main 2026-07-05 13:42:06 +01:00
danny commented 2026-07-04 18:23:42 +01:00 (Migrated from gitlab.keyop.co.uk)

This is all Claude's work based on the description in the ticket.
As yet this is untested from an end-user perspective.

This also includes adding an 'install' target for testing.

https://gitlab.keyop.co.uk/keyop/go/nfq_forwarder/-/work_items/5

This is all Claude's work based on the description in the ticket. As yet this is untested from an end-user perspective. This also includes adding an 'install' target for testing. https://gitlab.keyop.co.uk/keyop/go/nfq_forwarder/-/work_items/5
danny commented 2026-07-04 18:23:42 +01:00 (Migrated from gitlab.keyop.co.uk)

requested review from @danny

requested review from @danny
danny commented 2026-07-04 18:23:42 +01:00 (Migrated from gitlab.keyop.co.uk)

assigned to @danny

assigned to @danny
danny (Migrated from gitlab.keyop.co.uk) approved these changes 2026-07-04 18:23:42 +01:00
danny commented 2026-07-04 18:23:54 +01:00 (Migrated from gitlab.keyop.co.uk)

mentioned in issue #5

mentioned in issue #5
danny commented 2026-07-04 18:35:30 +01:00 (Migrated from gitlab.keyop.co.uk)

added 2 commits

  • 32617758 - Issue #5: Add a web UI.
  • 399ca837 - Add build reqs.

Compare with previous version

added 2 commits <ul><li>32617758 - Issue #5: Add a web UI.</li><li>399ca837 - Add build reqs.</li></ul> [Compare with previous version](/keyop/go/nfq_forwarder/-/merge_requests/19/diffs?diff_id=251&start_sha=860cff0931151fcd1936053497aa861013b44ab1)
danny commented 2026-07-04 18:45:55 +01:00 (Migrated from gitlab.keyop.co.uk)

added 1 commit

  • 4812fb00 - Update styling.

Compare with previous version

added 1 commit <ul><li>4812fb00 - Update styling.</li></ul> [Compare with previous version](/keyop/go/nfq_forwarder/-/merge_requests/19/diffs?diff_id=252&start_sha=399ca8375f681cd09017ba15ee9fcc821095528f)
danny commented 2026-07-04 21:55:49 +01:00 (Migrated from gitlab.keyop.co.uk)

added 1 commit

  • 1225d644 - Issues raised here need sorting before merge

Compare with previous version

added 1 commit <ul><li>1225d644 - Issues raised here need sorting before merge</li></ul> [Compare with previous version](/keyop/go/nfq_forwarder/-/merge_requests/19/diffs?diff_id=255&start_sha=4812fb004018e1c5174cd8743b2bc4aeff6b77de)
danny commented 2026-07-05 11:00:35 +01:00 (Migrated from gitlab.keyop.co.uk)

All seems to work Ok and is reasonably visually pleasing.

All seems to work Ok and is reasonably visually pleasing.
danny commented 2026-07-05 11:11:25 +01:00 (Migrated from gitlab.keyop.co.uk)

The units should cover a wider (higher) range, as this process could be very long running. Will need at least three more orders of magnitude and for completeness should include all current IEEE units.

Additionally, the names should follow the newer SI/IEEE guidelines, where binary bases are e.g. 'MiB' instead of 'MB'.

The units should cover a wider (higher) range, as this process could be very long running. Will need at least three more orders of magnitude and for completeness should include all current IEEE units. Additionally, the names should follow the newer SI/IEEE guidelines, where binary bases are e.g. 'MiB' instead of 'MB'.
danny commented 2026-07-05 11:11:25 +01:00 (Migrated from gitlab.keyop.co.uk)

These are all actually IEEE units, not ISO ones.

These are all actually IEEE units, not ISO ones.
danny commented 2026-07-05 11:11:25 +01:00 (Migrated from gitlab.keyop.co.uk)

Would prefer to use 'writer' and 'request' rather than 'w' and 'r'. Doing so removes the need for this override.

Would prefer to use 'writer' and 'request' rather than 'w' and 'r'. Doing so removes the need for this override.
danny commented 2026-07-05 11:11:25 +01:00 (Migrated from gitlab.keyop.co.uk)

If we include a .yamllint config, the Makefile 'lint' target should also run yamllint.

If we include a .yamllint config, the Makefile 'lint' target should also run yamllint.
danny commented 2026-07-05 11:11:25 +01:00 (Migrated from gitlab.keyop.co.uk)

Please address all comments.

Please address all comments.
danny commented 2026-07-05 11:11:25 +01:00 (Migrated from gitlab.keyop.co.uk)

requested changes

requested changes
danny commented 2026-07-05 11:16:01 +01:00 (Migrated from gitlab.keyop.co.uk)

added 6 commits

  • 1225d644...c189fc0a - 2 commits from branch main
  • dea27fd0 - Issue #5: Add a web UI.
  • 80e9e0cc - Add build reqs.
  • e3213ece - Update styling.
  • f0701257 - Issues raised here need sorting before merge

Compare with previous version

added 6 commits <ul><li>1225d644...c189fc0a - 2 commits from branch <code>main</code></li><li>dea27fd0 - Issue #5: Add a web UI.</li><li>80e9e0cc - Add build reqs.</li><li>e3213ece - Update styling.</li><li>f0701257 - Issues raised here need sorting before merge</li></ul> [Compare with previous version](/keyop/go/nfq_forwarder/-/merge_requests/19/diffs?diff_id=256&start_sha=1225d64466ced489d51fcf08e4d655e08e2ca55c)
danny commented 2026-07-05 11:18:40 +01:00 (Migrated from gitlab.keyop.co.uk)

'sudo' will not be available in the CI environment - for these it makes more sense to add to the .gitlab-ci.yaml via the .op section's before_script.

'sudo' will not be available in the CI environment - for these it makes more sense to add to the `.gitlab-ci.yaml` via the `.op` section's `before_script`.
danny commented 2026-07-05 13:22:06 +01:00 (Migrated from gitlab.keyop.co.uk)

changed this line in version 6 of the diff

changed this line in [version 6 of the diff](/keyop/go/nfq_forwarder/-/merge_requests/19/diffs?diff_id=258&start_sha=f0701257c5fab64fccbf7829908b8c4fbb648375#eac076147e3b5f68b4fcdc5b96c55ecb1740e2fe_6_6)
danny commented 2026-07-05 13:22:06 +01:00 (Migrated from gitlab.keyop.co.uk)

mentioned in commit 4f75e05960

mentioned in commit 4f75e05960efeb43e3934d75e82452ff6218e2e2
danny commented 2026-07-05 13:22:07 +01:00 (Migrated from gitlab.keyop.co.uk)

changed this line in version 6 of the diff

changed this line in [version 6 of the diff](/keyop/go/nfq_forwarder/-/merge_requests/19/diffs?diff_id=258&start_sha=f0701257c5fab64fccbf7829908b8c4fbb648375#9fc76c2ba8abeac3bb01712395c601fb65494a4a_38_36)
danny commented 2026-07-05 13:22:07 +01:00 (Migrated from gitlab.keyop.co.uk)

added 1 commit

Compare with previous version

added 1 commit <ul><li>4f75e059 - Address MR !60 review comments</li></ul> [Compare with previous version](/keyop/go/nfq_forwarder/-/merge_requests/19/diffs?diff_id=258&start_sha=f0701257c5fab64fccbf7829908b8c4fbb648375)
danny commented 2026-07-05 13:22:49 +01:00 (Migrated from gitlab.keyop.co.uk)

Fixed in 4f75e05: BYTE_UNITS now covers the full IEC 80000-13 binary-prefix set (B, KiB, MiB, GiB, TiB, PiB, EiB, ZiB, YiB), so it has headroom well beyond three more orders of magnitude past TB.

Fixed in 4f75e05: BYTE_UNITS now covers the full IEC 80000-13 binary-prefix set (B, KiB, MiB, GiB, TiB, PiB, EiB, ZiB, YiB), so it has headroom well beyond three more orders of magnitude past TB.
danny commented 2026-07-05 13:23:26 +01:00 (Migrated from gitlab.keyop.co.uk)

Fixed in 4f75e05, same change as the comment above: unit labels are now the IEC binary-prefix ones (KiB/MiB/etc), not decimal SI/ISO ones, matching the base-1024 math formatBytes actually does.

Fixed in 4f75e05, same change as the comment above: unit labels are now the IEC binary-prefix ones (KiB/MiB/etc), not decimal SI/ISO ones, matching the base-1024 math formatBytes actually does.
danny commented 2026-07-05 13:23:26 +01:00 (Migrated from gitlab.keyop.co.uk)

Fixed in 4f75e05: renamed w/r to writer/request throughout webui_handlers.go's handlers and middleware, and removed the varnamelen ignore-decls override - no longer needed.

Fixed in 4f75e05: renamed w/r to writer/request throughout webui_handlers.go's handlers and middleware, and removed the varnamelen ignore-decls override - no longer needed.
danny commented 2026-07-05 13:23:26 +01:00 (Migrated from gitlab.keyop.co.uk)

Fixed in 4f75e05: added yamllint . to the Makefile's lint target. Confirmed only yamllint's error-level findings (e.g. line-length) fail the build - its warning-level findings (document-start, comments-indentation) on a couple of pre-existing files don't block CI, verified locally.

Fixed in 4f75e05: added `yamllint .` to the Makefile's lint target. Confirmed only yamllint's error-level findings (e.g. line-length) fail the build - its warning-level findings (document-start, comments-indentation) on a couple of pre-existing files don't block CI, verified locally.
danny commented 2026-07-05 13:23:27 +01:00 (Migrated from gitlab.keyop.co.uk)

Fixed in 4f75e05: moved the libpam0g-dev install into .gitlab-ci.yml's .op before_script (plain apt-get, no sudo, since the CI job runs as root) instead of relying on the Makefile's check-build-requirements target there. That target still uses sudo for local/dev-machine builds, where it's needed. This also means the CI image itself no longer needs a separate rebuild to pick up libpam0g-dev.

Fixed in 4f75e05: moved the libpam0g-dev install into .gitlab-ci.yml's .op before_script (plain apt-get, no sudo, since the CI job runs as root) instead of relying on the Makefile's check-build-requirements target there. That target still uses sudo for local/dev-machine builds, where it's needed. This also means the CI image itself no longer needs a separate rebuild to pick up libpam0g-dev.
danny commented 2026-07-05 13:23:42 +01:00 (Migrated from gitlab.keyop.co.uk)

All comments addressed in 4f75e05 (pushed) - replied individually on each thread above. go build/go vet/go test -race ./.../make lint (now including yamllint) are all clean.

All comments addressed in 4f75e05 (pushed) - replied individually on each thread above. go build/go vet/go test -race ./.../make lint (now including yamllint) are all clean.
danny commented 2026-07-05 13:41:00 +01:00 (Migrated from gitlab.keyop.co.uk)

added 1 commit

Compare with previous version

added 1 commit <ul><li>ffa2318d - Fix lint issues and CI</li></ul> [Compare with previous version](/keyop/go/nfq_forwarder/-/merge_requests/19/diffs?diff_id=260&start_sha=4f75e05960efeb43e3934d75e82452ff6218e2e2)
danny commented 2026-07-05 13:41:53 +01:00 (Migrated from gitlab.keyop.co.uk)

resolved all threads

resolved all threads
danny (Migrated from gitlab.keyop.co.uk) scheduled this pull request to auto merge when all checks succeed 2026-07-05 13:41:57 +01:00
danny commented 2026-07-05 13:42:03 +01:00 (Migrated from gitlab.keyop.co.uk)

approved this merge request

approved this merge request
danny (Migrated from gitlab.keyop.co.uk) merged commit 5cc03f780a into main 2026-07-05 13:42:06 +01:00
danny commented 2026-07-05 13:42:07 +01:00 (Migrated from gitlab.keyop.co.uk)

mentioned in commit 5cc03f780a

mentioned in commit 5cc03f780ad28fe201cf8250c1b8d3faac304d77
danny commented 2026-07-06 07:42:16 +01:00 (Migrated from gitlab.keyop.co.uk)

mentioned in commit 5f594c543b

mentioned in commit 5f594c543b4a9f096be0036d457fded28e181cf2
danny commented 2026-07-06 07:42:17 +01:00 (Migrated from gitlab.keyop.co.uk)

mentioned in commit 0f821305d8

mentioned in commit 0f821305d8d99e1326a9c9d9c950a7b717359d47
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
keyop-go/nfq_forwarder!60
No description provided.