GSoC icon indicating copy to clipboard operation
GSoC copied to clipboard

cBioPortal User Profile Page

Open inodb opened this issue 10 months ago • 11 comments

Background

cBioPortal users can create and save various data artifacts during their analysis sessions, including virtual cohorts, custom groups, saved filters, and session bookmarks. Currently, these items are scattered across different parts of the application with no unified view. Users have no central place to manage their saved data, review their analysis history, or configure personal preferences.

As cBioPortal continues to evolve with new features — including AI-powered chat interfaces and experimental visualizations — there is also a growing need for users to opt-in to beta features before they are generally available.

Goal

Build a User Profile Page that serves as a centralized hub for users to:

  1. View and manage saved data: Virtual cohorts, custom groups, saved filters, session bookmarks, and any other user-generated artifacts
  2. Configure preferences: Default study selections, display settings, notification preferences
  3. Opt-in to experimental features: Allow users to enable beta features (e.g., AI chat, new visualizations) before general release
  4. Review account information: For authenticated users, display account details and data usage

Approach

1. Backend (Java / Spring Boot)

  • Re-use existing endpoints as much as possible to pull in all relevant user data

2. Frontend (React / TypeScript)

  • Build a new UserProfilePage component with tabbed navigation:
    • My Data: List and manage virtual cohorts, groups, saved sessions
    • Preferences: UI settings, defaults, notifications
    • Experimental Features: Toggle switches for beta features with descriptions
    • Account: User info, data usage, export/delete options
  • Add profile access via user menu in the main navigation

3. Feature Flag System

  • We currently use localStorage to indicate feature flags, we can show activated ones in the user profile
  • Provide clear descriptions and disclaimers for experimental features

Need skills

  • TypeScript & React: Required for building the profile UI

Resources

Possible mentors

@jfkonecn

inodb avatar Feb 02 '26 15:02 inodb

Hello @inodb and @jfkonecn,

I am interested in participating in this project and would like to contribute to building the User Profile Page for cBioPortal.

About Me

  • 3rd-year undergraduate student at IIT Kharagpur
  • Strong interest in full-stack, product-focused development
  • Comfortable working with large, existing codebases
  • Have experience working in startups and open source

Tech Stack & Skills

Frontend

  • React.js
  • Next.js
  • TypeScript
  • JavaScript (ES6+)
  • HTML5, CSS3
  • Tailwind CSS
  • Component-based architecture
  • State management, hooks
  • Tab-based dashboards and settings pages

Backend

  • Java
  • Spring Boot (REST APIs)
  • Node.js (basic)
  • Express.js
  • RESTful API integration

Databases

  • MongoDB
  • SQL

Full-Stack & Integration

  • Frontend–backend integration using REST APIs
  • Reusing existing endpoints and aggregating user data
  • Handling user-specific saved data and sessions
  • Feature flags using localStorage
  • Conditional UI rendering

Tools & Dev

  • Git & GitHub
  • Vercel / Netlify
  • AWS EC2 (basic)
  • Docker
  • Kubernetes
  • Postman
  • npm / yarn

Why This Project

  • Centralised management of user-generated artefacts
  • Building scalable, user-centric dashboards
  • Feature flag systems and opt-in experimental features
  • Strong alignment with React + TypeScript and Java backend integration

I am motivated to learn the cBioPortal codebase, follow best practices, and deliver production-quality contributions.
Happy to take up starter tasks and discuss next steps.

Prasad8830 avatar Feb 04 '26 17:02 Prasad8830

I can work on this and have a potential fix in mind. Let me know if I should proceed.

HimathX avatar Feb 22 '26 14:02 HimathX

Please submit proposals and CV's via the google summer of code website when they start the application period.

jfkonecn avatar Feb 24 '26 13:02 jfkonecn

Hi @jfkonecn and @inodb 👋

