Skip to content
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

Fix Button Visibility Issue on Bug Bounties Page #2414

Closed

Conversation

MAHALAKSHMImahalakshmi
Copy link

Summary

This pull request addresses an issue where the "MORE INFO" button on the Bug Bounties page was not visible by default and only appeared on hover. The button is now visible at all times and changes color when hovered over.

Changes Made

  • Updated the HTML structure for the "MORE INFO" button.
  • Added inline styles to ensure the button is always visible.
  • Applied hover state styles for better user experience.

Testing

  • Verified that the button is visible by default.
  • Confirmed that the button changes color on hover.

Screenshots

Screenshot 2024-07-08 at 1 28 41 PM

Copy link
Collaborator

@DonnieBLT DonnieBLT left a comment

Choose a reason for hiding this comment

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

Thank you!

@DonnieBLT DonnieBLT enabled auto-merge (squash) July 15, 2024 21:36
@DonnieBLT
Copy link
Collaborator

thank you for the contribution, please make sure to add yourself to the contributors file

@MAHALAKSHMImahalakshmi
Copy link
Author

Hi,

I am currently encountering an issue while trying to run a local setup to pass test cases before merging a pull request. My Poetry-managed project requires Python 3.11.2. However, my current setup has Python 3.11.5, which does not support the Poetry shell for this project.

I attempted to uninstall Python 3.11.5 and reinstall Python 3.11.2, but I faced issues verifying the installation of Python 3.11.2. I also referred to several setup guides and videos but could not find a solution to resolve this issue.

Steps Taken:

Uninstalled Python 3.11.5.
Attempted to install Python 3.11.2.
Faced verification issues with Python 3.11.2 installation.
Request:

Could you please provide guidance on correctly setting up Python 3.11.2 for my project to ensure compatibility with Poetry shell? Any detailed steps or troubleshooting tips would be greatly appreciated.

Thank you for your support and encouragement.

Best regards,
Mahalakshmi R

@DonnieBLT
Copy link
Collaborator

To resolve the issue of setting up Python 3.11.2 for your Poetry-managed project, follow these steps to ensure a correct and clean installation:

  1. Uninstall Existing Python Versions:

    • Make sure to remove any existing Python installations to avoid conflicts. On Windows, you can do this through the Control Panel. On macOS or Linux, you may need to remove them from the package manager or manually.
  2. Download Python 3.11.2:

  3. Install Python 3.11.2:

    • Run the installer and ensure you check the option to add Python to your PATH during installation.
    • On Windows, you can use the executable installer.
    • On macOS, you can use the .pkg installer or Homebrew:
      brew install [email protected]
  4. Verify the Installation:

    • Open a terminal or command prompt and check the Python version:
      python --version
    • Ensure it shows Python 3.11.2.
  5. Install and Configure Poetry:

    • If Poetry is not already installed, you can install it using the following command:
      curl -sSL https://install.python-poetry.org | python3 -
    • Add Poetry to your PATH:
      export PATH="$HOME/.local/bin:$PATH"
      • For Windows, you might need to update your system PATH through the System Properties > Environment Variables.
  6. Set the Python Version for Your Project:

    • Navigate to your project directory.
    • Set the Python version in your pyproject.toml file:
      [tool.poetry]
      name = "your_project_name"
      version = "0.1.0"
      description = ""
      authors = ["Your Name <[email protected]>"]
      
      [tool.poetry.dependencies]
      python = "^3.11.2"
  7. Create a Virtual Environment with Poetry:

    • Run the following command to create a virtual environment with the specified Python version:
      poetry env use python3.11
  8. Install Project Dependencies:

    • Once the environment is set up, install the dependencies:
      poetry install
  9. Activate the Poetry Shell:

    • Activate the shell to work within the virtual environment:
      poetry shell

Troubleshooting Tips:

  • Check Environment Variables:
    Ensure that there are no conflicting environment variables that point to another Python version.

    echo $PATH
  • Virtual Environment Issues:
    If you encounter issues with the virtual environment, you can remove it and recreate it:

    poetry env remove python3.11
    poetry env use python3.11
  • Permissions:
    Ensure you have the necessary permissions to install and configure Python and Poetry on your system.

Following these steps should help you set up Python 3.11.2 for your project and ensure compatibility with the Poetry shell. If you encounter any specific errors, please share the details, and I can provide more targeted assistance.

@MAHALAKSHMImahalakshmi
Copy link
Author

MAHALAKSHMImahalakshmi commented Jul 17, 2024

Dear DonnieBLT Sir,

I noticed that beginners, like myself, might encounter difficulties in setting up Docker environments, especially when trying to find Python 3.11.2. For those facing challenges, I recommend following this step-by-step guide:

-Install Docker and sign in with your respective email.
-Open your terminal and navigate to Docker.
-Copy and paste the installation command from the Docker documentation: docker-compose build.
-Start Docker with: docker-compose up.
-NOTE : * After obtaining the HTTP link, please avoid clicking it immediately.
* Instead, follow these steps in your local terminal

-Copy and paste: docker ps in local terminal as mentioned in NOTE
You should see output similar to this in local terminal:


bash Copy code
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES abcdef123456 myapp_image "python manage.py run…" 2 hours ago Up 2 hours 0.0.0.0:8000->8000/tcp myapp_container

NOTE : Each container has a unique ID. For reference, the container ID might look like abcdef123456.

-Then, paste: docker exec -it /bin/bash (replace with your actual ID, e.g., abcdef123456).

-Next, paste: python manage.py migrate.

-Finally, paste: python manage.py collectstatic.

-After completing these steps, you can safely click the URL link, and it should open successfully.

-This detailed guide is designed to assist beginners in navigating their Docker environments effectively.

Best regards,

Mahalakshmi R

@MAHALAKSHMImahalakshmi
Copy link
Author

MAHALAKSHMImahalakshmi commented Jul 17, 2024

username and password

is it safe using my mail id

I did not get email for conformation my mail id
can I get guide for the next step to merge
it asking Run Tests Expected
Run pre-commit Expected
I am sorry for distrubing ,since I am beginer .I need your vauable guidelines sir.

@DonnieBLT DonnieBLT enabled auto-merge (squash) July 21, 2024 21:26
@DonnieBLT
Copy link
Collaborator

I'm not seeing any issue with this code, so I have approved it.

@DonnieBLT
Copy link
Collaborator

looks like you need to run pre-commit

Copy link
Collaborator

@DonnieBLT DonnieBLT left a comment

Choose a reason for hiding this comment

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

please format with pre-commit

@DonnieBLT
Copy link
Collaborator

Did you get it @MAHALAKSHMImahalakshmi ?

@DonnieBLT DonnieBLT added the NIL label Aug 8, 2024
@DonnieBLT DonnieBLT closed this Nov 28, 2024
auto-merge was automatically disabled November 28, 2024 21:29

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants