Conversation
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Implemented a comprehensive Star Folders system allowing users to organize trips into collections and generate public badges for specific folders.
Key changes:
calculateLatestStats,getRouteVisualData,sliceGeoJsonPath) into a shared utilitysrc/utils/stats.jsfor reuse across the app.RailRound.jsxto managefoldersandbadgeSettingsstate.FolderManagerModalfor creating, deleting, and toggling visibility (public/private) of folders.AddToFolderModaland integrated a Star button inRecordsViewfor quick trip organization.public/functions/api/user/data.jsto persist folders and synchronize public folder hashes to independent KV entries (badge:{hash}) for efficient public access.public/functions/api/card.jsto support both global profile keys (?key=) and folder-specific hashes (?hash=), while enforcing a global "Enable Badges" master switch.GithubCardModalto allow users to toggle global badge availability and select the badge source (Global vs. Specific Folder).This system allows users to curate specific trip collections for public display without exposing their entire travel history, while maintaining performant Edge Function execution.
PR created automatically by Jules for task 308046323796093293 started by @OsakaLOOP