@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@featurevisor/site",
3
- "version": "0.59.0",
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": "ba710e9088a733ce67c7aa376c920a0cc4e123dc"
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
- <a href="#" className="font-semibold text-gray-600">
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
- </a>
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
- <a href="#" className="font-semibold text-gray-500">
52
+ <Link
53
+ to={`/${entity.type}s/${entity.key}`}
54
+ className="font-semibold text-gray-500"
55
+ >
50
56
  {entity.key}
51
- </a>
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 href="#" className="font-bold underline" onClick={() => setShowAll(true)}>
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={() => setPage(page + 1)}
163
+ onClick={() => {
164
+ setPage(page + 1);
165
+ }}
152
166
  >
153
167
  Load more
154
168
  </a>