Skip to content

Comments

Feature/description#158

Merged
interim17 merged 5 commits intomainfrom
feature/description
Nov 14, 2025
Merged

Feature/description#158
interim17 merged 5 commits intomainfrom
feature/description

Conversation

@interim17
Copy link
Contributor

Problem

Closes #142

Solution

Steps to Verify:

Screenshots (optional):

Screenshot 2025-11-14 at 9 47 42 AM Screenshot 2025-11-14 at 9 47 37 AM

Keyfiles (delete if not relevant):

@interim17 interim17 requested review from ascibisz, Copilot, meganrm and rugeli and removed request for meganrm and rugeli November 14, 2025 17:48
Copy link
Contributor

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 adds support for displaying recipe descriptions in the UI. The implementation adds an optional description field to recipe types and creates a new expandable text component to show descriptions with expand/collapse functionality.

Key Changes:

  • Added optional description field to FirebaseRecipe and ViewableRecipe types
  • Created new ExpandableText component with expand/collapse UI
  • Integrated description display in the PackingInput component

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/types/index.ts Added optional description field to recipe interfaces
src/utils/recipeLoader.ts Mapped description field when converting recipes to viewable format
src/components/PackingInput/index.tsx Added conditional rendering of recipe description using new component
src/components/ExpandableDescription/index.tsx Created expandable text component with collapse/expand functionality
src/components/ExpandableDescription/style.css Added styling for expand/collapse controls

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +36 to +37
};
export default ExpandableText; No newline at end of file
Copy link

Copilot AI Nov 14, 2025

Choose a reason for hiding this comment

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

The component is exported twice: once as a named export ExpandableText (line 23) and once as a default export (line 37). This is inconsistent and can lead to confusion. Since the component is imported as a named export in PackingInput/index.tsx, remove the default export.

Suggested change
};
export default ExpandableText;
};

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

github-actions bot commented Nov 14, 2025

PR Preview Action v1.6.2
Preview removed because the pull request was closed.
2025-11-14 18:50 UTC

Copy link
Contributor

@ascibisz ascibisz left a comment

Choose a reason for hiding this comment

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

Looks like you need to add description to the test files to get them to start failing, but other than that the code looks good and works well!

@github-actions
Copy link

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 19.62% 368 / 1875
🔵 Statements 19.62% 368 / 1875
🔵 Functions 39.34% 24 / 61
🔵 Branches 70.43% 81 / 115
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/components/ExpandableDescription/index.tsx 0% 0% 0% 0% 1, 5, 11-14, 17-20, 23-31, 33-34, 36-37
src/components/PackingInput/index.tsx 0% 0% 0% 0% 1-2, 12-17, 27-31, 33-36, 38-41, 44-46, 48-50, 52, 55-57, 59-69, 71-72, 74-76, 78-86, 88, 90, 92
src/types/index.ts 100% 100% 100% 100%
src/utils/recipeLoader.ts 96.44% 92.3% 100% 96.44% 21, 29-30, 41, 56-57, 61-62, 201-202
Generated in workflow #174

Copy link
Contributor

@rugeli rugeli left a comment

Choose a reason for hiding this comment

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

LGTM!

@interim17 interim17 merged commit 8e8f31f into main Nov 14, 2025
2 checks passed
@interim17 interim17 deleted the feature/description branch November 14, 2025 18:50
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.

display description on the site

3 participants