Skip to content

feat: add dashboard interface and quality scripts#10

Open
nasmans wants to merge 1 commit intomainfrom
codex/run-lint-and-tests-to-ensure-no-errors
Open

feat: add dashboard interface and quality scripts#10
nasmans wants to merge 1 commit intomainfrom
codex/run-lint-and-tests-to-ensure-no-errors

Conversation

@nasmans
Copy link
Copy Markdown
Owner

@nasmans nasmans commented Oct 29, 2025

Summary

  • build an Arabic dashboard UI with generated sections for metrics, tasks, and events
  • add lightweight Node scripts for linting, testing, and serving the static assets
  • document development and deployment steps in the README

Testing

  • npm run lint
  • npm run test

https://chatgpt.com/codex/tasks/task_b_690262c8b6f88328a71082e135b8e75c

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +19 to +23
function resolvePath(requestPath) {
const decodedPath = decodeURIComponent(requestPath.split("?")[0]);
const relativePath = decodedPath === "/" ? "index.html" : decodedPath.replace(/^\/+/, "");
return join(ROOT, relativePath);
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Block directory traversal in dev server

The path resolution trims only leading slashes (decodedPath.replace(/^\/+/, "")) before joining with the server root. A request such as /../package.json therefore resolves to <root>/../package.json, allowing clients to fetch files outside the intended static directory. Even for a local dev server this exposes arbitrary files on the machine. Normalize the request path (path.resolve) and reject paths that escape the root.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant