redhat-et / redhat-et/docsclaw
refactor: extract shared HTML template for dashboard scenario pages
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 2
- Forks
- 1
- Avg merge
- 6h 9m
- Merged PRs (30d)
- 1
Description
From PR #66 review (GLM 5.1, finding #14):
The three scenario HTML files (finance.html, security.html, hr.html)
duplicate the doc-viewer, totals bar, and agent-table boilerplate.
Options:
- Generate pages server-side with
html/template - Extract shared components to a JS function that builds the DOM
- Use a single page with JS routing based on URL hash
Low priority — three files is manageable and each has scenario-specific
JS that would complicate a shared template.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read finance.html, security.html, and hr.html, focusing on the duplicated doc-viewer, totals bar, and agent-table markup and each file’s scenario-specific JS. Review PR #66 finding #14 and compare the listed html/template, shared-JS, and hash-routing options. Done means one agreed approach removes the shared boilerplate without breaking scenario-specific behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, html, javascript
- Domain
- frontend, web-dev
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100