@@ -132,33 +132,89 @@ fn icon_for_sub_spec(file_name: &str) -> (Option<String>, Option<String>) {
132132
133133 let patterns: & [ ( & [ & str ] , & str , & str ) ] = & [
134134 // Design & UI
135- ( & [ "design" , "ui" , "ux" , "mockup" , "wireframe" , "prototype" ] , "Palette" , "text-purple-600" ) ,
135+ (
136+ & [ "design" , "ui" , "ux" , "mockup" , "wireframe" , "prototype" ] ,
137+ "Palette" ,
138+ "text-purple-600" ,
139+ ) ,
136140 // Architecture & Structure
137- ( & [ "architecture" , "structure" , "system" , "diagram" ] , "Map" , "text-indigo-600" ) ,
141+ (
142+ & [ "architecture" , "structure" , "system" , "diagram" ] ,
143+ "Map" ,
144+ "text-indigo-600" ,
145+ ) ,
138146 // Implementation & Code
139- ( & [ "implementation" , "code" , "develop" , "build" ] , "Code" , "text-green-600" ) ,
147+ (
148+ & [ "implementation" , "code" , "develop" , "build" ] ,
149+ "Code" ,
150+ "text-green-600" ,
151+ ) ,
140152 // API & Integration
141- ( & [ "api" , "endpoint" , "integration" , "interface" ] , "Code" , "text-blue-600" ) ,
153+ (
154+ & [ "api" , "endpoint" , "integration" , "interface" ] ,
155+ "Code" ,
156+ "text-blue-600" ,
157+ ) ,
142158 // Testing & QA
143- ( & [ "test" , "qa" , "quality" , "validation" ] , "TestTube" , "text-orange-600" ) ,
159+ (
160+ & [ "test" , "qa" , "quality" , "validation" ] ,
161+ "TestTube" ,
162+ "text-orange-600" ,
163+ ) ,
144164 // Tasks & PM
145- ( & [ "task" , "todo" , "checklist" , "milestone" ] , "CheckSquare" , "text-gray-600" ) ,
165+ (
166+ & [ "task" , "todo" , "checklist" , "milestone" ] ,
167+ "CheckSquare" ,
168+ "text-gray-600" ,
169+ ) ,
146170 // Configuration & Setup
147- ( & [ "config" , "setup" , "settings" , "environment" ] , "Wrench" , "text-yellow-600" ) ,
171+ (
172+ & [ "config" , "setup" , "settings" , "environment" ] ,
173+ "Wrench" ,
174+ "text-yellow-600" ,
175+ ) ,
148176 // Deployment & DevOps
149- ( & [ "deploy" , "devops" , "ci" , "cd" , "pipeline" , "release" ] , "Wrench" , "text-orange-600" ) ,
177+ (
178+ & [ "deploy" , "devops" , "ci" , "cd" , "pipeline" , "release" ] ,
179+ "Wrench" ,
180+ "text-orange-600" ,
181+ ) ,
150182 // Migration & Updates
151- ( & [ "migration" , "upgrade" , "refactor" , "transition" ] , "GitBranch" , "text-cyan-600" ) ,
183+ (
184+ & [ "migration" , "upgrade" , "refactor" , "transition" ] ,
185+ "GitBranch" ,
186+ "text-cyan-600" ,
187+ ) ,
152188 // Security
153- ( & [ "security" , "auth" , "permission" , "access" , "encryption" ] , "CheckSquare" , "text-red-600" ) ,
189+ (
190+ & [ "security" , "auth" , "permission" , "access" , "encryption" ] ,
191+ "CheckSquare" ,
192+ "text-red-600" ,
193+ ) ,
154194 // Performance
155- ( & [ "performance" , "optimization" , "speed" , "cache" , "benchmark" ] , "TrendingUp" , "text-green-600" ) ,
195+ (
196+ & [ "performance" , "optimization" , "speed" , "cache" , "benchmark" ] ,
197+ "TrendingUp" ,
198+ "text-green-600" ,
199+ ) ,
156200 // Data
157- ( & [ "database" , "data" , "schema" , "model" , "query" ] , "FileText" , "text-blue-600" ) ,
201+ (
202+ & [ "database" , "data" , "schema" , "model" , "query" ] ,
203+ "FileText" ,
204+ "text-blue-600" ,
205+ ) ,
158206 // Docs
159- ( & [ "doc" , "guide" , "manual" , "reference" ] , "FileText" , "text-gray-500" ) ,
207+ (
208+ & [ "doc" , "guide" , "manual" , "reference" ] ,
209+ "FileText" ,
210+ "text-gray-500" ,
211+ ) ,
160212 // Git
161- ( & [ "github" , "git" , "vcs" , "version" ] , "GitBranch" , "text-pink-600" ) ,
213+ (
214+ & [ "github" , "git" , "vcs" , "version" ] ,
215+ "GitBranch" ,
216+ "text-pink-600" ,
217+ ) ,
162218 ] ;
163219
164220 for ( keywords, icon, color) in patterns {
@@ -167,7 +223,10 @@ fn icon_for_sub_spec(file_name: &str) -> (Option<String>, Option<String>) {
167223 }
168224 }
169225
170- ( Some ( "FileText" . to_string ( ) ) , Some ( "text-gray-600" . to_string ( ) ) )
226+ (
227+ Some ( "FileText" . to_string ( ) ) ,
228+ Some ( "text-gray-600" . to_string ( ) ) ,
229+ )
171230}
172231
173232fn detect_sub_specs ( readme_path : & str ) -> Vec < SubSpec > {
0 commit comments