Skip to content

Latest commit

 

History

History
300 lines (220 loc) · 21.8 KB

PRD.md

File metadata and controls

300 lines (220 loc) · 21.8 KB

Product Requirements Document

Generalized Energy Submission & Model Review Platform

Status: Reconstructed from the current application and its .lovable/plan implementation notes
Product type: Interactive front-end sales prototype
Repository: shreeyavrokade/brm-prototype

This document consolidates the product and technical requirements represented by the running application. The repository does not contain a separate approved business PRD or backend specification. Historical implementation notes may describe UI that has since changed; the current app is the source of truth for delivered behavior.

1. Product overview

The current Unified Submission Portal demonstrates submission, review, and model-build workflows using SPP-specific terminology and demo data. The sales-prototype direction is to generalize this foundation into a brand-neutral energy-sector platform, white-labeled with Hitachi's NEXT Design System. It retains the existing participant and engineer workflows while replacing client-specific branding, terminology, and identifiers with representative, non-proprietary content.

The application is intended for sales demonstrations and user testing. It uses mock and in-memory data, with selected browser localStorage persistence. It is not a production submission or system-of-record platform. Requirements in Section 12 describe the target sales-prototype direction; they do not imply that rebranding, NEXT Design System adoption, Figma references, or storytelling enhancements are already implemented.

2. Goals

  • Demonstrate submission intake and review for topology changesets, profiles, ratings, equipment, and bilateral transactions.
  • Make validation and review states visible in directory tables, detail screens, and issue-resolution workflows.
  • Demonstrate participant and SPP engineer perspectives over shared client-side data.
  • Guide users through Generation and Load MEM checklists, dataset review, and pass-state messaging.
  • Keep interaction patterns and status colors consistent across modules.

3. Users and perspectives

Participant

Uses BRM and MEM workspaces to inspect submissions and datasets, resolve validation issues, upload demo submissions, and participate in bilateral transaction acknowledgment workflows.

SPP engineer

Uses the engineer dashboard to inspect a BRM intake queue, filter by footprint and cycle, review validation exceptions, and approve or return submissions and transactions.

Access model

The prototype has a shared demo password gate and a view switcher. These are demonstration controls, not user identity, authorization, or role-based security. Transaction roles are represented by fixed demo configuration rather than authenticated user roles.

4. Product scope and functional requirements

4.1 Application shell and navigation

  • Provide a global header, participant navigation, responsive application layout, and status notifications.
  • Support the participant and SPP engineer perspectives through a global view switcher.
  • Preserve the selected portal perspective across page navigation and browser reloads where browser storage is available.
  • Provide routes for BRM, submission details and imports, transaction imports and details, Profiles, Ratings, MEM, and MEM Load Review.

4.2 BRM workspace

  • Provide tabs for Topology Changeset, Profiles, Ratings, Equipment Details, and Transactions.
  • Allow users to search relevant directories and inspect submission/detail views.
  • Display submission status and review-needed counts using the shared status system.
  • Support opening submission details and related issue-resolution experiences.
  • Mark tracked modules as visited when their corresponding BRM tab is opened during the current MEM pass.

4.3 Submission intake

  • Provide a multi-step import experience for topology, ratings, and profiles submissions.
  • Accept the configured file types for each submission kind and display selected file metadata.
  • Collect the applicable submission details and supporting information.
  • Allow draft and submit actions, with visible confirmation feedback and return navigation.
  • Use client-side demo stores to reflect topology submissions in the BRM workspace.

4.4 Submission review and validation [P1] [P3]

  • Support a shared dataset lifecycle for Topology, Ratings, and Profiles:
    • Draft
    • Review Needed
    • Pending Validation
    • Pending Submittal
    • Accepted
    • Rejected
  • Derive review state from issue counts only for active Draft or Review Needed datasets; preserve terminal or in-flight states such as Accepted, Rejected, Pending Validation, and Pending Submittal.
  • When a dataset is under Review Needed, show relevant validation errors and warnings, highlight affected cells, and provide issue resolution.
  • Allow users to navigate between issue cards and affected grid rows/cells where supported.
  • Suppress issue indicators and issue-resolution UI for datasets not in Review Needed.
  • When issues are cleared, update the displayed state and status indicators consistently.

4.5 Ratings and Profiles [P2] [P6]

  • Provide searchable directories and submission detail pages for Ratings and Profiles.
  • Support inspection grids with row/cell issue details and shared review interactions.
  • Support dataset-specific details such as rating seasons and profile categories.
  • Keep status indicators and issue counts in sync with the current client-side review state.

4.6 Equipment Details

  • Provide BRM equipment inspection and equipment-specific grids.
  • Support equipment detail requirements and review treatment through the existing equipment schemas and components.

4.7 Bilateral Transactions [P4] [P5] [P12] [P13]

  • Provide a searchable Transactions view and transaction detail/activity experiences.
  • Support transaction import with a three-step demo flow and optional proof file for applicable external counterparties.
  • Represent CP1 and CP2 acknowledgment independently.
  • Move a transaction into the EP review queue when both parties have acknowledged.
  • Support the participant counter-offer/acknowledgment loop and the SPP engineer approve or reject/return flow.
  • Store rejection/return notes in the in-memory transaction record and reset acknowledgments when returned for revision.
  • Provide a workflow explainer that simulates lifecycle states without mutating live transaction records.

