Implement dynamic column reordering with numeric order field and realtime sync

- Add order field to all columns in DEFAULT_SETTINGS (1-47)
- Settings page: reorder columns via numeric input or up/down arrows, autosave after 400ms
- Estimator table: render columns in order specified by order field, refresh on settings updates
- Normalize column orders on load and realtime updates with fallback for missing order
- Add logging to trace column order changes through settings and estimator pages
- Reset button reinitializes all settings to defaults with proper column ordering
- Table reload prevents concurrent requests to avoid PocketBase auto-cancellation
This commit is contained in:
Golwhit
2025-12-29 23:18:10 -06:00
parent dfc6da8324
commit 821fafd990
3 changed files with 424 additions and 183 deletions
+3 -3
View File
@@ -466,9 +466,9 @@ app.get('/api/export/schema', async (c) => {
const PORT = Number(process.env.PORT || 6500);
console.log(`\n🚀 Server running on port ${PORT}`);
console.log(`📊 Estimator Table: \x1b[36mhttp://localhost:${PORT}/\x1b[0m`);
console.log(`⚙️ Settings: \x1b[36mhttp://localhost:${PORT}/appsettings.html\x1b[0m\n`);
// Keep concise startup pointers
console.log(`📊 Estimator Table: http://localhost:${PORT}/`);
console.log(`⚙️ Settings: http://localhost:${PORT}/appsettings.html`);
export default {
port: PORT,