I'm thinking about how to show triage owner's name in https://www.bugzy.org/triage
Currently it shows just the owner's nick (which is from their real_name, prefixed by : like :aminomancer). I was thinking it might be better to show the real_name, but that also includes the nick. So these are the options and formats:
real_name
Shane Hughes [:aminomancer]
Shane Hughes (:aminomancer, :shughes)
Shane Hughes :aminomancer
nick
:aminomancer
just_name
Shane Hughes
I'd like to get some feedback from others before changing anything.
The issue with real_name is just that it's so long, especially since you can include multiple nicks. The trouble with nick is that it's more ambiguous, at least where our team is concerned (since we know each other by our legal names, not by our internet monikers). And just_name is not a real property, but it's something that could be extracted from the real_name like this:
diff --git a/src/content/components/Triage/Triage.js b/src/content/components/Triage/Triage.js
index 6e4ffb8..09d7dbd 100644
--- a/src/content/components/Triage/Triage.js
+++ b/src/content/components/Triage/Triage.js
@@ -169,8 +169,17 @@ export class Triage extends React.PureComponent {
return (
<span
title="Triage ownership alternates every Monday at 12:30 UTC."
- style={{ cursor: "help", "text-decoration": "underline .05em dotted" }}>
- Owner: {nick || real_name || email} ({dateString})
+ style={{ cursor: "help", textDecoration: "underline .05em dotted" }}>
+ Owner:{" "}
+ {real_name.replace(
+ new RegExp(
+ `([^\\[\\(\\]\\)]*)(\\s[\\[\\(]?:${nick ?? ""}.*[\\]\\)]?)`
+ ),
+ "$1"
+ ) ||
+ nick ||
+ email}{" "}
+ ({dateString})
</span>
);
}
I'm thinking about how to show triage owner's name in https://www.bugzy.org/triage
Currently it shows just the owner's
nick(which is from theirreal_name, prefixed by:like:aminomancer). I was thinking it might be better to show thereal_name, but that also includes thenick. So these are the options and formats:real_name
Shane Hughes [:aminomancer]
Shane Hughes (:aminomancer, :shughes)
Shane Hughes :aminomancer
nick
:aminomancer
just_name
Shane Hughes
I'd like to get some feedback from others before changing anything.
The issue with
real_nameis just that it's so long, especially since you can include multiple nicks. The trouble withnickis that it's more ambiguous, at least where our team is concerned (since we know each other by our legal names, not by our internet monikers). Andjust_nameis not a real property, but it's something that could be extracted from thereal_namelike this: