Williams-RE / WRE-website

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

feat: support CRUD operations to BuyersBrokersTable component #18

Closed timeowilliams closed 2 months ago

timeowilliams commented 2 months ago

Description

Type of change

Testing

Screenshots/Screen Recordings :

Notes

Summary by CodeRabbit

railway-app[bot] commented 2 months ago

🚅 Previously deployed to Railway in the WRE Frontend project. Environment has been deleted.

coderabbitai[bot] commented 2 months ago

Walkthrough

The recent changes encompass a comprehensive redesign of the application's CSS and component structure, enhancing layout, styling, and responsiveness across various elements. Key modifications include the redefinition of color schemes, the introduction of CSS grid layouts, and significant updates to modal and table functionality. The management of user authentication is also streamlined. Overall, these changes aim to improve user experience and aesthetic consistency throughout the application.

Changes

Files Change Summary
src/App.css Redefined CSS variables for a new color palette, updated styles for body, h1, and p elements, removed several CSS classes, and eliminated media queries.
src/components/AddListing.jsx Enhanced form layout with CSS grid, improved styling for input fields and buttons, and wrapped inputs with labels for better spacing.
src/components/BuyerBrokerTable.css Improved visual styling of the buyer-broker table, added modern button styles, and refined hover effects for interactivity.
src/components/BuyerBrokerTable.jsx Introduced inline editing functionality for listings, enhanced data fetching with error handling, and updated rendering logic for editing state.
src/components/ListingsManager.jsx Removed the handleLogin function, altering user authentication management.
src/components/Login.jsx Replaced onLogin prop with setIsLoggedIn for more explicit login state management.
src/components/ModalButton.css Updated styles for modal buttons, added new modal positioning properties, and included media queries for responsive design.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Login
    participant ListingsManager
    participant BuyerBrokerTable

    User->>Login: Attempts to log in
    Login->>ListingsManager: Calls setIsLoggedIn(true)
    ListingsManager->>User: Updates UI to logged-in state
    User->>BuyerBrokerTable: Accesses the table
    BuyerBrokerTable->>User: Displays listings with editing options

🐰 "In fields of bright hues, where changes dance free,
A rabbit hops joyfully, as happy as can be!
With buttons that gleam and forms that align,
Our app’s now a garden, where all can dine.
So let's leap and skip, with a cheer and a clap,
For a fresh new design, in our cozy little app!" 🐇


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 as 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. Additionally, you can add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### 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 2 months ago

📊 Package size report   0%↑

File Before After
src/App.css 8.6 kB -69%↓2.7 kB
src/components/AddListing.jsx 5.2 kB 9%↑5.7 kB
src/components/BuyerBrokerTable.css 735 B 127%↑1.7 kB
src/components/BuyerBrokerTable.jsx 3.5 kB 98%↑7.0 kB
src/components/ListingsManager.jsx 665 B -9.47%↓602 B
src/components/Login.jsx 1.9 kB 5%↑2.0 kB
src/components/ModalButton.css 767 B 132%↑1.8 kB
Total (Includes all files) 4.4 MB 0%↑4.4 MB
Tarball size 4.3 MB -0%↓4.3 MB
Unchanged files | File | Size | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------: | | [`.github/pull_request_template.md`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/.github/pull_request_template.md) | `688 B` | | [`.github/workflows/check_source_code.yml`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/.github/workflows/check_source_code.yml) | `353 B` | | [`.github/workflows/package_size.yml`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/.github/workflows/package_size.yml) | `504 B` | | [`package.json`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/package.json) | `1.3 kB` | | [`public/ics.ics`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/public/ics.ics) | `1.4 kB` | | [`public/index.html`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/public/index.html) | `490 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/add-crud-to-brokers-table/README.md) | `789 B` | | [`src/App.js`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/App.js) | `4.0 kB` | | [`src/assets/background-large.avif`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/assets/background-large.avif) | `280.9 kB` | | [`src/assets/background-small.avif`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/assets/background-small.avif) | `247.7 kB` | | [`src/assets/buy-a-home/finding-the-deal.avif`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/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/add-crud-to-brokers-table/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/add-crud-to-brokers-table/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/add-crud-to-brokers-table/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/add-crud-to-brokers-table/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/add-crud-to-brokers-table/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/add-crud-to-brokers-table/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/add-crud-to-brokers-table/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/add-crud-to-brokers-table/src/assets/close-modal.avif) | `2.7 kB` | | [`src/assets/icon_pencil.svg`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/assets/icon_pencil.svg) | `367 B` | | [`src/assets/scale.webp`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/assets/scale.webp) | `356.7 kB` | | [`src/assets/sell-a-home/before-you-start.avif`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/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/add-crud-to-brokers-table/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/add-crud-to-brokers-table/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/add-crud-to-brokers-table/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/add-crud-to-brokers-table/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/add-crud-to-brokers-table/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/add-crud-to-brokers-table/src/assets/sell-a-home/sealing-the-deal.avif) | `944.8 kB` | | [`src/assets/wre-logo.png`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/assets/wre-logo.png) | `7.4 kB` | | [`src/components/AboutUs.css`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/AboutUs.css) | `3.7 kB` | | [`src/components/AboutUs.jsx`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/AboutUs.jsx) | `5.4 kB` | | [`src/components/AgentProfile.css`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/AgentProfile.css) | `683 B` | | [`src/components/AgentProfile.jsx`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/AgentProfile.jsx) | `1.2 kB` | | [`src/components/BuyAHome.css`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/BuyAHome.css) | `6.9 kB` | | [`src/components/BuyAHome.jsx`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/BuyAHome.jsx) | `7.6 kB` | | [`src/components/LandingPage.css`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/LandingPage.css) | `1.0 kB` | | [`src/components/LandingPage.jsx`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/LandingPage.jsx) | `1.2 kB` | | [`src/components/Listing.css`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/Listing.css) | `576 B` | | [`src/components/Listing.jsx`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/Listing.jsx) | `829 B` | | [`src/components/ListingsLayout.css`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/ListingsLayout.css) | `78 B` | | [`src/components/ListingsLayout.jsx`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/ListingsLayout.jsx) | `859 B` | | [`src/components/Login.css`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/Login.css) | `1.2 kB` | | [`src/components/ModalButton.jsx`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/ModalButton.jsx) | `7.8 kB` | | [`src/components/NavBar.css`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/NavBar.css) | `1.8 kB` | | [`src/components/NavBar.jsx`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/NavBar.jsx) | `2.0 kB` | | [`src/components/SellAHome.css`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/SellAHome.css) | `4.5 kB` | | [`src/components/SellAHome.jsx`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/components/SellAHome.jsx) | `4.9 kB` | | [`src/index.css`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/index.css) | `366 B` | | [`src/index.js`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/index.js) | `231 B` | | [`src/lib/utils.js`](https://github.com/Williams-RE/WRE-website/blob/add-crud-to-brokers-table/src/lib/utils.js) | `0 B` |

🤖 This report was automatically generated by pkg-size-action