feat(studio): add batch actions, group search filter and smart unit category rules
This commit is contained in:
1 parent
669e20a35c
commit
eb3dc4e88c
4 files changed
+85
-13
No files matched your search
@@ -270,6 +270,13 @@ function pluralizeLabel(token: string): string {
|
||||
* the classname token when nothing stronger is detected.
|
||||
*/
|
||||
function unitLabel(item: SugFurni): string | null {
|
||||
const name = (item.itemName || "").toLowerCase();
|
||||
const pub = (item.publicName || "").toLowerCase();
|
||||
if (name.includes("nft") || pub.includes("nft")) return "NFTs";
|
||||
if (name.includes("dragon") || pub.includes("dragon")) return "Dragons";
|
||||
if (name.includes("laser") || pub.includes("laser")) return "Lasers";
|
||||
if (name.includes("roller") || pub.includes("roller")) return "Rollers";
|
||||
|
||||
const inter = item.interactionType?.toLowerCase();
|
||||
let label: string | undefined;
|
||||
if (inter && inter !== "default") {
|
||||
|
||||
Reference in new issue
Block a user