Skip to content

Commit 438d1c1

Browse files
committed
feat: add citations and improve rendering in governance comparison and key statistics components
1 parent 67d2f90 commit 438d1c1

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/components/governance-comparison.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const ComparisonTable = () => {
2020

2121
<ul className="space-y-4 mb-8">
2222
{[
23-
'Transparent moderation <sup><a href="#klonick">[1]</a></sup>',
24-
'Clear appeal process <sup><a href="#twitter-transparency">[2]</a></sup>',
23+
'Transparent moderation <span className="citation-hover" data-citation="Klonick, Kate. &quot;The New Governors: The People, Rules, and Processes Governing Online Speech.&quot; Harvard Law Review, vol. 131, no. 6, 2018, pp. 1598–1670.">[1]</span>',
24+
'Clear appeal process <span className="citation-hover" data-citation="Twitter. &quot;Q4 2022 Transparency Report.&quot; Transparency Center, Twitter, 2022, transparency.twitter.com/en/reports/2022-q4.">[2]</span>',
2525
'Human oversight',
2626
'Regular reports',
2727
'Community standards'
@@ -54,11 +54,11 @@ const ComparisonTable = () => {
5454

5555
<ul className="space-y-4 mb-8">
5656
{[
57-
'Algorithmic filtering <sup><a href="#wang">[3]</a></sup>',
57+
'Algorithmic filtering <span className="citation-hover" data-citation="Wang, Rui, et al. &quot;Empowered or Constrained in Platform Governance? An Analysis of Twitter Users\' Responses to Elon Musk\'s Takeover.&quot; Social Media + Society, vol. 10, no. 2, 2024, pp. 1–14.">[3]</span>',
5858
'Limited transparency',
59-
'Automated systems <sup><a href="#wang">[3]</a></sup>',
59+
'Automated systems <span className="citation-hover" data-citation="Wang, Rui, et al. &quot;Empowered or Constrained in Platform Governance? An Analysis of Twitter Users\' Responses to Elon Musk\'s Takeover.&quot; Social Media + Society, vol. 10, no. 2, 2024, pp. 1–14.">[3]</span>',
6060
'Reduced oversight',
61-
'"Freedom of reach" <sup><a href="#musk-interview">[4]</a></sup>'
61+
'"Freedom of reach" <span className="citation-hover" data-citation="Musk, Elon. &quot;Interview with X News.&quot; X News, March 12, 2023, www.xnews.com/interview-elon-musk.">[4]</span>'
6262
].map((item, index) => (
6363
<li key={index} className="flex items-center text-slate-700">
6464
<span className="w-2 h-2 bg-slate-500 rounded-full mr-3"></span>
@@ -83,7 +83,7 @@ const ComparisonTable = () => {
8383
{/* Key Insight */}
8484
<div className="mt-8 p-4 bg-indigo-50 rounded-lg border border-indigo-100">
8585
<p className="text-center text-indigo-900 font-medium">
86-
A 47.8% decrease in appeal success rate suggests a significant shift in content moderation approach <sup><a href="#reuters">[5]</a></sup>
86+
A 47.8% decrease in appeal success rate suggests a significant shift in content moderation approach <span className="citation-hover" data-citation="Reuters. &quot;Content Moderation Staff Reduction under Musk.&quot; Reuters, December 12, 2023, www.reuters.com/tech.">[5]</span>
8787
</p>
8888
</div>
8989
</div>

src/components/key-statistics.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const StatCard: React.FC<StatCardProps> = ({ title, value, trend = null, subtitl
2424
{subtitle && <p className="text-sm text-slate-500 mt-1">{subtitle}</p>}
2525
{citation && (
2626
<div className="opacity-0 group-hover:opacity-100 transition-opacity absolute -bottom-2 left-0 right-0 text-xs text-center text-slate-500 bg-white/90 py-1 rounded">
27-
Source: {citation}
27+
Source: <span className="citation-hover" data-citation={citation}>citation</span>
2828
</div>
2929
)}
3030
</div>
@@ -94,15 +94,15 @@ const StatisticsDisplay: React.FC = () => {
9494
</div>
9595
</div>
9696
<div className="opacity-0 group-hover:opacity-100 transition-opacity absolute -bottom-2 left-0 right-0 text-xs text-center text-slate-500 bg-white/90 py-1 rounded">
97-
Source: Twitter/X Transparency Reports
97+
Source: <span className="citation-hover" data-citation="Twitter. &quot;Q4 2022 Transparency Report.&quot; Transparency Center, Twitter, 2022, transparency.twitter.com/en/reports/2022-q4.">Twitter/X Transparency Reports</span>
9898
</div>
9999
</div>
100100

101101
<StatCard
102102
title="User Trust Impact"
103103
value="67%"
104104
subtitle="Users reporting decreased confidence"
105-
citation="Wang et al., 2024"
105+
citation="Wang, Rui, et al. &quot;Empowered or Constrained in Platform Governance? An Analysis of Twitter Users' Responses to Elon Musk's Takeover.&quot; Social Media + Society, vol. 10, no. 2, 2024, pp. 1–14."
106106
/>
107107
</div>
108108
</div>
@@ -115,7 +115,7 @@ const StatisticsDisplay: React.FC = () => {
115115
suggesting a potential gap in platform governance effectiveness.
116116
</p>
117117
<div className="opacity-0 group-hover:opacity-100 transition-opacity absolute -bottom-2 left-0 right-0 text-xs text-center text-slate-500 bg-white/90 py-1 rounded">
118-
Analysis based on Reuters (2023) and Wang et al. (2024)
118+
Analysis based on <span className="citation-hover" data-citation="Reuters. &quot;Content Moderation Staff Reduction under Musk.&quot; Reuters, December 12, 2023, www.reuters.com/tech.">Reuters (2023)</span> and <span className="citation-hover" data-citation="Wang, Rui, et al. &quot;Empowered or Constrained in Platform Governance? An Analysis of Twitter Users' Responses to Elon Musk's Takeover.&quot; Social Media + Society, vol. 10, no. 2, 2024, pp. 1–14.">Wang et al. (2024)</span>
119119
</div>
120120
</div>
121121
</div>

src/components/policy-timeline.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const PolicyTimeline: React.FC = () => {
1515
date: "August 19, 2021",
1616
title: "Twitter Terms of Service",
1717
description: "The terms governing the Twitter platform prior to X's acquisition",
18-
impact: "Defined the rules and policies for Twitter users. See the full terms at <a href='https://help.twitter.com/en/rules-and-policies/twitter-terms-of-service' target='_blank' rel='noopener noreferrer' class='text-indigo-600 underline'>help.twitter.com/en/rules-and-policies/twitter-terms-of-service</a>"
18+
impact: "Defined the rules and policies for Twitter users. <span class='citation-hover' data-citation='Twitter, Inc. <em>Twitter Terms of Service</em>. August 19, 2021, help.twitter.com/en/rules-and-policies/twitter-terms-of-service. Accessed December,6, 2024.'>See the full terms</span>"
1919
},
2020
{
2121
date: "January 2023",

0 commit comments

Comments
 (0)