Skip to content

Commit 621f8f0

Browse files
author
dotmavriq
committed
🔧 Remove old API files causing build failures
- Deleted src/api_old.ts and src/api2.ts - These files had dependencies on graphql-request which isn't installed - Build should now succeed in GitHub Actions
1 parent 381341e commit 621f8f0

6 files changed

Lines changed: 237 additions & 236 deletions

File tree

.github/workflows/test-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
- name: List files
2727
run: ls -la
28-
28+
2929
- name: Create test zip
3030
run: zip linian-test.zip main.js manifest.json styles.css versions.json
3131

release-test/manifest.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"id": "linian",
3+
"name": "Linian",
4+
"version": "1.0.1",
5+
"minAppVersion": "0.15.0",
6+
"description": "Convert Linear issue shortcodes into clickable links with status-based styling",
7+
"author": "Jonatan Jansson",
8+
"authorUrl": "https://github.com/dotMavriQ",
9+
"fundingUrl": "https://liberapay.com/dotMavriQ/",
10+
"isDesktopOnly": false
11+
}

release-test/styles.css

Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
/* Linian Plugin Styles */
2+
3+
/* Issue Link Base Styles */
4+
.linian-issue-link {
5+
display: inline-flex;
6+
align-items: center;
7+
gap: 4px;
8+
padding: 2px 6px;
9+
border-radius: 4px;
10+
text-decoration: none;
11+
font-family: var(--font-monospace);
12+
font-size: 0.9em;
13+
font-weight: 500;
14+
background-color: var(--background-modifier-border);
15+
color: var(--text-normal);
16+
border: 1px solid var(--background-modifier-border);
17+
transition: all 0.2s ease;
18+
}
19+
20+
.linian-issue-link:hover {
21+
background-color: var(--background-modifier-hover);
22+
border-color: var(--background-modifier-border-hover);
23+
text-decoration: none;
24+
transform: translateY(-1px);
25+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
26+
}
27+
28+
.linian-issue-content {
29+
display: flex;
30+
align-items: center;
31+
gap: 4px;
32+
}
33+
34+
.linian-issue-identifier {
35+
font-weight: 600;
36+
}
37+
38+
/* Priority Icons */
39+
.linian-priority-icon {
40+
font-size: 0.8em;
41+
margin-right: 2px;
42+
}
43+
44+
/* Status Indicator */
45+
.linian-status-indicator {
46+
width: 8px;
47+
height: 8px;
48+
border-radius: 50%;
49+
display: inline-block;
50+
margin-left: 4px;
51+
}
52+
53+
/* Assignee Avatar */
54+
.linian-assignee-avatar {
55+
width: 16px;
56+
height: 16px;
57+
border-radius: 50%;
58+
margin-left: 4px;
59+
object-fit: cover;
60+
}
61+
62+
/* Loading State */
63+
.linian-loading {
64+
color: var(--text-muted);
65+
font-style: italic;
66+
font-family: var(--font-monospace);
67+
padding: 2px 6px;
68+
border-radius: 4px;
69+
background-color: var(--background-modifier-border);
70+
border: 1px solid var(--background-modifier-border);
71+
animation: pulse 1.5s ease-in-out infinite;
72+
}
73+
74+
/* Inline Issue Container */
75+
.linian-inline-issue.linian-container {
76+
display: inline-block;
77+
margin: 0;
78+
}
79+
80+
.linian-inline-issue.linian-container .linian-issue-link {
81+
padding: 0.1em 0.3em;
82+
}
83+
84+
/* Shortcode Highlighting in Live Preview */
85+
.linian-shortcode-highlight {
86+
background-color: var(--background-modifier-hover);
87+
border-radius: 2px;
88+
padding: 1px 2px;
89+
}
90+
91+
@keyframes pulse {
92+
0%, 100% { opacity: 1; }
93+
50% { opacity: 0.5; }
94+
}
95+
96+
/* Error State */
97+
.linian-error {
98+
color: var(--text-error);
99+
font-family: var(--font-monospace);
100+
padding: 2px 6px;
101+
border-radius: 4px;
102+
background-color: rgba(var(--color-red-rgb), 0.1);
103+
border: 1px solid rgba(var(--color-red-rgb), 0.3);
104+
}
105+
106+
/* Tooltip Styles */
107+
.linian-tooltip {
108+
background-color: var(--background-primary);
109+
border: 1px solid var(--background-modifier-border);
110+
border-radius: 8px;
111+
padding: 12px;
112+
max-width: 300px;
113+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
114+
z-index: 1000;
115+
animation: tooltipFadeIn 0.2s ease-out;
116+
}
117+
118+
@keyframes tooltipFadeIn {
119+
from {
120+
opacity: 0;
121+
transform: translateY(-100%) scale(0.95);
122+
}
123+
to {
124+
opacity: 1;
125+
transform: translateY(-100%) scale(1);
126+
}
127+
}
128+
129+
.linian-tooltip-title {
130+
font-weight: 600;
131+
font-size: 0.9em;
132+
margin-bottom: 8px;
133+
color: var(--text-normal);
134+
line-height: 1.3;
135+
}
136+
137+
.linian-tooltip-meta {
138+
display: flex;
139+
align-items: center;
140+
gap: 8px;
141+
flex-wrap: wrap;
142+
margin-bottom: 8px;
143+
}
144+
145+
.linian-tooltip-status {
146+
padding: 2px 6px;
147+
border-radius: 12px;
148+
font-size: 0.75em;
149+
font-weight: 500;
150+
color: white;
151+
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
152+
}
153+
154+
.linian-tooltip-team {
155+
font-size: 0.8em;
156+
color: var(--text-muted);
157+
font-weight: 500;
158+
}
159+
160+
.linian-tooltip-assignee {
161+
font-size: 0.8em;
162+
color: var(--text-accent);
163+
font-weight: 500;
164+
}
165+
166+
.linian-tooltip-description {
167+
font-size: 0.8em;
168+
color: var(--text-muted);
169+
line-height: 1.4;
170+
border-top: 1px solid var(--background-modifier-border);
171+
padding-top: 8px;
172+
margin-top: 8px;
173+
}
174+
175+
/* Dark Theme Adjustments */
176+
.theme-dark .linian-tooltip {
177+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
178+
}
179+
180+
/* High Contrast Mode */
181+
@media (prefers-contrast: high) {
182+
.linian-issue-link {
183+
border-width: 2px;
184+
}
185+
186+
.linian-status-indicator {
187+
border: 1px solid var(--text-normal);
188+
}
189+
}
190+
191+
/* Reduced Motion */
192+
@media (prefers-reduced-motion: reduce) {
193+
.linian-issue-link {
194+
transition: none;
195+
}
196+
197+
.linian-issue-link:hover {
198+
transform: none;
199+
}
200+
201+
.linian-loading {
202+
animation: none;
203+
}
204+
205+
.linian-tooltip {
206+
animation: none;
207+
}
208+
}
209+
210+
/* Mobile Responsive */
211+
@media (max-width: 768px) {
212+
.linian-tooltip {
213+
max-width: 250px;
214+
padding: 10px;
215+
}
216+
217+
.linian-assignee-avatar {
218+
width: 14px;
219+
height: 14px;
220+
}
221+
}

release-test/versions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"1.0.0": "0.15.0",
3+
"1.0.1": "0.15.0"
4+
}

src/api2.ts

Lines changed: 0 additions & 138 deletions
This file was deleted.

0 commit comments

Comments
 (0)