Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin UI #13

Merged
merged 44 commits into from
Jan 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
07de501
admin app
TomConner Dec 15, 2024
96d0454
remove admin-app
TomConner Dec 17, 2024
78b490d
create backup dir
TomConner Dec 17, 2024
e8bc39d
server update dependencies
TomConner Dec 17, 2024
dbdc927
PORT env
TomConner Dec 17, 2024
3dacb28
Merge branch 'adminui' of github.com:TomConner/tree105 into adminui
TomConner Dec 17, 2024
0fed403
initial admin-app using vite and ts
TomConner Dec 17, 2024
6003234
admin app
TomConner Dec 17, 2024
f8a3e61
updates
TomConner Dec 22, 2024
0f5c65f
daily reporting
TomConner Dec 28, 2024
7c3bbcb
dev server
TomConner Dec 28, 2024
ea5c379
environment
TomConner Dec 28, 2024
79957b2
dev env backend listen on localhost
TomConner Dec 28, 2024
dfe4a28
pickups on client side data
TomConner Dec 28, 2024
8b290c7
pickups dashboard
TomConner Dec 28, 2024
7c775f4
run server script
TomConner Dec 29, 2024
14256c2
fix Intent backref, was 'orders'
TomConner Dec 29, 2024
7f50668
dev admin functions
TomConner Dec 29, 2024
48c86c7
table component
TomConner Dec 30, 2024
f3c3864
dev_front
TomConner Dec 30, 2024
4d9eefe
pickups query
TomConner Dec 30, 2024
7f62106
ignore pickups.csv
TomConner Dec 30, 2024
3bd9076
ocreated
TomConner Dec 30, 2024
ae3c7a3
address one line, order_created date
TomConner Dec 30, 2024
943ddf2
order_created instead of ocreated
TomConner Dec 30, 2024
9b871a5
pickups dashboard with csv download
TomConner Dec 30, 2024
02d013e
Merge branch 'main' into adminui
TomConner Dec 30, 2024
7ab05f6
dev admin script
TomConner Jan 1, 2025
8b81871
resolve tsc compile errors
TomConner Jan 1, 2025
ec971f6
sort requirements
TomConner Jan 2, 2025
4faff98
build hugo and vite to public, run dev from docker compose
TomConner Jan 2, 2025
c444575
recreate pickups DB view needed by admin-app
TomConner Jan 2, 2025
39da81f
deployoment without Hugo server
TomConner Jan 2, 2025
5286401
pickups view
TomConner Jan 3, 2025
6255a2b
email history view
TomConner Jan 3, 2025
8585e36
pickups view
TomConner Jan 3, 2025
a2bb6ab
dev admin
TomConner Jan 3, 2025
682e003
email confirmations with payment, previous year, and signup status
TomConner Jan 3, 2025
d63c565
db views
TomConner Jan 3, 2025
2238043
import sendgrid and stripe
TomConner Jan 3, 2025
bc1efa4
ignore temp data files
TomConner Jan 3, 2025
1f85b37
better column sorting
TomConner Jan 4, 2025
3210ba6
email history tab
TomConner Jan 4, 2025
02ff660
email history tab
TomConner Jan 4, 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
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ caddy/Caddyfile
db
work
.env
*.log
server/pickups.csv
bin/email-confirm.json
bin/email-history.csv
server/contacts.csv
server/stripe_charges.csv
email_history.json
24 changes: 24 additions & 0 deletions admin-app/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

8 changes: 8 additions & 0 deletions admin-app/.vite/deps/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"hash": "e85600ab",
"configHash": "cb476737",
"lockfileHash": "83b2e086",
"browserHash": "921a996e",
"optimized": {},
"chunks": {}
}
3 changes: 3 additions & 0 deletions admin-app/.vite/deps/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
50 changes: 50 additions & 0 deletions admin-app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default tseslint.config({
languageOptions: {
// other options...
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
})
```

- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
- Optionally add `...tseslint.configs.stylisticTypeChecked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:

```js
// eslint.config.js
import react from 'eslint-plugin-react'

export default tseslint.config({
// Set the react version
settings: { react: { version: '18.3' } },
plugins: {
// Add the react plugin
react,
},
rules: {
// other rules...
// Enable its recommended rules
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
},
})
```
21 changes: 21 additions & 0 deletions admin-app/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/index.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}
28 changes: 28 additions & 0 deletions admin-app/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
)
13 changes: 13 additions & 0 deletions admin-app/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.jpg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Troop 105 Tree Pickup</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading