feat: add props system and refactor asset library architecture

This commit is contained in:
saturn
2026-03-19 15:37:47 +08:00
parent 9aff44e37a
commit f364bbc9e4
139 changed files with 9112 additions and 2827 deletions

View File

@@ -4,12 +4,14 @@ import { buildProjectLocationGenerateImageBody } from '@/lib/query/mutations/loc
describe('buildProjectLocationGenerateImageBody', () => {
it('includes artStyle when generating a project location image', () => {
expect(buildProjectLocationGenerateImageBody({
projectId: 'project-1',
locationId: 'location-1',
count: 1,
artStyle: 'japanese-anime',
})).toEqual({
type: 'location',
id: 'location-1',
scope: 'project',
kind: 'location',
projectId: 'project-1',
imageIndex: undefined,
count: 1,
artStyle: 'japanese-anime',