Skip to content

Esta PR implementa la pantalla para editar datos generales. #78

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

rojasadrian012
Copy link
Collaborator

Close #48

@manudous manudous requested a review from Copilot June 3, 2025 08:48
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements the "Editar Datos Generales" screen, providing UI components, styles, and integration with API endpoints and the mock server.

  • Introduces a new view-model with related utility functions and mappers.
  • Implements several new components for handling form sections, date pickers, and actions.
  • Updates API endpoints and mock server repositories for expediente data retrieval.

Reviewed Changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/modules/expedientes/editar-datos-generales/hook/index.ts Exports custom hook for formik fields.
src/modules/expedientes/editar-datos-generales/editar-datos-generales.vm.ts Defines the view-model interfaces and default data.
src/modules/expedientes/editar-datos-generales/editar-datos-generales.styles.ts Adds styling for the form container.
src/modules/expedientes/editar-datos-generales/editar-datos-generales.pod.tsx Introduces the container component that fetches data and renders the editing form.
src/modules/expedientes/editar-datos-generales/editar-datos-generales.mappers.ts Provides mapping from expediente models to general data formats.
src/modules/expedientes/editar-datos-generales/editar-datos-generales.component.tsx Implements the main editing form leveraging Formik and MUI components.
src/modules/expedientes/editar-datos-generales/constans/* Exports constant arrays used in form selectors.
src/modules/expedientes/editar-datos-generales/components/* Adds form sections, styling, and action components for the screen.
src/modules/expedientes/editar-datos-generales/api/* Implements API integrations for expediente retrieval.
package.json Updates dependencies to support new date pickers and type definitions.
mock-server/* Updates mock API endpoints and repository functions to support expediente retrieval.

export const stackItemRow = (theme: Theme) => css`
display: flex;
flex-direction: row;
with: 100%;
Copy link
Preview

Copilot AI Jun 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There appears to be a typo in the CSS property. Replace 'with: 100%;' with 'width: 100%;' to ensure the expected styling is applied.

Suggested change
with: 100%;
width: 100%;

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Front End] Build layout Editar Expediente >> Datos Generales
1 participant