Repository navigation
improvement(comparisons): answer Copilot Studio buyer questions in place with an at-a-glance table #9688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
waleedlatif1
merged 3 commits into
staging
from
improvement/copilot-studio-comparison-structure
Nov 5, 2026
Merged
improvement(comparisons): answer Copilot Studio buyer questions in place with an at-a-glance table #9688
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
919e975
improvement(comparisons): answer Copilot Studio buyer questions in pl…
waleedlatif1 a68fc67
improvement(comparisons): keep the hero summary, section ids, and bet…
waleedlatif1 5b305a4
improvement(comparisons): order llms-full comparison questions as the…
waleedlatif1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
apps/sim/app/(landing)/comparisons/components/glance-table/glance-table.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| import { cn } from '@sim/emcn' | ||
| import type { GlanceRow } from '@/lib/compare/data' | ||
| import { ProseText } from '@/app/(landing)/comparisons/components/prose-text' | ||
|
|
||
| interface GlanceTableProps { | ||
| rows: GlanceRow[] | ||
| competitorName: string | ||
| } | ||
|
|
||
| const HEADER_CELL_CLASS = | ||
| 'border-[var(--border)] border-l bg-[var(--surface-1)] px-4 py-3 font-medium text-[var(--text-muted)] text-small' | ||
| const VALUE_CELL_CLASS = | ||
| 'align-top text-[var(--text-body)] text-small leading-[150%] max-lg:block max-lg:px-4 max-lg:py-1 lg:border-[var(--border)] lg:border-t lg:border-l lg:px-4 lg:py-3' | ||
| const STACKED_LABEL_CLASS = 'block font-medium text-[var(--text-muted)] text-caption lg:hidden' | ||
|
|
||
| /** | ||
| * The main buying decision points as one table, each cell a sourced sentence with its citation | ||
| * links. Below `lg` each row stacks with labeled values, as the feature-by-feature table does. | ||
| * Server-rendered, so answer engines can extract the table without hydration. | ||
| */ | ||
| export function GlanceTable({ rows, competitorName }: GlanceTableProps) { | ||
| const heading = `Sim vs ${competitorName}: at a glance` | ||
| return ( | ||
| <section id='glance' aria-labelledby='glance-heading' className='px-6 py-10'> | ||
| <h2 | ||
| id='glance-heading' | ||
| className='mb-4 text-[var(--text-primary)] text-xl leading-[100%] tracking-[-0.02em] lg:text-2xl' | ||
| > | ||
| {heading} | ||
| </h2> | ||
| <div className='w-full overflow-hidden rounded-xl border border-[var(--border)]'> | ||
| <table className='w-full border-separate border-spacing-0 text-left max-lg:block lg:table-fixed'> | ||
| <caption className='sr-only'>{heading}</caption> | ||
| <colgroup> | ||
| <col className='w-[22%]' /> | ||
| <col /> | ||
| <col /> | ||
| </colgroup> | ||
| <thead className='max-lg:hidden'> | ||
| <tr> | ||
| <th | ||
| scope='col' | ||
| className='bg-[var(--surface-1)] px-4 py-3 font-medium text-[var(--text-muted)] text-small' | ||
| > | ||
| Decision point | ||
| </th> | ||
| <th scope='col' className={HEADER_CELL_CLASS}> | ||
| Sim | ||
| </th> | ||
| <th scope='col' className={HEADER_CELL_CLASS}> | ||
| {competitorName} | ||
| </th> | ||
| </tr> | ||
| </thead> | ||
| <tbody className='max-lg:block'> | ||
| {rows.map((row, index) => ( | ||
| <tr | ||
| key={row.label} | ||
| className={cn( | ||
| 'max-lg:block', | ||
| index > 0 && 'max-lg:border-[var(--border)] max-lg:border-t' | ||
| )} | ||
| > | ||
| <th | ||
| scope='row' | ||
| className='align-top font-medium text-[var(--text-primary)] text-small leading-[150%] max-lg:block max-lg:px-4 max-lg:pt-3 max-lg:pb-1 lg:border-[var(--border)] lg:border-t lg:px-4 lg:py-3' | ||
| > | ||
| {row.label} | ||
| </th> | ||
| <td className={VALUE_CELL_CLASS}> | ||
| <span className={STACKED_LABEL_CLASS}>Sim</span> | ||
| <ProseText prose={row.sim} /> | ||
| </td> | ||
| <td className={cn(VALUE_CELL_CLASS, 'max-lg:pb-3')}> | ||
| <span className={STACKED_LABEL_CLASS}>{competitorName}</span> | ||
| <ProseText prose={row.competitor} /> | ||
| </td> | ||
| </tr> | ||
| ))} | ||
| </tbody> | ||
| </table> | ||
| </div> | ||
| </section> | ||
| ) | ||
| } |
1 change: 1 addition & 0 deletions
1
apps/sim/app/(landing)/comparisons/components/glance-table/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export { GlanceTable } from './glance-table' |
1 change: 1 addition & 0 deletions
1
apps/sim/app/(landing)/comparisons/components/question-sections/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export { QuestionSections } from './question-sections' |
37 changes: 37 additions & 0 deletions
37
apps/sim/app/(landing)/comparisons/components/question-sections/question-sections.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| import { Fragment } from 'react' | ||
| import type { ComparisonQuestion } from '@/lib/compare/data' | ||
| import { ProseText } from '@/app/(landing)/comparisons/components/prose-text' | ||
|
|
||
| interface QuestionSectionsProps { | ||
| questions: ComparisonQuestion[] | ||
| /** Prefix for each section's id, unique on the page. */ | ||
| idPrefix: string | ||
| } | ||
|
|
||
| /** | ||
| * One section per buyer question, its heading worded as the buyer asks it and its answer | ||
| * directly beneath, each followed by a divider. Server-rendered, so answer engines can quote | ||
| * every answer on its own. | ||
| */ | ||
| export function QuestionSections({ questions, idPrefix }: QuestionSectionsProps) { | ||
| return questions.map(({ question, answer }, index) => { | ||
| const sectionId = `${idPrefix}-${index}` | ||
| const headingId = `${sectionId}-heading` | ||
| return ( | ||
| <Fragment key={question}> | ||
| <section id={sectionId} aria-labelledby={headingId} className='px-6 py-10'> | ||
| <h2 | ||
| id={headingId} | ||
| className='mb-4 text-[var(--text-primary)] text-xl leading-[100%] tracking-[-0.02em] lg:text-2xl' | ||
| > | ||
| {question} | ||
| </h2> | ||
| <p className='max-w-[720px] text-[var(--text-body)] text-small leading-[150%]'> | ||
| <ProseText prose={answer} /> | ||
| </p> | ||
| </section> | ||
| <div className='h-px w-full bg-[var(--border)]' /> | ||
| </Fragment> | ||
| ) | ||
| }) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.