I’m Lokendra Mundele and I’m very interested in driving the User Profile Page work for cBioPortal (GSoC 2026). I think a centralized hub where users can manage virtual cohorts, saved filters/sessions, opt into experimental features, and set preferences will be hugely impactful — it will improve reproducibility, reduce user friction, and make it far easier for researchers to manage and revisit analyses (especially as AI and new viz features land).

Why I’m a good fit

Strong frontend experience with TypeScript + React and building data-driven, interactive UIs.

Practical experience designing visual, interactive projects — I built a 2D/3D visual solar-system project that includes information panels and interactive controls, so I’m comfortable with complex UI state, performance and usability concerns.

Comfortable integrating UI with backend APIs and designing clear UX flows for data-heavy pages (I focus on making complex data easy to scan and act on).

What I’d like to contribute first

Draft wireframes / clickable prototype for the UserProfilePage (tabbed: My Data, Preferences, Experimental Features, Account) so we can align on UX before coding.

Implement the My Data tab first: list/manage virtual cohorts, saved filters and session bookmarks using existing endpoints (I’ll reuse endpoints wherever possible and create minimal new API hooks if needed).

Add Experimental Features UI that reads/writes feature flags (showing current flags from localStorage / backend) with clear descriptions and opt-in disclaimers.

Iterate with the team on performance, permissions, and export/delete flows.

Quick wins I can deliver right away

Wireframes + an interactive mock (Figma or simple React prototype) within one week.

Small PR to add a route + skeleton UserProfilePage component and a list view for “My Data” (read-only) within 2–3 weeks to get early feedback.

Could you please advise:

Which repository (frontend repo / branch) should I clone first to start prototyping?

Any preferred API endpoints or backend owners I should coordinate with for pulling user artifacts?

Recommended starter issues or design notes I should read?

I’m excited to collaborate and can start immediately on the prototype + a first PR. Happy to share a short timeline and mockups once I know the preferred repo and any constraints.

Thanks — looking forward to contributing! — Lokendra

mundele2004 avatar Feb 28 '26 20:02 mundele2004

Hi @inodb and @jfkonecn,

This is a great initiative. Centralizing user artifacts (virtual cohorts, groups, session bookmarks) will definitely streamline the analysis process.

While looking into the architecture for a potential UserProfilePage, I had a few thoughts and insights regarding the implementation approach:

1. Data Aggregation Strategy While reusing existing endpoints (e.g., /api/virtual-studies, /api/groups) is ideal for minimizing backend changes, fetching them all independently on the client might lead to a waterfall of requests when switching to the "My Data" tab.

  • Insight: It might be beneficial to either heavily utilize concurrent fetching (Promise.all inside a dedicated UserProfileStore) or consider a lightweight aggregator endpoint in the backend that returns a summary of all artifacts for the authenticated user to improve initial page load.

2. Managing Experimental Feature Flags Currently, localStorage works well for client-side beta flags, but it leaves preferences tied to the user's specific browser/device.

  • Insight: For a true "User Profile" experience, we could consider eventually transitioning these toggle states to the backend DB. This would allow a researcher to opt into an experimental visualization on their lab desktop and have it reflect automatically when they log in from their laptop.

3. UI/UX Consistency Given cBioPortal's reliance on react-bootstrap and MobX, the UserProfilePage can likely abstract some of the existing robust table components (like LazyMobXTable) to manage the saved queries and virtual cohorts. This would ensure a consistent look and feel with the existing StudyView and ResultsView while minimizing new dependencies.

purvanshjoshi avatar Mar 04 '26 16:03 purvanshjoshi

Hi @inodb and @jfkonecn I’m Annu, currently contributing to cBioPortal, and I’m very interested in driving the User Profile Page initiative for GSoC 2026. After reviewing the frontend architecture (React + MobX + react-bootstrap) and the discussion above, I’d like to propose an approach that stays consistent with existing patterns while keeping scalability and user workflow in mind.

