Skip to content

[Jitera] Start a Project Workflow with Figma Import

Created by: akuita

This pull request is created by JITERA

Description

[API] Handle Import Errors

file name
/app/controllers/api/base_controller.rb Add error handling for import errors
/app/controllers/api/errors_controller.rb Create ErrorsController with create action
/config/routes.rb Add route for import errors API endpoint
/app/views/api/errors/create.json.jbuilder Create a Jbuilder view for the error response

[API] Start New Project

file name
/app/controllers/api/projects_controller.rb Add "create" action to "ProjectsController" to handle new project creation
/app/controllers/api/base_controller.rb Update "error_response" method to handle project creation errors
/config/routes.rb Add route for project creation API endpoint
/app/models/project.rb Ensure "Project" model has necessary validations
/app/views/api/projects/create.json.jbuilder Create a Jbuilder view template for project creation response

[API] Create Use Case Manually

file name
/app/controllers/api/base_controller.rb Add method to validate "project_id" in BaseController
/app/controllers/api/base_controller.rb Add method to validate "title" and "description" presence in BaseController
/app/controllers/api/base_controller.rb Add method to create a use case in BaseController
/app/controllers/api/base_controller.rb Add method to render use case creation success response in BaseController
/app/controllers/api/base_controller.rb Add method to handle use case creation in BaseController
/config/routes.rb Add route for creating a use case
/app/controllers/api/base_controller.rb Add authentication check for use case creation

[API] Generate Use Cases from AI Prompt

file name
/app/controllers/api/base_controller.rb Add method to handle AI use case generation errors
/app/controllers/api/base_controller.rb Add method to validate AI prompt input
/app/controllers/api/base_controller.rb Add method to insert generated use cases into the database
/app/controllers/api/base_controller.rb Add method to insert error record into the database
/app/controllers/api/base_controller.rb Add method to process AI prompt and generate use cases
/app/controllers/api/base_controller.rb Add method to validate generated use cases
/app/controllers/api/base_controller.rb Add method to generate use cases from AI prompt
/config/routes.rb Add route for generating use cases from AI prompt
/app/controllers/api/base_controller.rb Add authentication and authorization checks for use case generation

[API] Import from Figma

file name
/app/controllers/api/base_controller.rb Add error handling for Figma import errors
/app/controllers/api/base_controller.rb Add success response method for Figma import
/app/services/base_service.rb Create FigmaImportService for handling Figma import logic
/app/controllers/api/base_controller.rb Add Figma import action to BaseController
/config/routes.rb Add route for Figma import API endpoint

Merge request reports