Skip to content
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
f5fde81
set up next.js app and static build
DaltheCow May 9, 2025
fa5db74
convert to .eslintrc to match current state of project
DaltheCow May 9, 2025
8b16db5
update .eslintrc, tsconfig.json
DaltheCow May 9, 2025
15e867d
update eslint, tsconfig, husky, and dependencies
DaltheCow May 12, 2025
f7837ca
update file type
DaltheCow May 12, 2025
59ff861
merge
DaltheCow May 12, 2025
834cc1a
remove .eslintrc
DaltheCow May 12, 2025
3ae85e2
final updates
DaltheCow May 12, 2025
50a39ec
sort eslintrc
DaltheCow May 13, 2025
e1fd9ed
merge base
DaltheCow May 13, 2025
119f05a
sort extensions
DaltheCow May 13, 2025
56f89e2
merge base
DaltheCow May 13, 2025
d923f4a
sort
DaltheCow May 13, 2025
a515e12
resort
DaltheCow May 13, 2025
ded66cd
add extension
DaltheCow May 13, 2025
fe4d91a
merge base
DaltheCow May 13, 2025
544899a
add dev workflow
DaltheCow May 13, 2025
026a13f
remove testing pieces
DaltheCow May 13, 2025
fca89c5
navigate to ui directory for operations
DaltheCow May 13, 2025
b276f17
navigate to directory
DaltheCow May 13, 2025
32e95e9
add makefile
DaltheCow May 13, 2025
9faebcf
upgrade eslint-plugin-prettier, run make style
DaltheCow May 13, 2025
35a0726
Merge branch 'main' into implement-base-ui-app
DaltheCow May 20, 2025
8413655
run linting
DaltheCow May 20, 2025
c23c674
replace speculators with GuideLLM
DaltheCow May 21, 2025
1d5bd73
remove speculators from docs
DaltheCow May 21, 2025
43fdeb0
update tox.ini to exclude github view files (blobs) that break the li…
DaltheCow May 21, 2025
1e29968
not to ignore more than markdown for rich display mode
DaltheCow May 21, 2025
d09f685
Merge branch 'update-docs' into implement-base-ui-app
DaltheCow May 21, 2025
328b872
Merge branch 'implement-base-ui-app' into core-framework-setup
DaltheCow May 21, 2025
4b8b65a
run precommit
DaltheCow May 22, 2025
247d1cf
undo alteration of link checks, instead remove from workflows tempora…
DaltheCow May 22, 2025
4de602a
Merge branch 'update-docs' into implement-base-ui-app
DaltheCow May 22, 2025
bf52aa0
Merge branch 'implement-base-ui-app' into core-framework-setup
DaltheCow May 22, 2025
57e5c0a
Merge branch 'main' into implement-base-ui-app
DaltheCow May 27, 2025
aece79d
Merge branch 'main' into implement-base-ui-app
markurtz May 29, 2025
fd473fb
Merge branch 'implement-base-ui-app' into core-framework-setup
DaltheCow May 29, 2025
9ba8262
Update ui/src/app/page.tsx
DaltheCow May 29, 2025
bc08e33
Update ui/package.json
DaltheCow May 29, 2025
c58197e
Update ui/src/app/layout.tsx
DaltheCow May 29, 2025
8811a2a
move some configs to root, move /ui to src/ui
DaltheCow May 30, 2025
7f536c7
update versions
DaltheCow May 30, 2025
382118d
move tsconfig.json back down as next.js requires one with the source …
DaltheCow May 30, 2025
07b4029
move tsconfig.json and .eslint.json back to src/ui
DaltheCow May 30, 2025
4f30a31
remove .next dir at root I forgot was generated
DaltheCow May 30, 2025
8115ad2
move ui into src dir, update gitignore, remove readme, move package.j…
DaltheCow May 30, 2025
1faa5ce
Merge branch 'core-framework-setup' of github.com:neuralmagic/guidell…
DaltheCow May 30, 2025
e8bfbec
merge base, fix issues after merge
DaltheCow May 30, 2025
9c82abe
remove nested src dir
DaltheCow May 30, 2025
a281829
npm i
DaltheCow May 30, 2025
b8bf83c
merge main
DaltheCow May 30, 2025
041c657
merge main
DaltheCow May 30, 2025
0b49a48
reorder package.json
DaltheCow May 30, 2025
30217fb
ignore out for prettierignore
DaltheCow May 30, 2025
e6b6f67
update directory for workflow actions
DaltheCow May 30, 2025
699fbd5
run precommit checks
DaltheCow May 30, 2025
b3c9c1a
try removing makefile
DaltheCow May 30, 2025
cb0ba71
remove ui-development.yml and move jobs into development.yml
DaltheCow May 30, 2025
d9c2261
remove tslint-config-prettier
DaltheCow May 30, 2025
a0043c6
change baseUrl
DaltheCow May 30, 2025
436c210
pr review fixes: upgrade versions, change linting/formatting/ts configs
DaltheCow Jun 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/ui-development.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: UI-Development

on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:

jobs:
quality-check:
permissions:
contents: "read"
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Install dependencies
run: |
cd ui
npm ci

- name: Run quality and typing checks
run: |
cd ui
make quality

precommit-check:
permissions:
contents: "read"
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Install dependencies
run: |
cd ui
npm ci

- name: Run pre-commit checks
run: |
cd ui
npx husky run pre-commit
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,6 @@ cython_debug/
# Project specific files
*.json
*.yaml

