Skip to content

feat: add observable UX for community interaction tracking #7512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

Cristhianzl
Copy link
Member

This pull request introduces changes to the User model in the src/backend/base/langflow/services/database/models/user/model.py file to support user opt-in actions. The most important changes include adding a new UserOptin class, updating the User model to include user_optin data, and modifying related models to accommodate the new field.

Changes to support user opt-in actions:

  • Added UserOptin class to define opt-in actions such as github_starred, dialog_dismissed, and discord_clicked.
  • Updated the User model to include a user_optin field, which stores opt-in data as a JSON object.
  • Modified the UserRead model to include the user_optin field.
  • Modified the UserUpdate model to include an optional user_optin field.

Additional updates:

  • Imported Dict and JSON from typing and sqlmodel respectively to support the new user_optin field.

…etter organization and extensibility

♻️ (model.py): refactor User model to include user_optin field as a dictionary to store opt-in actions for users
@Cristhianzl Cristhianzl self-assigned this Apr 8, 2025
@Cristhianzl Cristhianzl requested a review from ogabrielluiz April 8, 2025 20:57
@github-actions github-actions bot added the enhancement New feature or request label Apr 8, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 8, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 9, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 9, 2025
Cristhianzl and others added 4 commits April 9, 2025 16:30
… to store user preferences

♻️ (model.py): Refactor UserOptin class to BaseModel for better type hinting and add optins field to User model with default values and proper typing
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 9, 2025
@Cristhianzl Cristhianzl changed the title feat: optins feat: add observable UX for community interaction tracking Apr 9, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 9, 2025
…n was not being added if it already existed in the user table
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 10, 2025
…ity information and actions

✨ (main-page.tsx): Add new page CollectionPage to manage collections and folders
🔧 (routes.tsx): Update import path for CollectionPage to point to the new main-page file
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 14, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 15, 2025
…a3' for consistency

🔧 (AccountMenu/index.tsx): Adjust classNameSize prop value to 'w-[272px]' for styling consistency
🔧 (HeaderMenu/index.tsx): Update HeaderMenuItems component to accept classNameSize prop for dynamic styling
🔧 (langflow-counts.tsx): Adjust styling for better visual consistency and spacing
🔧 (index.tsx): Update className for Bell icon to include text-muted-foreground and strokeWidth
🔧 (get-started-progress.tsx): Update styling and spacing for better visual consistency
🔧 (header-buttons.tsx): Add Separator component for visual separation in HeaderButtons component
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 15, 2025
…r better alignment and spacing. Fix ThemeButtons positioning for improved layout.
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 15, 2025
…folders in the app header component

📝 (get-started-progress.tsx): Update heading tag to improve semantics
📝 (empty-page.tsx): Update text content in empty page to provide clearer instructions and information
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 15, 2025
… BackgroundGradient component

🔧 (empty-page.tsx): Remove BackgroundGradient import and replace it with EnhancedBeamEffect component
🔧 (empty-page.tsx): Update styles and classes for EnhancedBeamEffect component and adjust layout
✨ (enchanced-beam-effect.tsx): Create EnhancedBeamEffect component to add enhanced beam effect to UI components
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 15, 2025
…ponent for better user experience

📝 (frontend): add data-testid attributes for testing purposes in various components
🔧 (frontend): add new test file for user progress tracking feature with Playwright tests
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 16, 2025
…he account menu component

🔧 (user-progress-track.spec.ts): Add utility function addNewUserAndLogin to facilitate adding and logging in new users for testing purposes
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 16, 2025
@Cristhianzl Cristhianzl marked this pull request as ready for review April 16, 2025 20:02
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Apr 16, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant