Future Idea Comments
This commit is contained in:
@@ -61,6 +61,33 @@ export const FILTER_PROFILES = {
|
||||
icon: '⚙️',
|
||||
proOnly: true,
|
||||
cols: { hour: true, air: true, rh: false, dew: false, wind: true, dir: false, cloud: false, sun: false, direct: false, diffuse: false, tmrt: false, delta: false, utci: false, uvA: false, uvB: false, burn: false, utciP: true, precip: true, soilT: false, soilT6: false, soilM: false, concreteT: false, vehicleT: false, indoorT: false, managedT: false, vis: false, aqi: false, pollen: false },
|
||||
// ── FUTURE FEATURE v2: Saved Custom Profiles (Pro) ───────────────────────
|
||||
// Expand 'Custom' into a fully user-owned profile system. Pro users can:
|
||||
//
|
||||
// • CREATE named profiles — give them a name and icon, choose any columns
|
||||
// • SAVE multiple profiles — stored in localStorage (or user account if we
|
||||
// add auth), each appearing as an extra pill in the profile button bar
|
||||
// • REORDER columns — drag-and-drop within the custom profile editor.
|
||||
// Column order is just an array of keys; shuffle the array, re-render.
|
||||
// The existing col visibility flags stay, reordering is a separate
|
||||
// `colOrder: ['hour', 'air', 'wind', ...]` array on the profile object.
|
||||
// • DELETE / RENAME profiles in a small management modal
|
||||
//
|
||||
// The 'Custom' button becomes "+ New Profile" when in profile-creation mode.
|
||||
// Existing preset profiles (Basic, Home, Vehicle…) remain read-only.
|
||||
//
|
||||
// Data shape per saved profile:
|
||||
// {
|
||||
// id: 'profile_abc123', // generated uuid
|
||||
// label: 'My Beach Days',
|
||||
// icon: '🏖️', // user picks from a small emoji set
|
||||
// cols: { ...standard col flags },
|
||||
// colOrder: ['hour', 'air', 'burn', 'wind', ...], // user's preferred order
|
||||
// createdAt: ISO string,
|
||||
// }
|
||||
//
|
||||
// Storage: JSON.stringify array in localStorage under 'sunscope_custom_profiles'.
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user