4.8 Market Economic Model [P7] [P8] [P9] [P10]

  • Provide separate Generation and Load tracks with a guided checklist, section workspace, and reference datasets.
  • Provide dataset grids for reviewing or editing demo data, with validation feedback and row-level review affordances.
  • Include pass handoff messaging and SPP modification summaries where applicable.
  • Support focus mode for opening an individual dataset from the checklist.
  • Track pass number and participant/SPP review state in the demo store.
  • Persist module visits by track and pass in browser storage when available.
  • Reset pass-specific review state when the pass changes.

4.9 SPP engineer command center [P11]

  • Provide cycle selection and footprint filters.
  • Show the review milestone stepper and BRM metric cards.
  • Provide a BRM intake queue with validation state and approve/return actions.
  • Show bilateral transactions ready for SPP review and actions to approve or return them.
  • Provide a footprint participation/report-card area.
  • Reflect engineer actions in the same client-side stores used by participant views where supported.

5. Status, feedback, and visual system

  • Use the shared status tokens and status pill component as the canonical source for common lifecycle colors.
  • Use consistent visual treatment for validation severity, acknowledgment state, and actionable review states.
  • Provide visible success/error feedback for user actions through the existing toast components.
  • Preserve table usability, including search, sorting or filtering where implemented, horizontal scrolling, and row/cell highlighting.
  • Keep the interface responsive across narrow and wide layouts using the existing Tailwind and component-library patterns.

6. Technical requirements

Runtime and framework

  • Node.js-compatible front-end project managed with npm; Bun lockfiles are also present.
  • Vite 5 for development and production builds.
  • React 18 with TypeScript.
  • React Router for client-side routes.

UI and styling

  • Tailwind CSS 3 with the project theme configuration.
  • shadcn-style components built on Radix UI primitives.
  • Lucide and Phosphor icons as used by existing components.
  • Shared UI primitives and design tokens should be reused rather than duplicated.

State and data

  • Use React component state for local interaction and the existing lightweight external-store pattern (useSyncExternalStore) for shared client-side state.
  • Use localStorage for selected demo state that should survive reloads, such as portal view, pass visits, and row review state.
  • Use sessionStorage for the demo access-gate session.
  • Use mock data and in-memory stores for submissions, datasets, and transactions.
  • No production API, database, file-processing service, authentication provider, or durable server persistence is currently defined.

Validation and quality

  • Vitest with jsdom is configured for unit/component tests.
  • ESLint is configured for linting.
  • TypeScript checks should pass under the repository's configured compiler options.
  • Available project commands:
    • npm run dev — local development server
    • npm run build — production build
    • npm run lint — ESLint
    • npm test — Vitest run

7. Data, security, and prototype limitations

  • Data is illustrative and is not authoritative SPP data.
  • Upload flows currently demonstrate browser-side file selection and workflow metadata; they do not establish server-side ingestion, durable storage, or a production validation service.
  • Shared stores are browser-local/in-memory and do not synchronize across users or devices.
  • Demo password gating and fixed demo roles must not be treated as security controls.
  • The prototype has no defined production authorization, audit logging, retention, privacy, availability, or recovery requirements.
  • Counts and dashboard metrics may be seeded demonstration values rather than live operational metrics.

8. Out of scope

  • Production identity management, user/role administration, and secure authorization.
  • Backend APIs, database schema, durable multi-user synchronization, and production file ingestion.
  • Email or external notifications to counterparties.
  • Production-grade validation rule services or integration with model-build systems.
  • Treating illustrative mock records, seeded metrics, or prototype statuses as operational data.

9. Acceptance criteria

The prototype meets its current product intent when:

  1. A user can navigate the BRM tabs and open the available submission, dataset, and transaction workflows.
  2. The import flows enforce their configured file extensions and present the applicable review steps.
  3. Review-needed issues, cell highlighting, issue resolution, and status changes are visible and consistent across supported dataset screens.
  4. The transaction demo supports party acknowledgments, the EP queue, approval, and rejection/return actions.
  5. A user can switch between participant and SPP engineer perspectives and see supported shared changes reflected in both.
  6. The MEM Generation and Load checklists, dataset review workspace, and pass-related UI are usable.
  7. Project build, lint, and test commands are available and can be run using the repository scripts.

10. Source notes

This PRD was consolidated from the current route structure, pages, components, stores, package configuration, and the historical implementation notes listed below. The plan files capture feature-specific requests and design decisions; they are not assumed to be a complete or current standalone specification. The September 2026 MEM overview note [P10] removes the module activity cards and timeline callout from the hub while retaining checklist and pass-related functionality.

11. References

Product and implementation notes

Project configuration and application sources

12. Additional design considerations for sales prototype

These are target requirements for the sales-ready evolution of the prototype. They supplement the existing workflows above and do not describe functionality that is necessarily implemented in the current app.

