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

host: Add realm icon in attached cards #1086

Merged
merged 18 commits into from
Mar 18, 2024

Conversation

backspace
Copy link
Contributor

@backspace backspace commented Mar 11, 2024

Boxel 2024-03-11 14-40-07

This necessitated adding the ability to not render card chrome so I could insert the icon within the border. A box component now accepts @displayContainer, it defaults to true but we use false on the attached cards in atom format to include the icon.

This will probably break things visually.
Copy link

github-actions bot commented Mar 11, 2024

Test Results

533 tests  +2   529 ✔️ +2   7m 29s ⏱️ +20s
    1 suites ±0       4 💤 ±0 
    1 files   ±0       0 ±0 

Results for commit f475967. ± Comparison against base commit 2b28723.

♻️ This comment has been updated with latest results.

@backspace backspace marked this pull request as ready for review March 12, 2024 16:08
@backspace backspace requested a review from a team March 12, 2024 16:08
};
}

export class CardPill extends Component<CardPillSignature> {
Copy link
Contributor

Choose a reason for hiding this comment

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

There's actually another CardPill component in components/ai-assistant/card-picker/index. That is the one we're using when cards are attached in the chat input area of the ai-assistant panel. It would be good if we could consolidate them. The difference would be to not to display the remove button. The styles should be the same otherwise.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍🏻 thanks, I’ve merged them now successfully 🎉

Boxel 2024-03-14 11-06-46

@burieberry burieberry requested a review from a team March 12, 2024 17:28
@backspace
Copy link
Contributor Author

@cardstack/boxel-developers Luke suggested that more people check this out as the @displayContainer change is far-reaching 🤓

Copy link
Contributor

@habdelra habdelra left a comment

Choose a reason for hiding this comment

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

Looks good, just minor note about unnecessary {{let}} nesting

@backspace backspace merged commit 06177ff into main Mar 18, 2024
18 checks passed
@delete-merged-branch delete-merged-branch bot deleted the host/ai-message-attached-card-realm-icon-cs-6551 branch March 18, 2024 15:34
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.

3 participants