Skip to content

chore: bump version to 0.58.0 and enhance profile management#34

Merged
danieldanielecki merged 2 commits into
mainfrom
feature/fix-user-profile
May 18, 2026
Merged

chore: bump version to 0.58.0 and enhance profile management#34
danieldanielecki merged 2 commits into
mainfrom
feature/fix-user-profile

Conversation

@danieldanielecki
Copy link
Copy Markdown
Member

  • Increment version number in package.json to 0.58.0.
  • Introduce ProfilePage and ProfileSettings components for user profile management.
  • Implement explanation provider management with local storage integration.
  • Update AIPredictionPanel and StockOfTheDayPanel to reflect changes in provider handling.
  • Enhance subscription API response to include additional subscription details.

- Increment version number in package.json to 0.58.0.
- Introduce ProfilePage and ProfileSettings components for user profile management.
- Implement explanation provider management with local storage integration.
- Update AIPredictionPanel and StockOfTheDayPanel to reflect changes in provider handling.
- Enhance subscription API response to include additional subscription details.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 18, 2026

Mistral code review

Review

Correctness

  • home-page-client.tsx: The changes to fetch data with the AI provider headers and listen for provider changes look correct. The aiProviderVersion state and event listener ensure the data is refetched when the provider changes.
  • profile/page.tsx: The new profile page component is correctly implemented and imports the ProfileSettings component.
  • stock-of-the-day/page.tsx: Similar to the home page, the changes to fetch data with the AI provider headers and listen for provider changes are correct.
  • current/route.ts: The changes to include additional subscription details in the response are correct.
  • AIPredictionPanel.tsx and StockOfTheDayPanel.tsx: The changes to update the link to the profile page are correct.
  • Navigation.tsx: The changes to the navigation component are correct, including the addition of a new profile link.
  • ProfileSettings.tsx: The new profile settings component is correctly implemented, including the logic for managing the explanation provider, subscription, and API keys.
  • StockOfTheDayPanel.tsx: The changes to update the link to the profile page are correct.
  • UserProfileMenu.tsx: The changes to the user profile menu are correct, including the removal of the explanation provider and API key management logic.
  • explanation-provider.ts: The new file for managing explanation providers is correctly implemented.
  • nav-routes.ts: The changes to include the profile route in the navigation are correct.
  • package.json: The version update is correct.
  • stripe-billing.service.ts: The changes to handle missing Stripe resources and resolve customer IDs are correct.
  • subscription-store.service.ts: The changes to update subscription records are correct.
  • subscription.service.ts: The changes to include the getSubscriptionRecord method are correct.

Edge Cases

  • home-page-client.tsx: The changes handle the case where the provider is not set in localStorage.
  • stock-of-the-day/page.tsx: Similar to the home page, the changes handle the case where the provider is not set in localStorage.
  • current/route.ts: The changes handle the case where the subscription record is not found.
  • ProfileSettings.tsx: The component handles various edge cases, such as when the user is not signed in, when the subscription is not found, and when the provider is not allowed for the current tier.
  • stripe-billing.service.ts: The changes handle various edge cases, such as when the Stripe customer or subscription is not found.
  • subscription-store.service.ts: The changes handle the case where the subscription record is not found.

Security

  • home-page-client.tsx: The changes do not introduce any security issues.
  • profile/page.tsx: The new profile page component does not introduce any security issues.
  • stock-of-the-day/page.tsx: The changes do not introduce any security issues.
  • current/route.ts: The changes do not introduce any security issues.
  • AIPredictionPanel.tsx and StockOfTheDayPanel.tsx: The changes do not introduce any security issues.
  • Navigation.tsx: The changes do not introduce any security issues.
  • ProfileSettings.tsx: The component does not introduce any security issues.
  • StockOfTheDayPanel.tsx: The changes do not introduce any security issues.
  • UserProfileMenu.tsx: The changes do not introduce any security issues.
  • explanation-provider.ts: The new file does not introduce any security issues.
  • nav-routes.ts: The changes do not introduce any security issues.
  • package.json: The changes do not introduce any security issues.
  • stripe-billing.service.ts: The changes do not introduce any security issues.
  • subscription-store.service.ts: The changes do not introduce any security issues.
  • subscription.service.ts: The changes do not introduce any security issues.

Performance

  • home-page-client.tsx: The changes do not introduce any performance issues.
  • profile/page.tsx: The new profile page component does not introduce any performance issues.
  • stock-of-the-day/page.tsx: The changes do not introduce any performance issues.
  • current/route.ts: The changes do not introduce any performance issues.
  • AIPredictionPanel.tsx and StockOfTheDayPanel.tsx: The changes do not introduce any performance issues.
  • Navigation.tsx: The changes do not introduce any performance issues.
  • ProfileSettings.tsx: The component does not introduce any performance issues.
  • StockOfTheDayPanel.tsx: The changes do not introduce any performance issues.
  • UserProfileMenu.tsx: The changes do not introduce any performance issues.
  • explanation-provider.ts: The new file does not introduce any performance issues.
  • nav-routes.ts: The changes do not introduce any performance issues.
  • package.json: The changes do not introduce any performance issues.
  • stripe-billing.service.ts: The changes do not introduce any performance issues.
  • subscription-store.service.ts: The changes do not introduce any performance issues.
  • subscription.service.ts: The changes do not introduce any performance issues.

Maintainability

  • home-page-client.tsx: The changes improve maintainability by centralizing the logic for managing the AI provider headers and listening for provider changes.
  • profile/page.tsx: The new profile page component improves maintainability by providing a dedicated page for managing the user's profile.
  • stock-of-the-day/page.tsx: The changes improve maintainability by centralizing the logic for managing the AI provider headers and listening for provider changes.
  • current/route.ts: The changes improve maintainability by including additional subscription details in the response.
  • AIPredictionPanel.tsx and StockOfTheDayPanel.tsx: The changes improve maintainability by updating the link to the profile page.
  • Navigation.tsx: The changes improve maintainability by adding a new profile link to the navigation.
  • ProfileSettings.tsx: The new profile settings component improves maintainability by providing a dedicated component for managing the user's profile.
  • StockOfTheDayPanel.tsx: The changes improve maintainability by updating the link to the profile page.
  • UserProfileMenu.tsx: The changes improve maintainability by removing the explanation provider and API key management logic from the user profile menu.
  • explanation-provider.ts: The new file improves maintainability by centralizing the logic for managing explanation providers.
  • nav-routes.ts: The changes improve maintainability by including the profile route in the navigation.
  • package.json: The changes improve maintainability by updating the version.
  • stripe-billing.service.ts: The changes improve maintainability by handling missing Stripe resources and resolving customer IDs.
  • subscription-store.service.ts: The changes improve maintainability by providing a method for updating subscription records.
  • subscription.service.ts: The changes improve maintainability by including the getSubscriptionRecord method.

Summary

The changes look good overall. They improve maintainability, correctness, and edge case handling. The security and performance aspects are not affected.

…and UserProfileMenu components

- Adjust formatting of JSX elements for better readability in ProfileSettings and UserProfileMenu.
- Update event listener cleanup function for consistency.
- Enhance the layout of loading and subscription messages for improved clarity.
@github-actions
Copy link
Copy Markdown

🚀 Vercel Preview Deployment Ready!

Preview: https://stock-e9y77xe6p-ditectrevs-projects.vercel.app


This comment was automatically generated by GitHub Actions

@danieldanielecki danieldanielecki merged commit f91fae6 into main May 18, 2026
8 of 9 checks passed
@danieldanielecki danieldanielecki deleted the feature/fix-user-profile branch May 18, 2026 07:33
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.

1 participant