Design-to-prototype approach: Use the supplied design files as the visual and interaction reference, adapt/white-label those designs for the generalized energy-sector product and Hitachi NEXT Design System, then implement them as working screens in this existing codebase. The result must remain an interactive prototype: preserve and connect the workflows and behaviors already supported by the code, rather than delivering static mockups. Where a design specifies new behavior, implement a demonstrable client-side interaction consistent with the prototype's current architecture and clearly label simulation where it could be mistaken for production functionality.

12.1 Generalization

  • Transform the SPP-specific prototype into a generalized energy-sector solution.
  • Remove SPP branding, proprietary terminology, and client-specific identifiers from the sales-facing experience.
  • Preserve industry-standard energy planning terminology and workflows where useful, replacing client-specific labels with clear, configurable, brand-neutral equivalents.

12.2 White labeling using NEXT Design System

Required design reference: Hitachi NEXT Design System 6.3.1 (file IP7UpMBipYr1A9cGUNpPQd). The supplied node 0:1 is the cover page; use the relevant component and widget pages for implementation details. Figma file access and the page inventory were verified on November 13, 2026; token values, variants, and visual parity still require inspection during implementation.

  • Use the Hitachi NEXT Design System as the primary design system.
  • Apply NEXT components, typography, colors, icons, and interaction patterns consistently across the application.
  • Replace existing UI components where appropriate while preserving their functionality and accessibility.
  • Ensure all new and existing screens follow applicable NEXT design guidelines.

12.3 Existing prototype functionality

  • Retain the workflows and interactions documented in this PRD.
  • Preserve submission, validation, review, approval, and status-management functionality.
  • Maintain consistent supported behavior across Participant and Engineer views.

12.4 Additional Figma references

Product workflow reference: Base Reliability Model — Intake Flow Prototype. File uuEDF0zS746imujffOsc75, page 8004:18175 (Intake Flow Prototype). Access and page identity verified on November 13, 2026. Use this reference for screen composition and interactive workflow intent; use NEXT 6.3.1 (§12.2) for white-label components, tokens, and interaction styling. Inspect the relevant frames, design context, and screenshots before implementing each screen; page metadata alone is not implementation or visual validation. Record any conflict or adaptation in TRACKER.md.

  • Use additional Figma screens and files as references when they are provided.
  • Translate the referenced designs into the existing application; do not treat them as standalone static deliverables.
  • White-label and adapt referenced screens to the generalized product and NEXT Design System.
  • Implement relevant screens, workflows, and interactions in the current codebase, preserving existing interactive behavior and integrating new interactions with existing navigation and state where appropriate.
  • Integrate new screens with existing navigation and workflows.
  • The NEXT Design System file is identified in §12.2 and the BRM Intake Flow Prototype reference above supplies product-screen guidance. Incorporate further references when provided.

12.5 Sales demonstration readiness

  • Present a cohesive, brand-neutral enterprise energy platform.
  • Prioritize clarity, usability, and realistic end-to-end workflows.
  • Use representative sample data instead of proprietary client information.
  • Clearly distinguish simulated prototype functionality from production capabilities.

12.6 Implementation considerations

  • Reuse existing components and functionality wherever possible.
  • Avoid unnecessary changes to established business logic.
  • Maintain visual and interaction consistency across modules.
  • Keep the prototype responsive, interactive, and suitable for sales demonstrations.
  • Treat the current application code and documented workflows as the functional baseline while applying the supplied designs and white-label treatment.
  • Implement the designed experience as functioning UI in this codebase, not as screenshots or a separate disconnected mockup.
  • Keep interactions demonstrable end to end using the existing client-side stores and prototype patterns; do not imply backend persistence or integrations unless they are actually implemented.

12.7 Storytelling and contextual guidance

  • Status descriptions: Provide informative hover tooltips that explain each submission status, what it means, and the expected next step. Ensure equivalent information is available to keyboard and touch users.
  • Resubmission validation: Demonstrate validation when users resubmit corrected files, including clear success, warning, and error feedback.
  • Resubmission guidance: Provide contextual dialogs or popups explaining the resubmission process, required actions, and expected outcomes.
  • Workflow storytelling: Use these interactions to make the value of identifying issues, resolving them, and completing a submission understandable during a sales demonstration.
  • Design consistency: Use NEXT Design System components for tooltips, dialogs, notifications, and validation feedback.

12.8 Sales-readiness acceptance criteria

  1. Sales-facing screens use brand-neutral names, representative data, and no unintended SPP/client-specific branding or identifiers.
  2. The NEXT Design System is applied consistently to updated and new screens without regressing existing workflows.
  3. Participant and Engineer views retain their supported submission, validation, review, approval, and status-management behavior.
  4. Status guidance explains both the current state and the expected next action, with accessible interaction on pointer, keyboard, and touch interfaces.
  5. Resubmission demonstrations show distinguishable success, warning, and error validation outcomes and explain what the user should do next.
  6. Demo content and messaging clearly identify simulated behavior and do not imply production integrations or capabilities that are not present.
  7. Any Figma-derived work is traceable to references supplied by the product owner and integrated into existing navigation.