Skip to content
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

fix: layout on graph pane #3948

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions frontend/console/src/features/graph/GraphPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,20 @@ export const GraphPane: React.FC<GraphPaneProps> = ({ onTapped }) => {
name: 'fcose',
animate: false,
quality: 'default',
nodeSeparation: 50,
idealEdgeLength: 50,
nodeRepulsion: 4500,
padding: 20,
nodeSeparation: 150,
idealEdgeLength: 200,
nodeRepulsion: 8000,
padding: 50,
randomize: false,
// Make the layout more deterministic
tile: true,
tilingPaddingVertical: 20,
tilingPaddingHorizontal: 20,
tilingPaddingVertical: 50,
tilingPaddingHorizontal: 150,
fit: true,
componentSpacing: 100,
edgeElasticity: 0.45,
gravity: 0.25,
numIter: 2500,
initialEnergyOnIncremental: 0.5,
} as FcoseLayoutOptions

const layout = cy.layout(layoutOptions)
Expand Down
2 changes: 1 addition & 1 deletion internal/buildengine/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func handleBuildResult(ctx context.Context, projectConfig projectconfig.Config,
return nil, nil, fmt.Errorf("failed to extract migrations %w", err)
}
result.Deploy = append(result.Deploy, migrationFiles...)
logger.Infof("Migrations extracted %v from %s", migrationFiles, config.SQLMigrationDirectory)
logger.Debugf("Migrations extracted %v from %s", migrationFiles, config.SQLMigrationDirectory)

// write schema proto to deploy directory
schemaBytes, err := proto.Marshal(result.Schema.ToProto())
Expand Down
Loading