1. Data Aggregation Strategy (My Data Tab) For loading virtual studies, groups, saved sessions, and other user artifacts, I propose:

  • Creating a dedicated UserProfileStore (MobX) responsible for:

    • Concurrent fetching via Promise.all
    • Centralized loading and error states
    • Normalizing artifact data into a consistent structure
  • Lazy-loading data per tab to avoid blocking the initial render.

  • Caching results within the store to prevent redundant API calls when switching tabs.

If artifact volume grows significantly, we could evaluate introducing a lightweight backend aggregator endpoint that returns a summarized payload for the authenticated user to optimize request overhead.

Additionally, we should carefully handle:

  • Authentication state
  • Permission checks
  • Edge cases where users have no saved artifacts

2. Experimental Features (Feature Flags) Since feature flags are currently stored in localStorage, I would:

  • Introduce a FeatureFlagService abstraction layer instead of directly accessing localStorage in components.
  • Make flags reactive (MobX-observable) so UI updates automatically.
  • Provide clear descriptions and disclaimers for beta features.
  • Architect the system in a way that allows future migration to backend-persisted preferences (so feature flags can sync across devices). This keeps implementation lightweight today while preparing for long-term scalability.

3. UI Consistency & UX Alignment To maintain consistency with StudyView and ResultsView:

  • Reuse existing table components and styling patterns.
  • Follow current react-bootstrap conventions.
  • Avoid introducing new UI dependencies.
  • Integrate profile access via the existing user dropdown.

The objective is to ensure the UserProfilePage feels like a natural extension of cBioPortal not a separate dashboard.

If this plan aligns with your expectations, I would be glad to start with a small PR introducing the route and a basic UserProfileStore skeleton to receive early feedback. I would sincerely appreciate your guidance on the next steps. Annu

Annu881 avatar Mar 04 '26 19:03 Annu881

Hi @jfkonecn,

This project seems particularly impactful because cBioPortal users often perform complex exploratory workflows (creating virtual cohorts, applying filters, saving sessions, comparing gene alterations). However, once an analysis session ends, these artifacts become scattered across different parts of the interface, which makes it difficult for researchers to revisit or organize their work.

A centralized User Profile Page could significantly improve analysis reproducibility and workflow continuity.

While exploring the idea, a few design considerations stood out to me.

1. Organizing user artifacts as “analysis history”

Instead of only listing saved items (virtual cohorts, filters, sessions), it might be helpful to present them in a structure closer to an analysis workflow.

For example:

Recent Analysis

  • BRCA TCGA study – survival comparison (saved session)
  • TP53 mutation cohort (virtual cohort)
  • Custom filter: ER+ tumors

This would allow users to quickly resume or revisit past analyses without needing to remember where each artifact was originally created.

2. Artifact metadata and discoverability

To make the “My Data” tab more useful, artifacts could include lightweight metadata:

  • study name
  • creation date
  • last accessed
  • associated genes or filters
  • quick preview of cohort size

This would make scanning and managing saved data much easier than a simple list.

3. Preparing for AI-assisted workflows

With AI-powered features being explored in cBioPortal, the profile page could also act as a central place for managing AI interactions.

For example:

  • saved AI conversations
  • AI-generated cohorts or queries
  • opt-in controls for experimental AI features

Designing the profile architecture with this in mind could help avoid future redesigns.

4. Technical implementation direction

For the frontend, a UserProfileStore could aggregate artifact data from existing endpoints and normalize them into a consistent structure for rendering in tables or cards.

Data loading could be performed lazily per tab (My Data, Preferences, Experimental Features, Account) to avoid unnecessary API calls.

For experimental features, wrapping localStorage access inside a small FeatureFlagService abstraction could keep the UI reactive while allowing an easy migration to server-side persistence later.

I’m currently exploring the cbioportal-frontend repository to better understand how existing user artifacts (virtual studies, groups, saved sessions) are represented and accessed.

If there are recommended parts of the codebase to examine first for understanding artifact storage and retrieval, I would appreciate guidance.