# Turn off UI related ignores, defer to ui/.gitignore
!ui/**/*.json
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ You can either clone the repository directly or fork it if you plan to contribut
cd guidellm
```

For detailed instructions on setting up your development environment, please refer to the [DEVELOPING.md](https://github.com/neuralmagic/speculators/blob/main/DEVELOPING.md) file. It includes step-by-step guidance on:
For detailed instructions on setting up your development environment, please refer to the [DEVELOPING.md](https://github.com/neuralmagic/guidellm/blob/main/DEVELOPING.md) file. It includes step-by-step guidance on:

- Installing dependencies
- Running tests
Expand Down Expand Up @@ -114,8 +114,8 @@ If you encounter a bug or have a feature request, please open an issue on GitHub

## Community Standards

We are committed to fostering a welcoming and inclusive community. Please read and adhere to our [Code of Conduct](https://github.com/neuralmagic/speculators/blob/main/CODE_OF_CONDUCT.md).
We are committed to fostering a welcoming and inclusive community. Please read and adhere to our [Code of Conduct](https://github.com/neuralmagic/guidellm/blob/main/CODE_OF_CONDUCT.md).

## License

By contributing to Speculators, you agree that your contributions will be licensed under the [Apache License 2.0](https://github.com/neuralmagic/speculators/blob/main/LICENSE).
By contributing to GuideLLM, you agree that your contributions will be licensed under the [Apache License 2.0](https://github.com/neuralmagic/guidellm/blob/main/LICENSE).
14 changes: 7 additions & 7 deletions DEVELOPING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Developing for Speculators
# Developing for GuideLLM

Thank you for your interest in contributing to Speculators! This document provides detailed instructions for setting up your development environment, implementing changes, and adhering to the project's best practices. Your contributions help us grow and improve this project.
Thank you for your interest in contributing to GuideLLM! This document provides detailed instructions for setting up your development environment, implementing changes, and adhering to the project's best practices. Your contributions help us grow and improve this project.

## Setting Up Your Development Environment

Expand Down Expand Up @@ -142,7 +142,7 @@ tox
To ensure your changes are covered by tests, run:

```bash
tox -e test-unit -- --cov=speculators --cov-report=html
tox -e test-unit -- --cov=guidellm --cov-report=html
```

Review the coverage report to confirm that your new code is adequately tested.
Expand Down Expand Up @@ -181,7 +181,7 @@ Review the coverage report to confirm that your new code is adequately tested.

## Additional Resources

- [CONTRIBUTING.md](https://github.com/neuralmagic/speculators/blob/main/CONTRIBUTING.md): Guidelines for contributing to the project.
- [CODE_OF_CONDUCT.md](https://github.com/neuralmagic/speculators/blob/main/CODE_OF_CONDUCT.md): Our expectations for community behavior.
- [tox.ini](https://github.com/neuralmagic/speculators/blob/main/tox.ini): Configuration for Tox environments.
- [.pre-commit-config.yaml](https://github.com/neuralmagic/speculators/blob/main/.pre-commit-config.yaml): Configuration for pre-commit hooks.
- [CONTRIBUTING.md](https://github.com/neuralmagic/guidellm/blob/main/CONTRIBUTING.md): Guidelines for contributing to the project.
- [CODE_OF_CONDUCT.md](https://github.com/neuralmagic/guidellm/blob/main/CODE_OF_CONDUCT.md): Our expectations for community behavior.
- [tox.ini](https://github.com/neuralmagic/guidellm/blob/main/tox.ini): Configuration for Tox environments.
- [.pre-commit-config.yaml](https://github.com/neuralmagic/guidellm/blob/main/.pre-commit-config.yaml): Configuration for pre-commit hooks.
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ description = Run link checks for root and docs markdown files
deps =
.[dev]
commands =
mkdocs-linkcheck ./
mkdocs-linkcheck docs/
mkdocs-linkcheck ./ --exclude 'https://github\.com/.*/blob/.*'
mkdocs-linkcheck docs/ --exclude 'https://github\.com/.*/blob/.*'


[testenv:build]
Expand Down
2 changes: 2 additions & 0 deletions ui/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.vscode
48 changes: 48 additions & 0 deletions ui/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"next",
"next/core-web-vitals",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"ignorePatterns": [".vscode"],
"overrides": [
{
"files": ["*.mjs"],
"parser": "espree", // Use the default JavaScript parser for `.mjs` files
"parserOptions": {
"sourceType": "module"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"project": "./tsconfig.json",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "import", "no-secrets", "react"],
"root": true,
"rules": {
"complexity": ["warn", { "max": 8 }],
"curly": ["error", "all"],
"import/order": [
"error",
{
"groups": [["builtin", "external", "internal"]],
"newlines-between": "always"
}
],
"import/no-extraneous-dependencies": ["error"],
"no-secrets/no-secrets": ["error", { "additionalRegexes": {}, "ignoreContent": [] }]
}
}
41 changes: 41 additions & 0 deletions ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
6 changes: 6 additions & 0 deletions ui/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/node_modules
.vscode
/bin
/build
/public
/.meta
13 changes: 13 additions & 0 deletions ui/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 100,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
}
16 changes: 16 additions & 0 deletions ui/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CHECKDIRS := src


# Run checks on all files for the repo
quality:
@echo "Running quality checks";
@# Run eslint checks
npx eslint --max-warnings 10 $(CHECKDIRS)
@# Run TypeScript checks
npx tsc --noEmit

# Style the code according to accepted standards for the repo
style:
@echo "Running styling";
@# Auto fix any eslint issues
npx eslint --fix $(CHECKDIRS)
36 changes: 36 additions & 0 deletions ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
7 changes: 7 additions & 0 deletions ui/next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
output: "export",
};

export default nextConfig;
Loading
Loading