- Updated USER_GUIDE.md with Pixel 9a mobile screenshots (login, dashboard, manual form, assets list, map, drawer) - Added ADMIN_GUIDE.md with admin panel screenshots (login, dashboard, customers, sync page) - 10 screenshots captured at 412x892 viewport @2.625 DPR - Removed stale old image references, replaced with new p9a_* images
5.7 KiB
Canteen Admin Panel — User Guide
Administrative interface for managing customers, locations, users, geofences, settings, and Cantaloupe data sync. Designed for desktop but mobile-responsive (screenshots from Pixel 9a).
Table of Contents
- Accessing the Admin Panel
- Dashboard Overview
- Managing Customers & Locations
- Managing Users
- Geofences (Service Areas)
- Settings & Configuration
- Cantaloupe Data Sync
- Activity Log & Reports
- Tips & Troubleshooting
1. Accessing the Admin Panel
Open your browser and go to:
https://admin.canteen.ourpad.casa
Logging In
Use the same credentials as the main app:
| Role | Username | Password |
|---|---|---|
| Admin | admin |
changeme |
2. Dashboard Overview
After logging in, the dashboard shows:
- Total Assets count
- Total Check-ins count
- Active Users count
- Recent Activity feed
- Quick access to all management sections via the sidebar
Sidebar Navigation
The sidebar on the left provides access to:
- 📊 Dashboard — Stats overview and activity feed
- 🏢 Customers — Customer and location management
- 👥 Users — User account management
- 📍 Geofences — Service area polygon management
- 🔄 Sync — Cantaloupe data import
- ⚙️ Settings — Categories, makes, models, key types, badge types
- 📋 Activity — Full activity log with filters
- 📤 Exports — CSV data export
3. Managing Customers & Locations
Customers
The Customers page shows a searchable list of all customers.
Add a Customer:
- Click + Add Customer
- Enter the customer's name
- Optionally add contacts (name, phone, email)
- Click Save
Edit/Delete: Use the ✏️ and 🗑 buttons next to each customer.
Locations
Within each customer's detail view, you can add locations:
- Click on a customer to expand their details
- + Add Location — Add a new site/building
- Location fields: name, address, building name, floor, site hours, trailer number, access notes, walking directions, GPS coordinates
4. Managing Users
Navigate to 👥 Users in the sidebar.
Add a User:
- Click + Add User
- Enter username, password, and select a role (admin / technician / readonly)
- Techs can create assets and check-ins; readonly users can only view
5. Geofences (Service Areas)
Navigate to 📍 Geofences in the sidebar.
- + Add Geofence — Draw a polygon on the map to define a service area
- Assign geofences to specific users/technicians
- Edit or delete existing geofences
Geofences appear as colored polygons on the main app's map for visual reference.
6. Settings & Configuration
Navigate to ⚙️ Settings in the sidebar.
Manage these lookup tables:
- Categories — Asset categories (Appliances, Furniture, etc.)
- Makes — Manufacturer names (Canteen, Hobart, Vollrath, etc.)
- Expand each make to manage its Models
- Key Names — Field service key names
- Key Types — Field service key types
- Badge Types — Asset badge types
7. Cantaloupe Data Sync
Navigate to 🔄 Sync in the sidebar.
The Cantaloupe Sync page lets you import asset data from the Cantaloupe vending management system.
How it Works
- Sync Now button — Downloads the latest Excel export from Cantaloupe and creates a pending import batch
- Upload Excel File — Manually upload a Cantaloupe Excel export file
- Review Changes — Each batch shows new, changed, and removed assets with field-level diffs
- Approve — Apply the changes to live data
- Reject — Discard the batch
Import History
The bottom section shows all past import batches with their status (PENDING / APPROVED / REJECTED / ERROR) and change summaries.
8. Activity Log & Reports
Activity Log
Navigate to 📋 Activity in the sidebar.
- Full chronological log of all actions (creates, updates, deletes, check-ins, logins)
- Filters: by user, action type, date range
- Uses pagination for large logs
CSV Exports
Available at the bottom of the sidebar:
- Export Assets — Download all assets as CSV
- Export Check-ins — Download check-ins filtered by asset
Database Reset
⚠️ Danger zone: The Reset Database button in the sidebar footer deletes ALL data and reinitializes with defaults. Requires confirmation.
9. Tips & Troubleshooting
Cantaloupe Sync Fails
- Check the credentials in the Cantaloupe downloader config
- The server must have network access to mycantaloupe.com
- Check the error message in the sync batch detail view
- Try the Upload Excel File option as a fallback
Admin Panel Not Loading
- Hard refresh (Ctrl+Shift+R on desktop, long-press refresh on mobile)
- Clear site data
- Check that both services are running (
canteen-main.serviceandcanteen-admin.service)
Permissions
- You must be logged in as an admin role user to access the admin panel
- Technicians and readonly users cannot access the admin panel
- Session tokens expire after 1 day (or 30 days with "Remember me")
Note: The admin panel shares the same database as the main app, so changes made here (customers, locations, geofences, settings) are immediately visible in the field app.