arnvptl avatar Mar 15 '26 14:03 arnvptl

Hi @jfkonecn,

I’ve been reading through the project description for the User Profile Page feature and the associated frontend repository, and I’m very interested in contributing.

The idea of creating a centralized user hub that aggregates artifacts such as virtual cohorts, custom groups, saved filters, and session bookmarks seems like a valuable improvement for usability. Integrating preferences and experimental feature flags into the same interface also makes sense as the platform continues to add new capabilities like AI chat and experimental visualizations.

My background is primarily in React and TypeScript, and I have experience building dashboard-style interfaces and modular UI components. The proposed tab-based structure for the profile page (My Data / Preferences / Experimental Features / Account) looks like a clean and scalable approach.

I would like to start exploring the codebase and contributing. Are there any existing issues or areas in the frontend where contributions related to this feature would be most helpful?

Thanks!

koustubh-v avatar Mar 16 '26 14:03 koustubh-v

Hi @inodb @jfkonecn 👋,

I’m really interested in working on the User Profile Page for cBioPortal. I like how this idea brings everything (cohorts, filters, sessions, preferences) into one place — it feels like a much-needed UX improvement.

From what I understand, the main challenge is organizing all user-generated data cleanly while keeping the UI scalable as new features (like AI tools) are added.

My Approach

  • Build a tab-based React + TypeScript UI:

    • My Data
    • Preferences
    • Experimental Features
    • Account
  • Use reusable components for listing items like cohorts/sessions with actions (view, delete, export)

  • Handle data efficiently using tools like React Query

  • Structure feature flags properly instead of directly relying on localStorage

About Me

  • Comfortable with React, TypeScript, and structured UI development
  • Familiar with **API integration **
  • Strong foundation in **DSA ,ADA ,DVA and system design **

I’ve started exploring the frontend and backend repository

sarcaxticlarka avatar Mar 18 '26 05:03 sarcaxticlarka

Hi @jfkonecn and @inodb 👋 I'm Rahul Bhati, a full-stack engineer experienced in React, TypeScript, and Node.js, and I'd love to work on this issue for GSoC 2026. How I plan to approach this: Frontend (UserProfilePage - React/TypeScript)

  • Build a tabbed UserProfilePage component with four sections: My Data, Preferences, Experimental Features, and Account
  • For My Data, I'll consume existing session/virtual cohort endpoints and render them in a clean, filterable list with delete/rename actions
  • For Experimental Features, I'll read from localStorage feature flags and expose them as labeled toggle switches with descriptions and disclaimers
  • Wire profile access into the existing top-nav user menu

Backend (Java/Spring Boot)

  • Prioritize reusing existing endpoints (virtual studies, saved sessions) before introducing anything new
  • Only add endpoints where gaps genuinely exist (e.g., preference persistence)

Why I'm a good fit:

  • Currently building a production React Native SaaS app with real-time data, background sync, and CSV exports at TinyMinds -very similar to the data management patterns needed here
  • Built Second-Brain, an AI note-taking app in Next.js/TypeScript with user-specific persistent state - directly relevant to the preferences and saved-data tabs
  • Comfortable reading and navigating large existing codebases to reuse rather than rebuild

My first steps if selected:

  1. Clone and explore the frontend repo to understand the current session/cohort data flow
  2. Map all existing endpoints that can feed the My Data tab
  3. Draft a component tree and share it here for early feedback before writing any code

Happy to discuss the approach further or answer any questions. I've reviewed the Virtual Studies docs and the existing frontend structure to get a head start.

GitHub: github.com/Rahul-Bhati Portfolio: rahulbhati.github.io Thanks for putting this together excited about the potential here! Rahul Bhati

Rahul-Bhati avatar Mar 18 '26 13:03 Rahul-Bhati

Locking the conversation due to the AI generated comments. Please read the How to Apply section of our readme which includes how to ask questions to the team about google summer of code.

jfkonecn avatar Mar 18 '26 13:03 jfkonecn