Skip to content

chore: spin down aws resources#91

Merged
joshydavid merged 3 commits intomasterfrom
dev
Aug 1, 2025
Merged

chore: spin down aws resources#91
joshydavid merged 3 commits intomasterfrom
dev

Conversation

@joshydavid
Copy link
Copy Markdown
Owner

Description

What type of PR is this?

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 👨🏻‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Desktop and mobile screenshots/recordings

Signed-off-by: joshydavid <cxang.2022@scis.smu.edu.sg>
Signed-off-by: joshydavid <cxang.2022@scis.smu.edu.sg>
@joshydavid joshydavid requested a review from Copilot August 1, 2025 01:52
@vercel
Copy link
Copy Markdown

vercel bot commented Aug 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
brew-intelligence ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2025 1:54am

Signed-off-by: joshydavid <cxang.2022@scis.smu.edu.sg>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR spins down AWS resources by adding a user notification banner and updating frontend dependencies. The changes inform users that the backend is currently unavailable due to AWS resources being spun down.

  • Added a reusable banner component system with multiple sub-components
  • Updated frontend dependencies including Radix UI packages
  • Integrated the banner into the header to display the AWS notice

Reviewed Changes

Copilot reviewed 5 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
frontend/package.json Updated dependencies for banner functionality
frontend/app/components/ui/button.tsx Added transparent button variant for banner close button
frontend/app/components/ui/banner.tsx Created comprehensive banner component system
frontend/app/components/Header/index.tsx Integrated AWS notice banner into header
frontend/app/components/Banner/index.tsx Created banner component wrapper

</header>
<>
<BannerComponent
title="⚠️&nbsp; Notice: AWS resources have been spun down. The backend is
Copy link

Copilot AI Aug 1, 2025

Choose a reason for hiding this comment

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

The HTML entity &nbsp; should not be used in JSX text content. Use a regular space or consider using CSS for spacing control.

Suggested change
title="⚠️&nbsp; Notice: AWS resources have been spun down. The backend is
title="⚠️ Notice: AWS resources have been spun down. The backend is

Copilot uses AI. Check for mistakes.
Comment on lines +18 to +19
title="⚠️&nbsp; Notice: AWS resources have been spun down. The backend is
currently not running."
Copy link

Copilot AI Aug 1, 2025

Choose a reason for hiding this comment

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

The title prop spans multiple lines but appears to be missing the closing quote and continuation. This will cause a syntax error.

Suggested change
title="⚠️&nbsp; Notice: AWS resources have been spun down. The backend is
currently not running."
title={`⚠️&nbsp; Notice: AWS resources have been spun down. The backend is
currently not running.`}

Copilot uses AI. Check for mistakes.
setShow: (show: boolean) => void;
};

export const BannerContext = createContext<BannerContextProps>({
Copy link

Copilot AI Aug 1, 2025

Choose a reason for hiding this comment

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

[nitpick] The BannerContext is exported but may not need to be public API. Consider making it internal to the banner module unless it's intended for external consumption.

Suggested change
export const BannerContext = createContext<BannerContextProps>({
const BannerContext = createContext<BannerContextProps>({

Copilot uses AI. Check for mistakes.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Aug 1, 2025

@joshydavid joshydavid merged commit 3ba09f0 into master Aug 1, 2025
6 checks passed
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