Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

MackinnonBuck
Copy link
Member

@MackinnonBuck MackinnonBuck commented Feb 4, 2025

This PR:

  1. Removes tailwind classes from Razor components and replaces them with CSS classes defined in the project
  2. Removes NPM as a dependency and instead includes external dependencies directly in the wwwroot folder

Fixes https://github.com/dotnet/ai-private-planning/issues/272
Fixes https://github.com/dotnet/ai-private-planning/issues/273

Microsoft Reviewers: Open in CodeFlow

…tWithCustomData/ChatWithCustomData.Web/Components/Pages/Chat/ChatMessageItem.razor.css
…tWithCustomData/ChatWithCustomData.Web/wwwroot/app.css
…tWithCustomData/ChatWithCustomData.Web/wwwroot/app.css
@dotnet-comment-bot
Copy link
Collaborator

‼️ Found issues ‼️

Project Coverage Type Expected Actual
Microsoft.Gen.MetadataExtractor Line 98 57.35 🔻
Microsoft.Gen.MetadataExtractor Branch 98 62.5 🔻
Microsoft.Extensions.Caching.Hybrid Line 86 77.82 🔻
Microsoft.Extensions.AI.Ollama Line 80 78.25 🔻

🎉 Good job! The coverage increased 🎉
Update MinCodeCoverage in the project files.

Project Expected Actual
Microsoft.Extensions.AI.OpenAI 77 78
Microsoft.Extensions.AI.Abstractions 83 84
Microsoft.Extensions.AI 88 89

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=940194&view=codecoverage-tab

Copy link
Member

@SteveSandersonMS SteveSandersonMS left a comment

Choose a reason for hiding this comment

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

Excellent - thanks very much! What you've done with the CSS looks perfect.

I added some minor suggestions about using CSS shorthand syntax in a few places. I'm pretty sure none of them will change the resulting styles, but it's possible I could have a typo in there so please let me know if anything looks wrong.

MackinnonBuck and others added 8 commits February 5, 2025 09:07
…tWithCustomData/ChatWithCustomData.Web/Components/Pages/Chat/ChatInput.razor.css

Co-authored-by: Steve Sanderson <[email protected]>
…tWithCustomData/ChatWithCustomData.Web/Components/Pages/Chat/ChatMessageItem.razor.css

Co-authored-by: Steve Sanderson <[email protected]>
…tWithCustomData/ChatWithCustomData.Web/Components/Pages/Chat/ChatMessageItem.razor.css

Co-authored-by: Steve Sanderson <[email protected]>
…tWithCustomData/ChatWithCustomData.Web/Components/Pages/Chat/ChatMessageList.razor.css

Co-authored-by: Steve Sanderson <[email protected]>
…tWithCustomData/ChatWithCustomData.Web/wwwroot/app.css

Co-authored-by: Steve Sanderson <[email protected]>
…tWithCustomData/ChatWithCustomData.Web/wwwroot/app.css

Co-authored-by: Steve Sanderson <[email protected]>
…tWithCustomData/ChatWithCustomData.Web/wwwroot/app.css

Co-authored-by: Steve Sanderson <[email protected]>
…tWithCustomData/ChatWithCustomData.Web/wwwroot/app.css

Co-authored-by: Steve Sanderson <[email protected]>
@MackinnonBuck MackinnonBuck enabled auto-merge (squash) February 5, 2025 17:34
@dotnet-comment-bot
Copy link
Collaborator

‼️ Found issues ‼️

Project Coverage Type Expected Actual
Microsoft.Extensions.AI.Ollama Line 80 78.25 🔻
Microsoft.Gen.MetadataExtractor Line 98 57.35 🔻
Microsoft.Gen.MetadataExtractor Branch 98 62.5 🔻

🎉 Good job! The coverage increased 🎉
Update MinCodeCoverage in the project files.

Project Expected Actual
Microsoft.Extensions.AI.Abstractions 83 84
Microsoft.Extensions.Caching.Hybrid 86 87
Microsoft.Extensions.AI.OpenAI 77 78
Microsoft.Extensions.AI 88 89

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=941270&view=codecoverage-tab

@MackinnonBuck MackinnonBuck merged commit 3640389 into main Feb 5, 2025
6 checks passed
@MackinnonBuck MackinnonBuck deleted the mbuck/ai-template-remove-npm branch February 5, 2025 18:13
@jeffhandley jeffhandley added the area-ai-templates Microsoft.Extensions.AI.Templates label Mar 7, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Apr 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-ai-templates Microsoft.Extensions.AI.Templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants