@featurevisor/site 0.59.0 → 0.59.2
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/.eslintcache +1 -1
- package/CHANGELOG.md +11 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/HistoryTimeline.tsx +22 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/site",
|
|
3
|
-
"version": "0.59.
|
|
3
|
+
"version": "0.59.2",
|
|
4
4
|
"description": "Static site for Featurevisor",
|
|
5
5
|
"main": "dist",
|
|
6
6
|
"scripts": {
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@featurevisor/types": "^0.59.0"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "6e4bb4330d5d20961acc674d5a88d1f3377d0b73"
|
|
69
69
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
|
|
2
|
+
import { Link } from "react-router-dom";
|
|
3
3
|
import { UserCircleIcon } from "@heroicons/react/20/solid";
|
|
4
4
|
|
|
5
5
|
import { Alert } from "./Alert";
|
|
@@ -23,9 +23,12 @@ function Activity(props) {
|
|
|
23
23
|
{entry.entities.length === 1 ? (
|
|
24
24
|
<>
|
|
25
25
|
{entry.entities[0].type}{" "}
|
|
26
|
-
<
|
|
26
|
+
<Link
|
|
27
|
+
to={`/${entry.entities[0].type}s/${entry.entities[0].key}`}
|
|
28
|
+
className="font-semibold text-gray-600"
|
|
29
|
+
>
|
|
27
30
|
{entry.entities[0].key}
|
|
28
|
-
</
|
|
31
|
+
</Link>
|
|
29
32
|
</>
|
|
30
33
|
) : (
|
|
31
34
|
""
|
|
@@ -46,16 +49,25 @@ function Activity(props) {
|
|
|
46
49
|
return (
|
|
47
50
|
<li key={index}>
|
|
48
51
|
<span className="text-gray-400">{entity.type}</span>{" "}
|
|
49
|
-
<
|
|
52
|
+
<Link
|
|
53
|
+
to={`/${entity.type}s/${entity.key}`}
|
|
54
|
+
className="font-semibold text-gray-500"
|
|
55
|
+
>
|
|
50
56
|
{entity.key}
|
|
51
|
-
</
|
|
57
|
+
</Link>
|
|
52
58
|
</li>
|
|
53
59
|
);
|
|
54
60
|
})}
|
|
55
61
|
|
|
56
62
|
{!showAll && entry.entities.length > initialMaxEntitiesCount && (
|
|
57
63
|
<li key="show-all">
|
|
58
|
-
<a
|
|
64
|
+
<a
|
|
65
|
+
href="javascript:void(0)"
|
|
66
|
+
className="font-bold underline"
|
|
67
|
+
onClick={() => {
|
|
68
|
+
setShowAll(true);
|
|
69
|
+
}}
|
|
70
|
+
>
|
|
59
71
|
Show all
|
|
60
72
|
</a>
|
|
61
73
|
</li>
|
|
@@ -146,9 +158,11 @@ export function HistoryTimeline(props: HistoryTimelineProps) {
|
|
|
146
158
|
|
|
147
159
|
{historyEntries.length > entriesToRender.length && (
|
|
148
160
|
<a
|
|
149
|
-
href="
|
|
161
|
+
href="javascript:void(0)"
|
|
150
162
|
className="text-md block rounded-md border border-gray-300 bg-gray-50 py-2 pl-6 text-center font-bold text-gray-500 shadow-sm hover:bg-gray-100"
|
|
151
|
-
onClick={() =>
|
|
163
|
+
onClick={() => {
|
|
164
|
+
setPage(page + 1);
|
|
165
|
+
}}
|
|
152
166
|
>
|
|
153
167
|
Load more
|
|
154
168
|
</a>
|