Skip to content

feat: Summary section, footer, header simplification & integration#728

Open
scazan wants to merge 3 commits intosidebar-componentsfrom
process-builder-integration
Open

feat: Summary section, footer, header simplification & integration#728
scazan wants to merge 3 commits intosidebar-componentsfrom
process-builder-integration

Conversation

@scazan
Copy link
Collaborator

@scazan scazan commented Mar 9, 2026

Summary

  • Add SummarySectionContent with process stats and validation status display
  • Add SummarySectionInner for per-section validation state
  • Add ProcessBuilderFooter with Back/Next/Launch buttons and progress bar
  • Add ProgressIndicator progress bar component
  • Simplify ProcessBuilderHeader to breadcrumbs + Sheet-based mobile menu
  • Add ProcessBuilderShell with SidebarProvider wrapper
  • Wire shell, header, footer in the edit page
  • Add i18n keys across all 5 language files (en, es, pt, fr, bn)
  • Update e2e tests for sidebar button selectors

Stack

This is PR 3 of 3 in the Process Builder sidebar refactor:

  1. Navigation Architecture (nav-architecture)
  2. Sidebar Components & Phase Detail Pages (sidebar-components) ← base
  3. → Summary, Footer & Integration (this PR)

⚠️ Requires add-sheet to be merged before this PR (uses Sheet component from @op/ui/Sheet).

Test plan

  • Type check passes: pnpm w:app typecheck
  • Footer shows Back/Next/Launch buttons with correct enabled/disabled state
  • Progress bar reflects validation status across all sections
  • Summary section displays correct process stats and validation state
  • Mobile nav opens via Sheet component
  • E2E tests pass: create-process-instance.spec.ts

@vercel
Copy link
Contributor

vercel bot commented Mar 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app Ready Ready Preview Mar 9, 2026 4:09pm

Request Review

- Add SummarySectionContent with process stats and validation status
- Add SummarySectionInner for validation status display
- Add ProcessBuilderFooter with Back/Next/Launch buttons and progress bar
- Add ProgressIndicator progress bar component
- Simplify ProcessBuilderHeader to breadcrumbs + Sheet-based mobile menu
- Add ProcessBuilderShell with SidebarProvider wrapper
- Update ProcessBuilderContent with minor prop updates
- Wire shell, header, footer in edit page
- Add i18n keys across all 5 language files (en, es, pt, fr, bn)
- Update e2e tests for sidebar button selectors

Note: Requires add-sheet PR to be merged first (Sheet component from @op/ui/Sheet)
Copy link
Collaborator

@nourmalaeb nourmalaeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice! Tiny nits, nothing blocking


import { useTranslations } from '@/lib/i18n';

const GRADIENT = 'linear-gradient(to right, #3EC300, #0396A6)';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be done using tailwind classes: bg-linear-to-r from-green-500 to-teal-500

Comment on lines +80 to +83
<p className="text-base text-neutral-black">
<span className="font-bold">{processName}</span>{' '}
{t('is missing information in order to go live.')}
</p>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use t.rich() here:

t.rich(
  '<highlight>{processName}</highlight> is missing information to go live.', 
  { 
    processName, 
    highlight: (chunks) => <span className="font-bold">{chunks}</span>,
  }
)

Comment on lines +123 to +126
<span className="font-bold">{processName}</span>{' '}
{t(
'is ready to go live. Launching your process will invite and notify participants.',
)}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above. Just a nit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants