diff --git a/packages/cli/src/ui/utils/TableRenderer.tsx b/packages/cli/src/ui/utils/TableRenderer.tsx index 986a3e61e0..fcd760ff16 100644 --- a/packages/cli/src/ui/utils/TableRenderer.tsx +++ b/packages/cli/src/ui/utils/TableRenderer.tsx @@ -309,7 +309,7 @@ export const TableRenderer: React.FC = ({ }; return ( - + {/* Top border */} {renderBorder('top')} diff --git a/packages/cli/src/ui/utils/__snapshots__/MarkdownDisplay.test.tsx.snap b/packages/cli/src/ui/utils/__snapshots__/MarkdownDisplay.test.tsx.snap index 94685b95fb..5bbf668848 100644 --- a/packages/cli/src/ui/utils/__snapshots__/MarkdownDisplay.test.tsx.snap +++ b/packages/cli/src/ui/utils/__snapshots__/MarkdownDisplay.test.tsx.snap @@ -88,8 +88,7 @@ exports[` > with 'Unix' line endings > renders ordered lists `; exports[` > with 'Unix' line endings > renders tables correctly 1`] = ` -" -┌──────────┬──────────┐ +"┌──────────┬──────────┐ │ Header 1 │ Header 2 │ ├──────────┼──────────┤ │ Cell 1 │ Cell 2 │ @@ -191,8 +190,7 @@ exports[` > with 'Windows' line endings > renders ordered lis `; exports[` > with 'Windows' line endings > renders tables correctly 1`] = ` -" -┌──────────┬──────────┐ +"┌──────────┬──────────┐ │ Header 1 │ Header 2 │ ├──────────┼──────────┤ │ Cell 1 │ Cell 2 │ diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-calculates-column-widths-based-on-ren-.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-calculates-column-widths-based-on-ren-.snap.svg index 6a97dd54e7..0b4816c045 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-calculates-column-widths-based-on-ren-.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-calculates-column-widths-based-on-ren-.snap.svg @@ -1,39 +1,39 @@ - + - + - ┌────────┬────────┬────────┐ - - Col 1 - - Col 2 - - Col 3 - - ├────────┼────────┼────────┤ + ┌────────┬────────┬────────┐ + + Col 1 + + Col 2 + + Col 3 + + ├────────┼────────┼────────┤ + + 123456 + + Normal + + Short + - 123456 + Short - Normal + 123456 - Short + Normal - Short + Normal - 123456 + Short - Normal + 123456 - - Normal - - Short - - 123456 - - └────────┴────────┴────────┘ + └────────┴────────┴────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-calculates-width-correctly-for-conten-.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-calculates-width-correctly-for-conten-.snap.svg index 688b197308..56b8db6511 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-calculates-width-correctly-for-conten-.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-calculates-width-correctly-for-conten-.snap.svg @@ -1,39 +1,39 @@ - + - + - ┌───────────────────────────────────┬───────────────────────────────┬─────────────────────────────────┐ - - Col 1 - - Col 2 - - Col 3 - - ├───────────────────────────────────┼───────────────────────────────┼─────────────────────────────────┤ + ┌───────────────────────────────────┬───────────────────────────────┬─────────────────────────────────┐ + + Col 1 + + Col 2 + + Col 3 + + ├───────────────────────────────────┼───────────────────────────────┼─────────────────────────────────┤ + + Visit Google (https://google.com) + + Plain Text + + More Info + - Visit Google (https://google.com) + Info Here - Plain Text + Visit Bing (https://bing.com) - More Info + Links - Info Here + Check This - Visit Bing (https://bing.com) + Search - Links + Visit Yahoo (https://yahoo.com) - - Check This - - Search - - Visit Yahoo (https://yahoo.com) - - └───────────────────────────────────┴───────────────────────────────┴─────────────────────────────────┘ + └───────────────────────────────────┴───────────────────────────────┴─────────────────────────────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-does-not-parse-markdown-inside-code-s-.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-does-not-parse-markdown-inside-code-s-.snap.svg index 6cec80aff1..b90ffb4390 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-does-not-parse-markdown-inside-code-s-.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-does-not-parse-markdown-inside-code-s-.snap.svg @@ -1,39 +1,39 @@ - + - + - ┌─────────────────┬──────────────────────┬──────────────────┐ - - Col 1 - - Col 2 - - Col 3 - - ├─────────────────┼──────────────────────┼──────────────────┤ + ┌─────────────────┬──────────────────────┬──────────────────┐ + + Col 1 + + Col 2 + + Col 3 + + ├─────────────────┼──────────────────────┼──────────────────┤ + + **not bold** + + _not italic_ + + ~~not strike~~ + - **not bold** + [not link](url) - _not italic_ + <u>not underline</u> - ~~not strike~~ + https://not.link - [not link](url) + Normal Text - <u>not underline</u> + More Code: *test* - https://not.link + ***nested*** - - Normal Text - - More Code: *test* - - ***nested*** - - └─────────────────┴──────────────────────┴──────────────────┘ + └─────────────────┴──────────────────────┴──────────────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-handles-nested-markdown-styles-recurs-.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-handles-nested-markdown-styles-recurs-.snap.svg index 2ac94409d3..76f32914e3 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-handles-nested-markdown-styles-recurs-.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-handles-nested-markdown-styles-recurs-.snap.svg @@ -1,39 +1,39 @@ - + - + - ┌─────────────────────────────┬─────────────────────────────┬─────────────────────────────┐ - - Header 1 - - Header 2 - - Header 3 - - ├─────────────────────────────┼─────────────────────────────┼─────────────────────────────┤ + ┌─────────────────────────────┬─────────────────────────────┬─────────────────────────────┐ + + Header 1 + + Header 2 + + Header 3 + + ├─────────────────────────────┼─────────────────────────────┼─────────────────────────────┤ + + Bold with Italic and Strike + + Normal + + Short + - Bold with Italic and Strike + Short - Normal + Bold with Italic and Strike - Short + Normal - Short + Normal - Bold with Italic and Strike + Short - Normal + Bold with Italic and Strike - - Normal - - Short - - Bold with Italic and Strike - - └─────────────────────────────┴─────────────────────────────┴─────────────────────────────┘ + └─────────────────────────────┴─────────────────────────────┴─────────────────────────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-handles-non-ASCII-characters-emojis-.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-handles-non-ASCII-characters-emojis-.snap.svg index 2526b9c7d3..ac1826110c 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-handles-non-ASCII-characters-emojis-.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-handles-non-ASCII-characters-emojis-.snap.svg @@ -1,32 +1,32 @@ - + - + - ┌──────────────┬────────────┬───────────────┐ - - Emoji 😃 - - Asian 汉字 - - Mixed 🚀 Text - - ├──────────────┼────────────┼───────────────┤ + ┌──────────────┬────────────┬───────────────┐ + + Emoji 😃 + + Asian 汉字 + + Mixed 🚀 Text + + ├──────────────┼────────────┼───────────────┤ + + Start 🌟 End + + 你好世界 + + Rocket 🚀 Man + - Start 🌟 End + Thumbs 👍 Up - 你好世界 + こんにちは - Rocket 🚀 Man + Fire 🔥 - - Thumbs 👍 Up - - こんにちは - - Fire 🔥 - - └──────────────┴────────────┴───────────────┘ + └──────────────┴────────────┴───────────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-handles-wrapped-bold-headers-without-showing-markers.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-handles-wrapped-bold-headers-without-showing-markers.snap.svg index 3ba3b1176c..ef32c59622 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-handles-wrapped-bold-headers-without-showing-markers.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-handles-wrapped-bold-headers-without-showing-markers.snap.svg @@ -1,47 +1,47 @@ - + - + - ┌─────────────┬───────┬─────────┐ + ┌─────────────┬───────┬─────────┐ + + Very Long + + Short + + Another + - Very Long + Bold Header - Short - Another + Long - Bold Header + That Will - Long + Header - That Will + Wrap - Header - - Wrap - - - - ├─────────────┼───────┼─────────┤ + ├─────────────┼───────┼─────────┤ + + Data 1 + + Data + + Data 3 + - Data 1 - Data + 2 - Data 3 - - - 2 - - - └─────────────┴───────┴─────────┘ + └─────────────┴───────┴─────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-3x3-table-correctly.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-3x3-table-correctly.snap.svg index 59e54e66de..26f82dcd56 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-3x3-table-correctly.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-3x3-table-correctly.snap.svg @@ -1,39 +1,39 @@ - + - + - ┌──────────────┬──────────────┬──────────────┐ - - Header 1 - - Header 2 - - Header 3 - - ├──────────────┼──────────────┼──────────────┤ + ┌──────────────┬──────────────┬──────────────┐ + + Header 1 + + Header 2 + + Header 3 + + ├──────────────┼──────────────┼──────────────┤ + + Row 1, Col 1 + + Row 1, Col 2 + + Row 1, Col 3 + - Row 1, Col 1 + Row 2, Col 1 - Row 1, Col 2 + Row 2, Col 2 - Row 1, Col 3 + Row 2, Col 3 - Row 2, Col 1 + Row 3, Col 1 - Row 2, Col 2 + Row 3, Col 2 - Row 2, Col 3 + Row 3, Col 3 - - Row 3, Col 1 - - Row 3, Col 2 - - Row 3, Col 3 - - └──────────────┴──────────────┴──────────────┘ + └──────────────┴──────────────┴──────────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-complex-table-with-mixed-content-lengths-correctly.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-complex-table-with-mixed-content-lengths-correctly.snap.svg index 73c93ab257..1e06378fd5 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-complex-table-with-mixed-content-lengths-correctly.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-complex-table-with-mixed-content-lengths-correctly.snap.svg @@ -1,61 +1,71 @@ - + - + - ┌─────────────────────────────┬──────────────────────────────┬─────────────────────────────┬──────────────────────────────┬─────┬────────┬─────────┬───────┐ + ┌─────────────────────────────┬──────────────────────────────┬─────────────────────────────┬──────────────────────────────┬─────┬────────┬─────────┬───────┐ + + Comprehensive Architectural + + Implementation Details for + + Longitudinal Performance + + Strategic Security Framework + + Key + + Status + + Version + + Owner + - Comprehensive Architectural + Specification for the - Implementation Details for + the High-Throughput - Longitudinal Performance + Analysis Across - Strategic Security Framework + for Mitigating Sophisticated - Key - Status - Version - Owner - Specification for the + Distributed Infrastructure - the High-Throughput + Asynchronous Message - Analysis Across + Multi-Regional Cloud - for Mitigating Sophisticated + Cross-Site Scripting - Distributed Infrastructure + Layer - Asynchronous Message + Processing Pipeline with - Multi-Regional Cloud + Deployment Clusters - Cross-Site Scripting + Vulnerabilities - Layer - Processing Pipeline with + Extended Scalability - Deployment Clusters - Vulnerabilities @@ -63,7 +73,7 @@ - Extended Scalability + Features and Redundancy @@ -73,7 +83,7 @@ - Features and Redundancy + Protocols @@ -81,304 +91,304 @@ - - - Protocols - - - - - - - - ├─────────────────────────────┼──────────────────────────────┼─────────────────────────────┼──────────────────────────────┼─────┼────────┼─────────┼───────┤ + ├─────────────────────────────┼──────────────────────────────┼─────────────────────────────┼──────────────────────────────┼─────┼────────┼─────────┼───────┤ + + The primary architecture + + Each message is processed + + Historical data indicates a + + A multi-layered defense + + INF + + Active + + v2.4 + + J. + - The primary architecture + utilizes a decoupled - Each message is processed + through a series of - Historical data indicates a + significant reduction in - A multi-layered defense + strategy incorporates - INF - Active - v2.4 - J. + Doe - utilizes a decoupled + microservices approach, - through a series of + specialized workers that - significant reduction in + tail latency when utilizing - strategy incorporates + content security policies, - Doe - microservices approach, + leveraging container - specialized workers that + handle data transformation, - tail latency when utilizing + edge computing nodes closer - content security policies, + input sanitization - leveraging container + orchestration for - handle data transformation, + validation, and persistent - edge computing nodes closer + to the geographic location - input sanitization + libraries, and regular - orchestration for + scalability and fault - validation, and persistent + storage using a persistent - to the geographic location + of the end-user base. - libraries, and regular + automated penetration - scalability and fault + tolerance in high-load - storage using a persistent + queue. - of the end-user base. - automated penetration + testing routines. - tolerance in high-load + scenarios. - queue. + Monitoring tools have - testing routines. - scenarios. + The pipeline features - Monitoring tools have + captured a steady increase + Developers are required to + This layer provides the - The pipeline features + built-in retry mechanisms - captured a steady increase + in throughput efficiency - Developers are required to + undergo mandatory security - This layer provides the + fundamental building blocks - built-in retry mechanisms + with exponential backoff to - in throughput efficiency + since the introduction of - undergo mandatory security + training focusing on the - fundamental building blocks + for service discovery, load - with exponential backoff to + ensure message delivery - since the introduction of + the vectorized query engine - training focusing on the + OWASP Top Ten to ensure that - for service discovery, load + balancing, and - ensure message delivery + integrity even during - the vectorized query engine + in the primary data - OWASP Top Ten to ensure that + security is integrated into - balancing, and + inter-service communication - integrity even during + transient network or service - in the primary data + warehouse. - security is integrated into + the initial design phase. - inter-service communication + via highly efficient - transient network or service + failures. - warehouse. - the initial design phase. - via highly efficient + protocol buffers. - failures. + Resource utilization + The implementation of a - protocol buffers. + Horizontal autoscaling is - Resource utilization + metrics demonstrate that - The implementation of a + robust Identity and Access + Advanced telemetry and - Horizontal autoscaling is + triggered automatically - metrics demonstrate that + the transition to - robust Identity and Access + Management system ensures - Advanced telemetry and + logging integrations allow - triggered automatically + based on the depth of the - the transition to + serverless compute for - Management system ensures + that the principle of least - logging integrations allow + for real-time monitoring of - based on the depth of the + processing queue, ensuring - serverless compute for + intermittent tasks has - that the principle of least + privilege is strictly - for real-time monitoring of + system health and rapid - processing queue, ensuring + consistent performance - intermittent tasks has + resulted in a thirty - privilege is strictly + enforced across all - system health and rapid + identification of - consistent performance + during unexpected traffic - resulted in a thirty + percent cost optimization. - enforced across all + environments. - identification of + bottlenecks within the - during unexpected traffic + spikes. - percent cost optimization. - environments. - bottlenecks within the + service mesh. - spikes. @@ -386,16 +396,6 @@ - - service mesh. - - - - - - - - - └─────────────────────────────┴──────────────────────────────┴─────────────────────────────┴──────────────────────────────┴─────┴────────┴─────────┴───────┘ + └─────────────────────────────┴──────────────────────────────┴─────────────────────────────┴──────────────────────────────┴─────┴────────┴─────────┴───────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-table-with-long-headers-and-4-columns-correctly.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-table-with-long-headers-and-4-columns-correctly.snap.svg index b6a4cbe442..33e14dc880 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-table-with-long-headers-and-4-columns-correctly.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-table-with-long-headers-and-4-columns-correctly.snap.svg @@ -1,63 +1,63 @@ - + - + - ┌───────────────┬───────────────┬──────────────────┬──────────────────┐ + ┌───────────────┬───────────────┬──────────────────┬──────────────────┐ + + Very Long + + Very Long + + Very Long Column + + Very Long Column + - Very Long + Column Header - Very Long + Column Header - Very Long Column + Header Three - Very Long Column + Header Four - Column Header + One - Column Header + Two - Header Three - Header Four - - One - - Two - - - - ├───────────────┼───────────────┼──────────────────┼──────────────────┤ + ├───────────────┼───────────────┼──────────────────┼──────────────────┤ + + Data 1.1 + + Data 1.2 + + Data 1.3 + + Data 1.4 + - Data 1.1 + Data 2.1 - Data 1.2 + Data 2.2 - Data 1.3 + Data 2.3 - Data 1.4 + Data 2.4 - Data 2.1 + Data 3.1 - Data 2.2 + Data 3.2 - Data 2.3 + Data 3.3 - Data 2.4 + Data 3.4 - - Data 3.1 - - Data 3.2 - - Data 3.3 - - Data 3.4 - - └───────────────┴───────────────┴──────────────────┴──────────────────┘ + └───────────────┴───────────────┴──────────────────┴──────────────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-table-with-mixed-emojis-As-.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-table-with-mixed-emojis-As-.snap.svg index fbbc9070d3..21bcf698fc 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-table-with-mixed-emojis-As-.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-table-with-mixed-emojis-As-.snap.svg @@ -1,32 +1,32 @@ - + - + - ┌───────────────┬───────────────────┬────────────────┐ - - Mixed 😃 中文 - - Complex 🚀 日本語 - - Text 📝 한국어 - - ├───────────────┼───────────────────┼────────────────┤ + ┌───────────────┬───────────────────┬────────────────┐ + + Mixed 😃 中文 + + Complex 🚀 日本語 + + Text 📝 한국어 + + ├───────────────┼───────────────────┼────────────────┤ + + 你好 😃 + + こんにちは 🚀 + + 안녕하세요 📝 + - 你好 😃 + World 🌍 - こんにちは 🚀 + Code 💻 - 안녕하세요 📝 + Pizza 🍕 - - World 🌍 - - Code 💻 - - Pizza 🍕 - - └───────────────┴───────────────────┴────────────────┘ + └───────────────┴───────────────────┴────────────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-table-with-only-Asian-chara-.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-table-with-only-Asian-chara-.snap.svg index 7970df8065..0bea22343f 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-table-with-only-Asian-chara-.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-table-with-only-Asian-chara-.snap.svg @@ -1,32 +1,32 @@ - + - + - ┌──────────────┬─────────────────┬───────────────┐ - - Chinese 中文 - - Japanese 日本語 - - Korean 한국어 - - ├──────────────┼─────────────────┼───────────────┤ + ┌──────────────┬─────────────────┬───────────────┐ + + Chinese 中文 + + Japanese 日本語 + + Korean 한국어 + + ├──────────────┼─────────────────┼───────────────┤ + + 你好 + + こんにちは + + 안녕하세요 + - 你好 + 世界 - こんにちは + 世界 - 안녕하세요 + 세계 - - 世界 - - 世界 - - 세계 - - └──────────────┴─────────────────┴───────────────┘ + └──────────────┴─────────────────┴───────────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-table-with-only-emojis-and-.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-table-with-only-emojis-and-.snap.svg index dc5cc190f7..524fb8db03 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-table-with-only-emojis-and-.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-a-table-with-only-emojis-and-.snap.svg @@ -1,32 +1,32 @@ - + - + - ┌──────────┬───────────┬──────────┐ - - Happy 😀 - - Rocket 🚀 - - Heart ❤️ - - ├──────────┼───────────┼──────────┤ + ┌──────────┬───────────┬──────────┐ + + Happy 😀 + + Rocket 🚀 + + Heart ❤️ + + ├──────────┼───────────┼──────────┤ + + Smile 😃 + + Fire 🔥 + + Love 💖 + - Smile 😃 + Cool 😎 - Fire 🔥 + Star ⭐ - Love 💖 + Blue 💙 - - Cool 😎 - - Star ⭐ - - Blue 💙 - - └──────────┴───────────┴──────────┘ + └──────────┴───────────┴──────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-complex-markdown-in-rows-and-.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-complex-markdown-in-rows-and-.snap.svg index 8b3cc61d04..2499c44621 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-complex-markdown-in-rows-and-.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-complex-markdown-in-rows-and-.snap.svg @@ -1,51 +1,51 @@ - + - + - ┌───────────────┬─────────────────────────────┐ - - Feature - - Markdown - - ├───────────────┼─────────────────────────────┤ + ┌───────────────┬─────────────────────────────┐ + + Feature + + Markdown + + ├───────────────┼─────────────────────────────┤ + + Bold + + Bold Text + - Bold + Italic - Bold Text + Italic Text - Italic + Combined - Italic Text + Bold and Italic - Combined + Link - Bold and Italic + Google (https://google.com) - Link + Code - Google (https://google.com) + const x = 1 - Code + Strikethrough - const x = 1 + Strike - Strikethrough + Underline - Strike + Underline - - Underline - - Underline - - └───────────────┴─────────────────────────────┘ + └───────────────┴─────────────────────────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-correctly-when-headers-are-em-.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-correctly-when-headers-are-em-.snap.svg index b2523badcd..a7b94a6077 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-correctly-when-headers-are-em-.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-correctly-when-headers-are-em-.snap.svg @@ -1,19 +1,19 @@ - + - + - ┌────────┬────────┐ - - - - ├────────┼────────┤ - - Data 1 - - Data 2 - - └────────┴────────┘ + ┌────────┬────────┐ + + + + ├────────┼────────┤ + + Data 1 + + Data 2 + + └────────┴────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-correctly-when-there-are-more-.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-correctly-when-there-are-more-.snap.svg index 8e2f17383b..8d6982e5a6 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-correctly-when-there-are-more-.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-renders-correctly-when-there-are-more-.snap.svg @@ -1,24 +1,24 @@ - + - + - ┌──────────┬──────────┬──────────┐ - - Header 1 - - Header 2 - - Header 3 - - ├──────────┼──────────┼──────────┤ - - Data 1 - - Data 2 - - - └──────────┴──────────┴──────────┘ + ┌──────────┬──────────┬──────────┐ + + Header 1 + + Header 2 + + Header 3 + + ├──────────┼──────────┼──────────┤ + + Data 1 + + Data 2 + + + └──────────┴──────────┴──────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-strips-bold-markers-from-headers-and-renders-them-correctly.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-strips-bold-markers-from-headers-and-renders-them-correctly.snap.svg index af6fd33fc5..0511a8558a 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-strips-bold-markers-from-headers-and-renders-them-correctly.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-strips-bold-markers-from-headers-and-renders-them-correctly.snap.svg @@ -1,25 +1,25 @@ - + - + - ┌─────────────┬───────────────┬──────────────┐ - - Bold Header - - Normal Header - - Another Bold - - ├─────────────┼───────────────┼──────────────┤ - - Data 1 - - Data 2 - - Data 3 - - └─────────────┴───────────────┴──────────────┘ + ┌─────────────┬───────────────┬──────────────┐ + + Bold Header + + Normal Header + + Another Bold + + ├─────────────┼───────────────┼──────────────┤ + + Data 1 + + Data 2 + + Data 3 + + └─────────────┴───────────────┴──────────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-wraps-all-long-columns-correctly.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-wraps-all-long-columns-correctly.snap.svg index 94f5cff65a..18fa02f781 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-wraps-all-long-columns-correctly.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-wraps-all-long-columns-correctly.snap.svg @@ -1,52 +1,52 @@ - + - + - ┌────────────────┬────────────────┬─────────────────┐ - - Col 1 - - Col 2 - - Col 3 - - ├────────────────┼────────────────┼─────────────────┤ + ┌────────────────┬────────────────┬─────────────────┐ + + Col 1 + + Col 2 + + Col 3 + + ├────────────────┼────────────────┼─────────────────┤ + + This is a very + + This is also a + + And this is the + - This is a very + long text that - This is also a + very long text - And this is the + third long text - long text that + needs wrapping - very long text + that needs - third long text + that needs - needs wrapping + in column 1 - that needs + wrapping in - that needs + wrapping in - in column 1 - wrapping in + column 2 - wrapping in + column 3 - - - column 2 - - column 3 - - └────────────────┴────────────────┴─────────────────┘ + └────────────────┴────────────────┴─────────────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-wraps-columns-with-punctuation-correctly.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-wraps-columns-with-punctuation-correctly.snap.svg index 1b801041d0..0344e555ef 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-wraps-columns-with-punctuation-correctly.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-wraps-columns-with-punctuation-correctly.snap.svg @@ -1,51 +1,51 @@ - + - + - ┌───────────────────┬───────────────┬─────────────────┐ - - Punctuation 1 - - Punctuation 2 - - Punctuation 3 - - ├───────────────────┼───────────────┼─────────────────┤ + ┌───────────────────┬───────────────┬─────────────────┐ + + Punctuation 1 + + Punctuation 2 + + Punctuation 3 + + ├───────────────────┼───────────────┼─────────────────┤ + + Start. Stop. + + Semi; colon: + + At@ Hash# + - Start. Stop. + Comma, separated. - Semi; colon: + Pipe| Slash/ - At@ Hash# + Dollar$ - Comma, separated. + Exclamation! - Pipe| Slash/ + Backslash\ - Dollar$ + Percent% Caret^ - Exclamation! + Question? - Backslash\ - Percent% Caret^ + Ampersand& - Question? + hyphen-ated - Ampersand& + Asterisk* - - hyphen-ated - - - Asterisk* - - └───────────────────┴───────────────┴─────────────────┘ + └───────────────────┴───────────────┴─────────────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-wraps-long-cell-content-correctly.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-wraps-long-cell-content-correctly.snap.svg index 3e99ee7f52..c64e611a7a 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-wraps-long-cell-content-correctly.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-wraps-long-cell-content-correctly.snap.svg @@ -1,35 +1,35 @@ - + - + - ┌───────┬─────────────────────────────┬───────┐ - - Col 1 - - Col 2 - - Col 3 - - ├───────┼─────────────────────────────┼───────┤ + ┌───────┬─────────────────────────────┬───────┐ + + Col 1 + + Col 2 + + Col 3 + + ├───────┼─────────────────────────────┼───────┤ + + Short + + This is a very long cell + + Short + - Short - This is a very long cell + content that should wrap to - Short - content that should wrap to + multiple lines - - - multiple lines - - - └───────┴─────────────────────────────┴───────┘ + └───────┴─────────────────────────────┴───────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-wraps-mixed-long-and-short-columns-correctly.snap.svg b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-wraps-mixed-long-and-short-columns-correctly.snap.svg index 0a352660ea..4e0860e323 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-wraps-mixed-long-and-short-columns-correctly.snap.svg +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer-TableRenderer-wraps-mixed-long-and-short-columns-correctly.snap.svg @@ -1,36 +1,36 @@ - + - + - ┌───────┬──────────────────────────┬────────┐ - - Short - - Long - - Medium - - ├───────┼──────────────────────────┼────────┤ + ┌───────┬──────────────────────────┬────────┐ + + Short + + Long + + Medium + + ├───────┼──────────────────────────┼────────┤ + + Tiny + + This is a very long text + + Not so + - Tiny - This is a very long text + that definitely needs to - Not so + long - that definitely needs to + wrap to the next line - long - - - wrap to the next line - - - └───────┴──────────────────────────┴────────┘ + └───────┴──────────────────────────┴────────┘ \ No newline at end of file diff --git a/packages/cli/src/ui/utils/__snapshots__/TableRenderer.test.tsx.snap b/packages/cli/src/ui/utils/__snapshots__/TableRenderer.test.tsx.snap index 9b5c1e875a..b3737888ec 100644 --- a/packages/cli/src/ui/utils/__snapshots__/TableRenderer.test.tsx.snap +++ b/packages/cli/src/ui/utils/__snapshots__/TableRenderer.test.tsx.snap @@ -1,100 +1,83 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`TableRenderer > 'calculates column widths based on ren…' 1`] = ` -" -┌────────┬────────┬────────┐ +"┌────────┬────────┬────────┐ │ Col 1 │ Col 2 │ Col 3 │ ├────────┼────────┼────────┤ │ 123456 │ Normal │ Short │ │ Short │ 123456 │ Normal │ │ Normal │ Short │ 123456 │ -└────────┴────────┴────────┘ -" +└────────┴────────┴────────┘" `; exports[`TableRenderer > 'calculates width correctly for conten…' 1`] = ` -" -┌───────────────────────────────────┬───────────────────────────────┬─────────────────────────────────┐ +"┌───────────────────────────────────┬───────────────────────────────┬─────────────────────────────────┐ │ Col 1 │ Col 2 │ Col 3 │ ├───────────────────────────────────┼───────────────────────────────┼─────────────────────────────────┤ │ Visit Google (https://google.com) │ Plain Text │ More Info │ │ Info Here │ Visit Bing (https://bing.com) │ Links │ │ Check This │ Search │ Visit Yahoo (https://yahoo.com) │ -└───────────────────────────────────┴───────────────────────────────┴─────────────────────────────────┘ -" +└───────────────────────────────────┴───────────────────────────────┴─────────────────────────────────┘" `; exports[`TableRenderer > 'does not parse markdown inside code s…' 1`] = ` -" -┌─────────────────┬──────────────────────┬──────────────────┐ +"┌─────────────────┬──────────────────────┬──────────────────┐ │ Col 1 │ Col 2 │ Col 3 │ ├─────────────────┼──────────────────────┼──────────────────┤ │ **not bold** │ _not italic_ │ ~~not strike~~ │ │ [not link](url) │ not underline │ https://not.link │ │ Normal Text │ More Code: *test* │ ***nested*** │ -└─────────────────┴──────────────────────┴──────────────────┘ -" +└─────────────────┴──────────────────────┴──────────────────┘" `; exports[`TableRenderer > 'handles nested markdown styles recurs…' 1`] = ` -" -┌─────────────────────────────┬─────────────────────────────┬─────────────────────────────┐ +"┌─────────────────────────────┬─────────────────────────────┬─────────────────────────────┐ │ Header 1 │ Header 2 │ Header 3 │ ├─────────────────────────────┼─────────────────────────────┼─────────────────────────────┤ │ Bold with Italic and Strike │ Normal │ Short │ │ Short │ Bold with Italic and Strike │ Normal │ │ Normal │ Short │ Bold with Italic and Strike │ -└─────────────────────────────┴─────────────────────────────┴─────────────────────────────┘ -" +└─────────────────────────────┴─────────────────────────────┴─────────────────────────────┘" `; exports[`TableRenderer > 'handles non-ASCII characters (emojis …' 1`] = ` -" -┌──────────────┬────────────┬───────────────┐ +"┌──────────────┬────────────┬───────────────┐ │ Emoji 😃 │ Asian 汉字 │ Mixed 🚀 Text │ ├──────────────┼────────────┼───────────────┤ │ Start 🌟 End │ 你好世界 │ Rocket 🚀 Man │ │ Thumbs 👍 Up │ こんにちは │ Fire 🔥 │ -└──────────────┴────────────┴───────────────┘ -" +└──────────────┴────────────┴───────────────┘" `; exports[`TableRenderer > 'renders a table with mixed emojis, As…' 1`] = ` -" -┌───────────────┬───────────────────┬────────────────┐ +"┌───────────────┬───────────────────┬────────────────┐ │ Mixed 😃 中文 │ Complex 🚀 日本語 │ Text 📝 한국어 │ ├───────────────┼───────────────────┼────────────────┤ │ 你好 😃 │ こんにちは 🚀 │ 안녕하세요 📝 │ │ World 🌍 │ Code 💻 │ Pizza 🍕 │ -└───────────────┴───────────────────┴────────────────┘ -" +└───────────────┴───────────────────┴────────────────┘" `; exports[`TableRenderer > 'renders a table with only Asian chara…' 1`] = ` -" -┌──────────────┬─────────────────┬───────────────┐ +"┌──────────────┬─────────────────┬───────────────┐ │ Chinese 中文 │ Japanese 日本語 │ Korean 한국어 │ ├──────────────┼─────────────────┼───────────────┤ │ 你好 │ こんにちは │ 안녕하세요 │ │ 世界 │ 世界 │ 세계 │ -└──────────────┴─────────────────┴───────────────┘ -" +└──────────────┴─────────────────┴───────────────┘" `; exports[`TableRenderer > 'renders a table with only emojis and …' 1`] = ` -" -┌──────────┬───────────┬──────────┐ +"┌──────────┬───────────┬──────────┐ │ Happy 😀 │ Rocket 🚀 │ Heart ❤️ │ ├──────────┼───────────┼──────────┤ │ Smile 😃 │ Fire 🔥 │ Love 💖 │ │ Cool 😎 │ Star ⭐ │ Blue 💙 │ -└──────────┴───────────┴──────────┘ -" +└──────────┴───────────┴──────────┘" `; exports[`TableRenderer > 'renders complex markdown in rows and …' 1`] = ` -" -┌───────────────┬─────────────────────────────┐ +"┌───────────────┬─────────────────────────────┐ │ Feature │ Markdown │ ├───────────────┼─────────────────────────────┤ │ Bold │ Bold Text │ @@ -104,33 +87,27 @@ exports[`TableRenderer > 'renders complex markdown in rows and …' 1`] = ` │ Code │ const x = 1 │ │ Strikethrough │ Strike │ │ Underline │ Underline │ -└───────────────┴─────────────────────────────┘ -" +└───────────────┴─────────────────────────────┘" `; exports[`TableRenderer > 'renders correctly when headers are em…' 1`] = ` -" -┌────────┬────────┐ +"┌────────┬────────┐ │ │ │ ├────────┼────────┤ │ Data 1 │ Data 2 │ -└────────┴────────┘ -" +└────────┴────────┘" `; exports[`TableRenderer > 'renders correctly when there are more…' 1`] = ` -" -┌──────────┬──────────┬──────────┐ +"┌──────────┬──────────┬──────────┐ │ Header 1 │ Header 2 │ Header 3 │ ├──────────┼──────────┼──────────┤ │ Data 1 │ Data 2 │ │ -└──────────┴──────────┴──────────┘ -" +└──────────┴──────────┴──────────┘" `; exports[`TableRenderer > handles wrapped bold headers without showing markers 1`] = ` -" -┌─────────────┬───────┬─────────┐ +"┌─────────────┬───────┬─────────┐ │ Very Long │ Short │ Another │ │ Bold Header │ │ Long │ │ That Will │ │ Header │ @@ -138,25 +115,21 @@ exports[`TableRenderer > handles wrapped bold headers without showing markers 1` ├─────────────┼───────┼─────────┤ │ Data 1 │ Data │ Data 3 │ │ │ 2 │ │ -└─────────────┴───────┴─────────┘ -" +└─────────────┴───────┴─────────┘" `; exports[`TableRenderer > renders a 3x3 table correctly 1`] = ` -" -┌──────────────┬──────────────┬──────────────┐ +"┌──────────────┬──────────────┬──────────────┐ │ Header 1 │ Header 2 │ Header 3 │ ├──────────────┼──────────────┼──────────────┤ │ Row 1, Col 1 │ Row 1, Col 2 │ Row 1, Col 3 │ │ Row 2, Col 1 │ Row 2, Col 2 │ Row 2, Col 3 │ │ Row 3, Col 1 │ Row 3, Col 2 │ Row 3, Col 3 │ -└──────────────┴──────────────┴──────────────┘ -" +└──────────────┴──────────────┴──────────────┘" `; exports[`TableRenderer > renders a complex table with mixed content lengths correctly 1`] = ` -" -┌─────────────────────────────┬──────────────────────────────┬─────────────────────────────┬──────────────────────────────┬─────┬────────┬─────────┬───────┐ +"┌─────────────────────────────┬──────────────────────────────┬─────────────────────────────┬──────────────────────────────┬─────┬────────┬─────────┬───────┐ │ Comprehensive Architectural │ Implementation Details for │ Longitudinal Performance │ Strategic Security Framework │ Key │ Status │ Version │ Owner │ │ Specification for the │ the High-Throughput │ Analysis Across │ for Mitigating Sophisticated │ │ │ │ │ │ Distributed Infrastructure │ Asynchronous Message │ Multi-Regional Cloud │ Cross-Site Scripting │ │ │ │ │ @@ -189,13 +162,11 @@ exports[`TableRenderer > renders a complex table with mixed content lengths corr │ identification of │ during unexpected traffic │ percent cost optimization. │ environments. │ │ │ │ │ │ bottlenecks within the │ spikes. │ │ │ │ │ │ │ │ service mesh. │ │ │ │ │ │ │ │ -└─────────────────────────────┴──────────────────────────────┴─────────────────────────────┴──────────────────────────────┴─────┴────────┴─────────┴───────┘ -" +└─────────────────────────────┴──────────────────────────────┴─────────────────────────────┴──────────────────────────────┴─────┴────────┴─────────┴───────┘" `; exports[`TableRenderer > renders a table with long headers and 4 columns correctly 1`] = ` -" -┌───────────────┬───────────────┬──────────────────┬──────────────────┐ +"┌───────────────┬───────────────┬──────────────────┬──────────────────┐ │ Very Long │ Very Long │ Very Long Column │ Very Long Column │ │ Column Header │ Column Header │ Header Three │ Header Four │ │ One │ Two │ │ │ @@ -203,23 +174,19 @@ exports[`TableRenderer > renders a table with long headers and 4 columns correct │ Data 1.1 │ Data 1.2 │ Data 1.3 │ Data 1.4 │ │ Data 2.1 │ Data 2.2 │ Data 2.3 │ Data 2.4 │ │ Data 3.1 │ Data 3.2 │ Data 3.3 │ Data 3.4 │ -└───────────────┴───────────────┴──────────────────┴──────────────────┘ -" +└───────────────┴───────────────┴──────────────────┴──────────────────┘" `; exports[`TableRenderer > strips bold markers from headers and renders them correctly 1`] = ` -" -┌─────────────┬───────────────┬──────────────┐ +"┌─────────────┬───────────────┬──────────────┐ │ Bold Header │ Normal Header │ Another Bold │ ├─────────────┼───────────────┼──────────────┤ │ Data 1 │ Data 2 │ Data 3 │ -└─────────────┴───────────────┴──────────────┘ -" +└─────────────┴───────────────┴──────────────┘" `; exports[`TableRenderer > wraps all long columns correctly 1`] = ` -" -┌────────────────┬────────────────┬─────────────────┐ +"┌────────────────┬────────────────┬─────────────────┐ │ Col 1 │ Col 2 │ Col 3 │ ├────────────────┼────────────────┼─────────────────┤ │ This is a very │ This is also a │ And this is the │ @@ -227,13 +194,11 @@ exports[`TableRenderer > wraps all long columns correctly 1`] = ` │ needs wrapping │ that needs │ that needs │ │ in column 1 │ wrapping in │ wrapping in │ │ │ column 2 │ column 3 │ -└────────────────┴────────────────┴─────────────────┘ -" +└────────────────┴────────────────┴─────────────────┘" `; exports[`TableRenderer > wraps columns with punctuation correctly 1`] = ` -" -┌───────────────────┬───────────────┬─────────────────┐ +"┌───────────────────┬───────────────┬─────────────────┐ │ Punctuation 1 │ Punctuation 2 │ Punctuation 3 │ ├───────────────────┼───────────────┼─────────────────┤ │ Start. Stop. │ Semi; colon: │ At@ Hash# │ @@ -241,30 +206,25 @@ exports[`TableRenderer > wraps columns with punctuation correctly 1`] = ` │ Exclamation! │ Backslash\\ │ Percent% Caret^ │ │ Question? │ │ Ampersand& │ │ hyphen-ated │ │ Asterisk* │ -└───────────────────┴───────────────┴─────────────────┘ -" +└───────────────────┴───────────────┴─────────────────┘" `; exports[`TableRenderer > wraps long cell content correctly 1`] = ` -" -┌───────┬─────────────────────────────┬───────┐ +"┌───────┬─────────────────────────────┬───────┐ │ Col 1 │ Col 2 │ Col 3 │ ├───────┼─────────────────────────────┼───────┤ │ Short │ This is a very long cell │ Short │ │ │ content that should wrap to │ │ │ │ multiple lines │ │ -└───────┴─────────────────────────────┴───────┘ -" +└───────┴─────────────────────────────┴───────┘" `; exports[`TableRenderer > wraps mixed long and short columns correctly 1`] = ` -" -┌───────┬──────────────────────────┬────────┐ +"┌───────┬──────────────────────────┬────────┐ │ Short │ Long │ Medium │ ├───────┼──────────────────────────┼────────┤ │ Tiny │ This is a very long text │ Not so │ │ │ that definitely needs to │ long │ │ │ wrap to the next line │ │ -└───────┴──────────────────────────┴────────┘ -" +└───────┴──────────────────────────┴────────┘" `;