-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[CmdPal] Removing App tag #38971
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
[CmdPal] Removing App tag #38971
Conversation
|
Agree. Another thing is, in top level page, only Apps result have app tags. I think we also need to add tag for fallback item to distinguish their source? |
|
Wait doesn't this also get rid of the top-level tag too? I thought we wanted that to make sure that we could clearly differentiate the app results from the command ones |
|
@moooyo @zadjii-msft Meh.. that's a good point. Is there a way to differentiate between the two? Still, even on a toplevel, the default tag UX feels 'heavy' to just point something out as a tag.. Not for this PR, but maybe something to figure out longer term how make that more subtle |
|
gah this is annoying. There's not an easy way to differentiate them - least not currently. The main page needs seems like it'd be silly for us to be constructing new ListItem's as we're filtering the top-level. That should be the hottest, cleanest path I suppose the cache could have them all be created with the tags, and then have |
There was a problem hiding this 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 removes the redundant "App" tag from application items in the CmdPal interface to reduce visual noise, as requested in issue #38968.
Key Changes
- Removed the static "App" tag definition and assignment from AppListItem
- Simplified the UI by eliminating unnecessary visual clutter
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| Title = app.Name; | ||
| Subtitle = app.Subtitle; | ||
| Tags = [_appTag]; | ||
| MoreCommands = _app.Commands!.ToArray(); |
Copilot
AI
Aug 22, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The null-forgiving operator (!) is used on _app.Commands without validation. Consider adding a null check or using conditional access to prevent potential null reference exceptions.
| MoreCommands = _app.Commands!.ToArray(); | |
| MoreCommands = (_app.Commands?.ToArray()) ?? Array.Empty<ICommand>(); |
|
@zadjii-msft do we want to move forward with this PR? |
|
@niels9001, this just removes the tag altogether? I think that's fine. I would clean up the merge but then my approval wouldn't count. 😄 |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Eh... that merge erased your changes. 😨 |
|
@niels9001, see above comment. |
Lol. PMs gonna dev. Repushed the changes - please take it for a spin so I didn't break anything! |
|
Alas, he did not repush the changes. Don't worry. I got you friend. 🤝 |
|
Closing for #43439 |
The "App" tag is pretty redundant and is adding a lot of visual noise. Closes #38968
New:
