Skip to content

Star Folders & Badge Management#16

Draft
google-labs-jules[bot] wants to merge 2 commits intomainfrom
star-folders-badge-308046323796093293
Draft

Star Folders & Badge Management#16
google-labs-jules[bot] wants to merge 2 commits intomainfrom
star-folders-badge-308046323796093293

Conversation

@google-labs-jules
Copy link
Contributor

Implemented a comprehensive Star Folders system allowing users to organize trips into collections and generate public badges for specific folders.

Key changes:

  • Refactored core geometric and statistical logic (calculateLatestStats, getRouteVisualData, sliceGeoJsonPath) into a shared utility src/utils/stats.js for reuse across the app.
  • Updated RailRound.jsx to manage folders and badgeSettings state.
  • Implemented FolderManagerModal for creating, deleting, and toggling visibility (public/private) of folders.
  • Implemented AddToFolderModal and integrated a Star button in RecordsView for quick trip organization.
  • Updated the backend endpoint public/functions/api/user/data.js to persist folders and synchronize public folder hashes to independent KV entries (badge:{hash}) for efficient public access.
  • Enhanced public/functions/api/card.js to support both global profile keys (?key=) and folder-specific hashes (?hash=), while enforcing a global "Enable Badges" master switch.
  • Updated GithubCardModal to 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

@google-labs-jules
Copy link
Contributor Author

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants