rivia 0.0.108 → 0.0.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +15 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4646,19 +4646,20 @@ var ProductManagement = /* @__PURE__ */ function() {
|
|
|
4646
4646
|
if (i > 3) return;
|
|
4647
4647
|
const div = document.createElement("div");
|
|
4648
4648
|
div.className = "pm-lite-item";
|
|
4649
|
-
const date = it.created_at ? new Date(it.created_at).toLocaleDateString() : "";
|
|
4650
4649
|
div.style.cursor = "pointer";
|
|
4651
4650
|
div.addEventListener("click", () => {
|
|
4652
4651
|
const baseUrl = `https://${state.config.workspace}.rivia.ai/users/changelog`;
|
|
4653
4652
|
const params = new URLSearchParams({
|
|
4654
4653
|
changelogId: it.changelog_id || it.id || "",
|
|
4655
|
-
// adjust based on your API
|
|
4656
4654
|
pm_user_id: state.pmUserId || ""
|
|
4657
4655
|
});
|
|
4658
|
-
console.log("it.id", it.id);
|
|
4659
4656
|
const finalUrl = `${baseUrl}?${params.toString()}`;
|
|
4660
4657
|
window.open(finalUrl, "_blank");
|
|
4661
4658
|
});
|
|
4659
|
+
const topRow = document.createElement("div");
|
|
4660
|
+
topRow.style.display = "flex";
|
|
4661
|
+
topRow.style.alignItems = "center";
|
|
4662
|
+
topRow.style.width = "100%";
|
|
4662
4663
|
if (it.label) {
|
|
4663
4664
|
const tag = document.createElement("span");
|
|
4664
4665
|
tag.className = "pm-lite-tags";
|
|
@@ -4671,8 +4672,18 @@ var ProductManagement = /* @__PURE__ */ function() {
|
|
|
4671
4672
|
tag.style.backgroundColor = "rgb(220, 252, 231)";
|
|
4672
4673
|
tag.style.color = "rgb(22, 101, 52)";
|
|
4673
4674
|
tag.style.border = "1px solid rgb(187, 247, 208)";
|
|
4674
|
-
|
|
4675
|
+
topRow.appendChild(tag);
|
|
4675
4676
|
}
|
|
4677
|
+
if (it.publish_time) {
|
|
4678
|
+
const dateEl = document.createElement("span");
|
|
4679
|
+
dateEl.innerText = new Date(it.publish_time).toLocaleDateString();
|
|
4680
|
+
dateEl.style.fontSize = "11px";
|
|
4681
|
+
dateEl.style.color = "#777";
|
|
4682
|
+
dateEl.style.marginLeft = "auto";
|
|
4683
|
+
dateEl.style.fontFamily = "Verdana, sans-serif";
|
|
4684
|
+
topRow.appendChild(dateEl);
|
|
4685
|
+
}
|
|
4686
|
+
div.appendChild(topRow);
|
|
4676
4687
|
const header = document.createElement("div");
|
|
4677
4688
|
header.className = "pm-lite-item-header";
|
|
4678
4689
|
header.style.fontWeight = "600";
|