Williams-RE / WRE-website

For home-buyers to see real estate listings nearby.
https://williamsrealestates.com
0 stars 0 forks source link

style: updated css for contact button in Mobile and made select dropd… #48

Closed timeowilliams closed 1 month ago

timeowilliams commented 1 month ago

…own more consistent.

Type of change

Testing

Screenshots/Screen Recordings :

Notes

Summary by CodeRabbit

railway-app[bot] commented 1 month ago
πŸš… Deployed to the WRE-website-pr-48 environment in WRE Frontend Service Status Web Updated (UTC)
coderabbitai[bot] commented 1 month ago

Walkthrough

The changes involve the complete removal of the BuyAHome and SellAHome components along with their associated CSS files, which provided styling and functionality for home buying and selling interfaces. Additionally, modifications were made to the ModalButton component, simplifying its state management by removing the comment feature. The Resources component had an unused import removed, and new styles were added to the ModalButton.css file to enhance the user interface.

Changes

Files Change Summary
src/components/BuyAHome.css Removed styles for various classes related to the home-buying interface, including layout, buttons, and animations.
src/components/BuyAHome.jsx Completely removed the BuyAHome component, which managed the home buying process UI and interactions.
src/components/ModalButton.css Added new styles for .submit-button, .select-dropdown, and .label-style, and adjusted modal dimensions for smaller screens.
src/components/ModalButton.jsx Removed comment state and validation logic, simplifying the component to focus on name, email, and agent fields.
src/components/Resources.jsx Removed unused import statement for config.
src/components/SellAHome.css Removed styles for the home-selling component.
src/components/SellAHome.jsx Completely removed the SellAHome component, which managed the home selling process UI.
tests/e2e/contact.spec.js Removed line that filled the comment field in the contact form test, leading to submission without any comment input.

Possibly related PRs

Poem

πŸ‡ In a burrow deep where changes bloom,
The homes we buy now have no room.
Styles and components, all swept away,
A simpler path for a brighter day.
With buttons new and dropdowns neat,
A hopping good time, oh what a treat! 🏑✨

[!TIP]

OpenAI O1 model for chat - We have deployed OpenAI's latest O1 model for chat. - OpenAI claims that this model has superior reasoning capabilities than their GPT-4o model. - Please share any feedback with us in the [discussions post](https://discord.com/channels/1134356397673414807/1283929536186155099).

Recent review details **Configuration used: CodeRabbit UI** **Review profile: CHILL**
Commits Files that changed from the base of the PR and between 7352ceab1345d6bbb62c20c8f9d17bdbb5a30866 and 95490bfdbabc0d0ef856dd367ebf4e97a2713d46.
Files selected for processing (8) * src/components/BuyAHome.css (0 hunks) * src/components/BuyAHome.jsx (0 hunks) * src/components/ModalButton.css (2 hunks) * src/components/ModalButton.jsx (2 hunks) * src/components/Resources.jsx (0 hunks) * src/components/SellAHome.css (0 hunks) * src/components/SellAHome.jsx (0 hunks) * tests/e2e/contact.spec.js (0 hunks)
Files not reviewed due to no reviewable changes (6) * src/components/BuyAHome.css * src/components/BuyAHome.jsx * src/components/Resources.jsx * src/components/SellAHome.css * src/components/SellAHome.jsx * tests/e2e/contact.spec.js
Additional comments not posted (4)
src/components/ModalButton.css (2)
`108-110`: **LGTM!** The `.submit-button` class appropriately sets the button's width to 100%, which aligns with the PR objective of improving the contact button styling for mobile devices. This change enhances usability by ensuring the button occupies the full width of its container on smaller screens. --- `112-118`: **LGTM!** The `.select-dropdown` class effectively styles the dropdown elements with appropriate padding, border, border-radius, background color, and font size properties. These changes align with the PR objective of enhancing the consistency of the select dropdown and contribute to improved usability and visual appeal.
src/components/ModalButton.jsx (2)
`49-49`: **LGTM!** The change to the `sendEmail` function call is consistent with the removal of the `comment` state and validation logic. The change does not introduce any new issues. --- `134-134`: **LGTM!** The addition of the `select-dropdown` class to the `select` element is a styling update that aligns with the PR objective of making the select dropdown more consistent. The change does not affect the functionality of the component.
--- Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit .` - `Generate unit testing code for this file.` - `Open a follow-up GitHub issue for this discussion.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: - `@coderabbitai generate unit testing code for this file.` - `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: - `@coderabbitai generate interesting stats about this repository and render them as a table.` - `@coderabbitai show all the console.log statements in this repository.` - `@coderabbitai read src/utils.ts and generate unit testing code.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` - `@coderabbitai help me debug CodeRabbit configuration file.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. ### CodeRabbit Commands (Invoked using PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai full review` to do a full review from scratch and review all the files again. - `@coderabbitai summary` to regenerate the summary of the PR. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository. - `@coderabbitai help` to get help. ### Other keywords and placeholders - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. - Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description. - Add `@coderabbitai` anywhere in the PR title to generate the title automatically. ### CodeRabbit Configuration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information. - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json` ### Documentation and Community - Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
github-actions[bot] commented 1 month ago

πŸ“Š Package size report   -0.65%↓

File Before After
src/components/BuyAHome.css 6.9 kB β€”
src/components/BuyAHome.jsx 7.0 kB β€”
src/components/ModalButton.css 2.5 kB 11%↑2.8 kB
src/components/ModalButton.jsx 6.3 kB -12.9%↓5.4 kB
src/components/Resources.jsx 2.5 kB -1.4%↓2.5 kB
src/components/SellAHome.css 4.5 kB β€”
src/components/SellAHome.jsx 4.9 kB β€”
tests/e2e/contact.spec.js 1.4 kB -5.07%↓1.3 kB
Total (Includes all files) 3.7 MB -0.65%↓3.7 MB
Tarball size 3.5 MB -0.12%↓3.5 MB
Unchanged files | File | Size | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------: | | [`.github/dependabot.yml`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/.github/dependabot.yml) | `236 B` | | [`.github/pull_request_template.md`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/.github/pull_request_template.md) | `688 B` | | [`.github/workflows/accessibility.yml`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/.github/workflows/accessibility.yml) | `736 B` | | [`.github/workflows/check_source_code.yml`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/.github/workflows/check_source_code.yml) | `290 B` | | [`.github/workflows/lighthouse.yml`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/.github/workflows/lighthouse.yml) | `559 B` | | [`.github/workflows/package_size.yml`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/.github/workflows/package_size.yml) | `441 B` | | [`.github/workflows/playwright_tests.yml`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/.github/workflows/playwright_tests.yml) | `1.2 kB` | | [`budget.json`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/budget.json) | `893 B` | | [`package.json`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/package.json) | `1.5 kB` | | [`playwright.config.js`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/playwright.config.js) | `522 B` | | [`public/background.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/public/background.avif) | `116.4 kB` | | [`public/ics.ics`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/public/ics.ics) | `1.4 kB` | | [`public/index.html`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/public/index.html) | `4.8 kB` | | [`public/robots.txt`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/public/robots.txt) | `83 B` | | `public/W icon.ico` | `13.6 kB` | | `public/W logo.svg` | `1.1 kB` | | [`README.md`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/README.md) | `1.2 kB` | | [`src/App.css`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/App.css) | `2.7 kB` | | [`src/App.js`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/App.js) | `3.7 kB` | | [`src/assets/buy-a-home/finding-the-deal.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/buy-a-home/finding-the-deal.avif) | `37.9 kB` | | [`src/assets/buy-a-home/illustrations/illustration1.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/buy-a-home/illustrations/illustration1.avif) | `142.4 kB` | | [`src/assets/buy-a-home/illustrations/illustration2.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/buy-a-home/illustrations/illustration2.avif) | `144.2 kB` | | [`src/assets/buy-a-home/illustrations/illustration3.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/buy-a-home/illustrations/illustration3.avif) | `127.4 kB` | | [`src/assets/buy-a-home/illustrations/update1-03.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/buy-a-home/illustrations/update1-03.avif) | `173.8 kB` | | [`src/assets/buy-a-home/illustrations/update2-02.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/buy-a-home/illustrations/update2-02.avif) | `155.0 kB` | | [`src/assets/buy-a-home/illustrations/update3-03.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/buy-a-home/illustrations/update3-03.avif) | `108.9 kB` | | [`src/assets/buy-a-home/sealing-the-deal.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/buy-a-home/sealing-the-deal.avif) | `104.3 kB` | | [`src/assets/close-modal.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/close-modal.avif) | `2.7 kB` | | [`src/assets/icon_pencil.svg`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/icon_pencil.svg) | `367 B` | | [`src/assets/sell-a-home/before-you-start.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/sell-a-home/before-you-start.avif) | `296.8 kB` | | [`src/assets/sell-a-home/finding-the-deal.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/sell-a-home/finding-the-deal.avif) | `781.5 kB` | | [`src/assets/sell-a-home/illustrations/illustration4.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/sell-a-home/illustrations/illustration4.avif) | `94.2 kB` | | [`src/assets/sell-a-home/illustrations/illustration5.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/sell-a-home/illustrations/illustration5.avif) | `126.0 kB` | | [`src/assets/sell-a-home/illustrations/illustration6.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/sell-a-home/illustrations/illustration6.avif) | `82.0 kB` | | [`src/assets/sell-a-home/illustrations/update5-05.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/sell-a-home/illustrations/update5-05.avif) | `121.4 kB` | | [`src/assets/sell-a-home/sealing-the-deal.avif`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/assets/sell-a-home/sealing-the-deal.avif) | `944.8 kB` | | [`src/components/AboutUs.css`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/AboutUs.css) | `2.5 kB` | | [`src/components/AboutUs.jsx`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/AboutUs.jsx) | `4.4 kB` | | [`src/components/AddListing.jsx`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/AddListing.jsx) | `8.6 kB` | | [`src/components/AgentProfile.css`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/AgentProfile.css) | `683 B` | | [`src/components/AgentProfile.jsx`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/AgentProfile.jsx) | `1.2 kB` | | [`src/components/BuyerBrokerTable.css`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/BuyerBrokerTable.css) | `2.8 kB` | | [`src/components/BuyerBrokerTable.jsx`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/BuyerBrokerTable.jsx) | `8.4 kB` | | [`src/components/LandingPage.css`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/LandingPage.css) | `717 B` | | [`src/components/LandingPage.jsx`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/LandingPage.jsx) | `1.3 kB` | | [`src/components/Listing.css`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/Listing.css) | `576 B` | | [`src/components/Listing.jsx`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/Listing.jsx) | `829 B` | | [`src/components/ListingsLayout.css`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/ListingsLayout.css) | `78 B` | | [`src/components/ListingsLayout.jsx`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/ListingsLayout.jsx) | `859 B` | | [`src/components/ListingsManager.css`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/ListingsManager.css) | `141 B` | | [`src/components/ListingsManager.jsx`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/ListingsManager.jsx) | `636 B` | | [`src/components/Login.css`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/Login.css) | `1.2 kB` | | [`src/components/Login.jsx`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/Login.jsx) | `2.1 kB` | | [`src/components/NavBar.css`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/NavBar.css) | `2.1 kB` | | [`src/components/NavBar.jsx`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/NavBar.jsx) | `2.5 kB` | | [`src/components/Resources.css`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/components/Resources.css) | `1.3 kB` | | [`src/contexts/AgentContext.js`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/contexts/AgentContext.js) | `829 B` | | [`src/index.css`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/index.css) | `366 B` | | [`src/index.js`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/index.js) | `231 B` | | [`src/lib/react-multi-carousel.css`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/lib/react-multi-carousel.css) | `3.0 kB` | | [`src/lib/utils.js`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/src/lib/utils.js) | `2.5 kB` | | [`tests/e2e/accessibility.spec.js`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/tests/e2e/accessibility.spec.js) | `1.0 kB` | | [`tests/e2e/axe-test.js`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/tests/e2e/axe-test.js) | `526 B` | | [`tests/e2e/listings.spec.js`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/tests/e2e/listings.spec.js) | `2.9 kB` | | [`tests/e2e/navigation.spec.js`](https://github.com/Williams-RE/WRE-website/blob/update-stlying-contact-modal/tests/e2e/navigation.spec.js) | `1.8 kB` |

πŸ€– This report was automatically generated by pkg-size-action