refactor(frontend): rename InteractionStats to UserStats
This commit is contained in:
@@ -34,7 +34,7 @@ function ApiToGraphData(apiData: InteractionGraph) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const InteractionStats = (props: { data: UserAnalysisResponse }) => {
|
const UserStats = (props: { data: UserAnalysisResponse }) => {
|
||||||
const graphData = ApiToGraphData(props.data.interaction_graph);
|
const graphData = ApiToGraphData(props.data.interaction_graph);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -44,7 +44,7 @@ const InteractionStats = (props: { data: UserAnalysisResponse }) => {
|
|||||||
This graph visualizes interactions between users based on comments and replies.
|
This graph visualizes interactions between users based on comments and replies.
|
||||||
Nodes represent users, and edges represent interactions (e.g., comments or replies) between them.
|
Nodes represent users, and edges represent interactions (e.g., comments or replies) between them.
|
||||||
</p>
|
</p>
|
||||||
<div style={{ height: "600px", border: "1px solid #ccc", borderRadius: 8, marginTop: 16 }}>
|
<div>
|
||||||
<ForceGraph3D
|
<ForceGraph3D
|
||||||
graphData={graphData}
|
graphData={graphData}
|
||||||
nodeAutoColorBy="id"
|
nodeAutoColorBy="id"
|
||||||
@@ -58,4 +58,4 @@ const InteractionStats = (props: { data: UserAnalysisResponse }) => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default InteractionStats;
|
export default UserStats;
|
||||||
@@ -3,7 +3,7 @@ import axios from "axios";
|
|||||||
import StatsStyling from "../styles/stats_styling";
|
import StatsStyling from "../styles/stats_styling";
|
||||||
import SummaryStats from "../components/SummaryStats";
|
import SummaryStats from "../components/SummaryStats";
|
||||||
import EmotionalStats from "../components/EmotionalStats";
|
import EmotionalStats from "../components/EmotionalStats";
|
||||||
import InteractionStats from "../components/InteractionStats";
|
import InteractionStats from "../components/UserStats";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
type SummaryResponse,
|
type SummaryResponse,
|
||||||
|
|||||||
Reference in New Issue
Block a user