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

fix: fix custom task icon #1560

Conversation

orangecoloured
Copy link
Collaborator

No description provided.

Copy link

linear bot commented Oct 23, 2024

Copy link

📦 Next.js Bundle Analysis for instillai-console

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

1 similar comment
Copy link

📦 Next.js Bundle Analysis for instillai-console

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Comment on lines 181 to 186
<ComplicateIcons.TaskCustom
className={className ?? "h-4 w-4"}
pathColor="stroke-semantic-fg-primary"
/>
);
Copy link
Member

Choose a reason for hiding this comment

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

@orangecoloured We can use cn and let the consumer decide how to override the default style h-4 w-4

@@ -61,7 +61,7 @@ export const ModelsTable = (props: ModelsTableProps) => {
secondaryLink={null}
secondaryText={label}
iconElement={getIcon(
`w-4 h-4 ${["TASK_CHAT"].includes(row.original.task || "") ? "stroke-semantic-fg-primary [&>*]:!stroke-semantic-fg-primary" : "[&>*]:!fill-semantic-fg-primary"}`,
`w-4 h-4 ${["TASK_CHAT", "TASK_CUSTOM"].includes(row.original.task || "") ? "stroke-semantic-fg-primary [&>*]:!stroke-semantic-fg-primary" : "[&>*]:!fill-semantic-fg-primary"}`,
Copy link
Member

Choose a reason for hiding this comment

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

@orangecoloured We can use cn here

cn("w-4 h-4", .......) it will be easier to read compare to template string

@orangecoloured orangecoloured force-pushed the alexpetcoglo/ins-6682-bug-task_custom-tag-on-model-overview-displays-wrong branch from bc4e3f3 to 9eb5acc Compare October 23, 2024 12:51
Copy link

📦 Next.js Bundle Analysis for instillai-console

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Copy link

📦 Next.js Bundle Analysis for instillai-console

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Copy link

📦 Next.js Bundle Analysis for instillai-console

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Copy link
Member

@EiffelFly EiffelFly left a comment

Choose a reason for hiding this comment

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

LGTM

@orangecoloured orangecoloured merged commit 2477f00 into main Oct 23, 2024
7 of 8 checks passed
@orangecoloured orangecoloured deleted the alexpetcoglo/ins-6682-bug-task_custom-tag-on-model-overview-displays-wrong branch October 23, 2024 16:13
@droplet-bot droplet-bot mentioned this pull request Oct 23, 2024
EiffelFly pushed a commit that referenced this pull request Oct 24, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>0.61.0-beta</summary>

##
[0.61.0-beta](v0.60.0-beta...v0.61.0-beta)
(2024-10-24)


### Features

* support default value for variable
([#1562](#1562))
([1fdb718](1fdb718))


### Miscellaneous

* retire vdp-sdk/mgmt
([#1557](#1557))
([f683265](f683265))
</details>

<details><summary>@instill-ai/design-system: 0.82.1</summary>

##
[0.82.1](https://github.com/instill-ai/console/compare/@instill-ai/design-system-v0.82.0...@instill-ai/design-system-v0.82.1)
(2024-10-24)


### Bug Fixes

* fix custom task icon
([#1560](#1560))
([2477f00](2477f00))
</details>

<details><summary>@instill-ai/toolkit: 0.109.0</summary>

##
[0.109.0](https://github.com/instill-ai/console/compare/@instill-ai/toolkit-v0.108.0...@instill-ai/toolkit-v0.109.0)
(2024-10-24)


### Features

* show credit owner for runs
([#1561](#1561))
([93a275a](93a275a))
* support default value for variable
([#1562](#1562))
([1fdb718](1fdb718))


### Bug Fixes

* fix custom task icon
([#1560](#1560))
([2477f00](2477f00))


### Miscellaneous

* retire vdp-sdk/mgmt
([#1557](#1557))
([f683265](f683265))
</details>

<details><summary>instill-sdk: 0.10.0</summary>

##
[0.10.0](instill-sdk-v0.9.0...instill-sdk-v0.10.0)
(2024-10-24)


### Features

* show credit owner for runs
([#1561](#1561))
([93a275a](93a275a))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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