Initial TrueGrowth source import

This commit is contained in:
2026-07-07 09:36:36 +08:00
commit 3b6781d695
2283 changed files with 691996 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# Change: Consolidate media generation modes into page-level hubs
## Why
The current image and video navigation still feels like it inherited canvas-era single-purpose entries. Operators need richer generation modes, including batch image generation, popular video generation, popular MV generation, and music generation, available as mode switches inside the relevant media pages rather than scattered or hidden behind App Center/toolbox cards.
## What Changes
- Turn the image generation page into a mode hub where users can switch between text-to-image, image-to-image/edit, batch image generation, and related image creation modes without leaving the page.
- Turn the video generation page into a mode hub where users can switch between normal video generation, popular video generation, popular MV generation, and relevant video creation modes without falling back to a separate toolbox page.
- Expose music generation as a selectable creation mode in the same media-generation experience, while preserving its existing Suno generation/continue/infill behavior.
- Keep App Center as the discovery surface, but route image/video/music cards into the correct page mode instead of making users find separate legacy tools.
- Remove the `tg-tool-context` top context bar from image and video generation pages and replace it with mode-level navigation and compact page controls.
## Impact
- Affected specs: app-center, image-generation, video-batch-generation, audio-generation
- Affected code: `apps/web/src/workbench/app-definitions.tsx`, `apps/web/src/workbench/WorkbenchShell.tsx`, Drawnix image/video/music generation surfaces, workbench styling around `tg-tool-context`

View File

@@ -0,0 +1,14 @@
## MODIFIED Requirements
### Requirement: App Center SHALL be the primary discovery surface
The system SHALL present first-party creation modules and AIGCPanel utility apps in App Center as the primary discovery surface, and media-generation cards SHALL open the relevant page mode inside the unified image, video, or music creation experience.
#### Scenario: User opens a media-generation app card
- **WHEN** the user opens an image, video, popular video, popular MV, or music generation card from App Center
- **THEN** the system opens the relevant media generation page
- **AND** selects the matching page mode automatically
- **AND** does not require the user to find a separate toolbox navigation page
#### Scenario: User scans App Center media apps
- **WHEN** the user filters App Center by image, video, or audio
- **THEN** generation cards remain discoverable
- **AND** cards describe the mode they will open rather than implying each card is a separate standalone page

View File

@@ -0,0 +1,14 @@
## ADDED Requirements
### Requirement: Music Generation SHALL Be Selectable From Media Generation
The system SHALL make music generation selectable from the media-generation experience while preserving the existing Suno generate, continue, and infill actions.
#### Scenario: User switches to music generation
- **GIVEN** the user is browsing media generation modes
- **WHEN** the user selects music generation
- **THEN** the system opens the music generation workflow
- **AND** exposes the existing generate, continue, and infill action variants in that workflow
#### Scenario: App Center music card opens music mode
- **WHEN** the user opens a music generation card from App Center
- **THEN** the system opens the media-generation experience with music generation selected
- **AND** preserves compatible shared fields such as prompt, title, tags, and model selections where applicable

View File

@@ -0,0 +1,22 @@
## ADDED Requirements
### Requirement: Image Generation Page SHALL Provide Mode Switching
The system SHALL let users switch image creation modes inside the image generation page instead of exposing only the prior single canvas-era image tool.
#### Scenario: Switch between image modes
- **GIVEN** the user is on the image generation page
- **WHEN** the user selects text-to-image, image-to-image/edit, batch image generation, or another supported image creation mode
- **THEN** the page updates the active form and controls for that mode
- **AND** keeps the user on the same image page
#### Scenario: Batch image mode is available
- **WHEN** the user opens the image generation page
- **THEN** batch image generation is available as a selectable mode
- **AND** the page exposes the controls needed to create more than one image output from the selected batch workflow
### Requirement: Image Generation Page SHALL Remove Legacy Tool Context Header
The image generation page SHALL not render the legacy `tg-tool-context` top context bar.
#### Scenario: User views image generation page
- **WHEN** the image generation page renders
- **THEN** the top page controls are mode-focused
- **AND** no `tg-tool-context` header is shown above the image workflow

View File

@@ -0,0 +1,22 @@
## ADDED Requirements
### Requirement: Video Generation Page SHALL Provide Mode Switching
The system SHALL let users switch video creation modes inside the video generation page, including normal video generation, popular video generation, and popular MV generation.
#### Scenario: Switch between video modes
- **GIVEN** the user is on the video generation page
- **WHEN** the user selects normal video generation, popular video generation, popular MV generation, or another supported video creation mode
- **THEN** the page updates the active workflow for that mode
- **AND** keeps the user on the same video page
#### Scenario: Popular video and MV modes preserve batch behavior
- **WHEN** the user selects popular video generation or popular MV generation
- **THEN** the page exposes the existing storyboard, lens, model, size, and batch-generation controls required by that workflow
- **AND** the existing serial batch generation requirements remain in effect
### Requirement: Video Generation Page SHALL Remove Legacy Tool Context Header
The video generation page SHALL not render the legacy `tg-tool-context` top context bar.
#### Scenario: User views video generation page
- **WHEN** the video generation page renders
- **THEN** the top page controls are mode-focused
- **AND** no `tg-tool-context` header is shown above the video workflow

View File

@@ -0,0 +1,19 @@
## 1. Product Surface
- [x] 1.1 Audit current App Center cards and routes for image, video, popular video, popular MV, and music generation.
- [x] 1.2 Define page mode identifiers and route/query mapping for image, video, and music generation modes.
- [x] 1.3 Remove or hide the `tg-tool-context` top context bar from image and video generation pages.
## 2. Image Generation Hub
- [x] 2.1 Add an image page mode switcher for text-to-image, image-to-image/edit, batch image generation, and related image modes.
- [x] 2.2 Ensure shared image model, reference image, prompt, parameter, history, and generated-asset controls remain available where relevant.
- [x] 2.3 Route App Center image cards to the appropriate image page mode.
## 3. Video And Music Generation Hub
- [x] 3.1 Add a video page mode switcher for normal video generation, popular video generation, popular MV generation, and related video modes.
- [x] 3.2 Make music generation selectable from the media-generation experience while reusing the existing Suno action variants.
- [x] 3.3 Route App Center video and music cards to the appropriate page mode.
## 4. Verification
- [x] 4.1 Verify image, batch image, video, popular video, popular MV, and music generation modes can be selected from the target page.
- [x] 4.2 Verify legacy/deep-linked cards continue to open the expected workflow mode.
- [x] 4.3 Run targeted type/build checks for the workbench or document any pre-existing validation blockers.