Skip to content

Conversation

@Sepulator
Copy link
Owner

Type of PR 🍩

  • Feature
  • Bugfix
  • Hotfix
  • Refactoring
  • Documentation
  • Infrastructure

Changes Introduced 🥯

  • Fixed:
    • redirect to main route from signup and signin while authenticated.
    • don't save variables in supabse
    • display values in code generator.

Self-Check ✅

  • No console errors (except API requests)
  • 80%+ test coverage
  • Documentation updated (if relevant)
  • Package.json scripts updated (if relevant)

@netlify
Copy link

netlify bot commented Sep 25, 2025

Deploy Preview for vatruzhka ready!

Name Link
🔨 Latest commit 2bfae4e
🔍 Latest deploy log https://app.netlify.com/projects/vatruzhka/deploys/68d51c0a720c690008ef6d49
😎 Deploy Preview https://deploy-preview-39--vatruzhka.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gemini-code-assist
Copy link

Summary of Changes

Hello @Sepulator, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request delivers a collection of bug fixes aimed at enhancing the overall stability and user experience of the application. Key improvements include streamlining the authentication flow by redirecting logged-in users from auth pages and providing better error feedback, ensuring that variables are properly resolved and displayed in the code generation feature, and preventing raw variable storage in the request history. Minor UI adjustments like simplified greetings and URL trimming also contribute to a more polished interface.

Highlights

  • Authentication Flow: Authenticated users are now automatically redirected from sign-up and sign-in pages to the main application route, improving navigation. Additionally, authentication actions now include fallback redirects with error messages for unexpected failures.
  • Code Generation Enhancement: The code generator now correctly displays resolved variable values within generated code snippets for headers, URLs, and request bodies, providing more accurate and ready-to-use code.
  • Variable Handling in Request History: Request history storage has been updated to save resolved variable values instead of raw variable placeholders for the request body, headers, and URL, ensuring a more accurate record of executed requests.
  • UI/UX Refinements: The 'Welcome back' greeting has been simplified by removing the dynamic user name, and the URL input field now automatically trims leading/trailing whitespace for cleaner data.
  • Response State Management: The HTTP request form now includes logic to reset the response state when initialized without specific parameters, ensuring a clean slate for new requests.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request addresses several bug fixes, including redirecting authenticated users from signup/signin pages, preventing variable saving in Supabase, and displaying values in the code generator. The changes also include trimming the URL in the rest client store and replacing variables in the history insert function.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a collection of bugfixes, including redirecting authenticated users from auth pages, ensuring variable values are used in code generation and request execution, and preventing variable placeholders from being saved to history. The changes are generally good, but I've found a bug in the code generation logic where the request body size is calculated incorrectly when using variables. I've also suggested a refactoring to simplify and centralize the variable substitution logic for better maintainability and efficiency.

@Sepulator Sepulator merged commit d31c0f4 into develop Sep 25, 2025
6 checks passed
@Sepulator Sepulator deleted the fix/collection-of-bugfix branch September 25, 2025 10:42
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.

2 participants