Commit Graph

49 Commits

Author SHA1 Message Date
78580df13b Markdown 2025-10-23 15:37:30 -06:00
ff82d0c364 Fix button archivos 2025-10-23 15:29:41 -06:00
14b188d3ca Merge branch 'master' of https://github.lci.ulsa.mx/AlexRG/Acad-IA 2025-10-23 13:02:40 -06:00
f92a3dae70 Merge branch 'master' of https://github.lci.ulsa.mx/AlexRG/React-Autenticado 2025-10-22 15:58:50 -06:00
4b19d166b6 refactor: remove unused imports in CreatePlanDialog and $planId components 2025-10-22 15:58:47 -06:00
3fccdc0478 commit wip 2025-10-22 15:54:42 -06:00
d491100c73 Se añadió el botón de eliminar asignatura, y se borra adecuadamente 2025-10-21 17:05:45 -06:00
ce2cd6b397 Eliminada dependencia de llave de servicio para el manejo de usuarios y eliminado el hard-code de los roles
supabase.tsx
Se añadieron los roles al contexto de autenticación. Se modificó la interfaz de UserClaims que consiste en la información que se obtiene de los usuarios. Se obtienen los roles desde la base de datos.

_authenticated.tsx
Ya todos pueden ver el enlace a la página de facultades.

login.tsx
Se movió el enlace de '¿Olvidaste tu contraseña?' a después del input de la contraseña, para mejorar la usabilidad.

usuarios.tsx
- La obtención de los usuarios ahora se hace a con el cliente de llave anónima de supabase y se obtiene de tablas en el esquema public a través de una función de PostgreSQL.
- La información de los roles se obtiene del contexto de autenticación para mostrarla en la página.
- El RolePill se movió a dentro del componente para poder usar la información del contexto.
- Se añadieron validaciones para poder crear un usuario.
- Se muestra la información para editar los usuarios y se actualiza en la BDD con una función de PostgreSQL.
2025-10-20 17:09:14 -06:00
f2b3010ac9 Ahora se obtienen claims de las tablas en el esquema public, en vez de la información de sesion del usuario, que se obtiene de la tabla auth.users
En supabase.tsx se sustituyó la manera de obtener los claims del usuario, utilizando ahora un rpc de una función en supabase.
2025-10-10 17:23:37 -06:00
c49c0bbc0a Bugfix de botones anidados, facultad y carrera faltantes de la card de plan de estudios, campo opcional marcado como tal
CreatePlanDialog: el botón con el que selecciona al archivo de referencia se cambió a div para evitar posibles problemas.

planes: se limitó el número de caracteres del estado que se pueden mostrar para darle espacio al div de la facultad y la carrera.

usuarios: se añadió un texto small para indicar que el campo de título es opcional. Se puede hacer lo mismo con los demás en un futuro.
2025-10-06 16:34:19 -06:00
101758da24 Se quitó botón de editar prompt, se arregló el bug de no encontrar el plan de estudios por el uuid al estar idle la página, y se arregló el bug de visualización de archivos en el modal de crear plan de estudios
Academic-sections: ya se renderea condicionalmente el botón de editar prompt.

AddAsignaturaButton: se quitaron llamadas redundantes de invalidateQueries.

CreatePlanDialog: ya no se selecciona la columna de s3_file_path porque ya no existe.

$planId: el bug de no encontrar el plan de estudios por el uuid al estar idle la página probablemente era causado por llamar de manera redundante a planByIdOptions(), asignaturasCountOptions() y asignaturasPreviewOptions() en el componente. Ahora desde el loader se obtiene toda la información del plan de estudios y sus asignaturas.
2025-10-06 12:50:38 -06:00
e03d5f5e36 Parte del bugfix/feature para guardar los prompts en la BDD 2025-10-03 16:07:02 -06:00
b3ca317e5e Feature: al borrar un archivo, ya se borra de minio también
Se añadió la peticion DELETE para borrar un archivo de minio
2025-10-03 12:58:29 -06:00
e12d0ad8b1 Parte de la actualización de obtención de documentos a partir del documentos_id
Ahora se usa documentos_id para obtener los documentos de referencia de minio, por lo que se cambiaron los nombres de las variables utilizadas
2025-10-03 12:18:25 -06:00
4be34e8d6a bug de no cargar visualización de archivos de referencia con filenames con caracteres no permitidos 2025-10-02 11:35:02 -06:00
da4cf5a5e0 se envía uuid de usuario
Se envia el uuid del usuario para para ponerle dueño a las asignaturas y planes de estudio creadas, y a los documentos de referencia subidos
2025-10-01 19:20:24 -06:00
2ccfdbf80f Actualizar README.md 2025-09-19 20:54:23 +00:00
b8f446ba48 feat: enhance CreatePlanDialog with file selection and preview functionality; add pagination and search capabilities 2025-09-04 15:57:39 -06:00
2367baa538 feat: implement DetailDialog component for PDF viewing and downloading; refactor API calls to use environment variables 2025-09-04 07:38:58 -06:00
1808ce6f81 feat: add EditAsignaturaButton and EditBibliografiaButton components for managing asignaturas
- Introduced EditAsignaturaButton for editing asignatura details with a dialog interface.
- Added EditBibliografiaButton for managing bibliographic references with various utility actions (trim, dedupe, sort, import, export).
- Created reusable Field, Section, and Stat components for better UI structure.
- Implemented typeStyle utility for styling based on asignatura type.
- Integrated new components into the existing asignatura route.
- Updated package.json to include new dependencies for alert dialogs and tooltips.
- Defined Asignatura type in a new types file for better type safety.
2025-09-01 14:58:36 -06:00
5181306b93 feat: update dialog titles to use font-mono style for consistency across components 2025-09-01 09:02:11 -06:00
5a113ca603 feat: add CarreraDetailDialog and CriterioFormDialog components for managing carrera criteria
feat: implement CarreraFormDialog for creating and editing carreras

feat: create StatusPill component for active/inactive status display

feat: add openContextMenu utility for context menu interactions

feat: add tint utility function for color manipulation

refactor: update archivos route to use font-mono for CardTitle

refactor: update asignaturas route to use font-mono for headings

refactor: update carreras route to modularize components and improve readability

refactor: update dashboard route to use font-mono for CardTitle

refactor: update plan detail route to use font-mono for CardTitle

refactor: update planes route to use font-mono for CardTitle

refactor: update usuarios route to use font-mono for CardTitle

refactor: update login route to use font-mono for CardTitle
2025-09-01 08:43:41 -06:00
0ff3387331 feat: add context menu functionality and delete buttons for plans and carreras; update dependencies 2025-09-01 07:30:58 -06:00
6c3dd54d5f refactor: update navigation links and search parameters across authenticated routes 2025-08-29 16:51:22 -06:00
f8de39e6d1 feat: add CreatePlanDialog and InfoChip components; implement chipTint utility; enhance styles for aurora effects 2025-08-29 16:05:41 -06:00
6e84860230 refactor: streamline imports in AsignaturaPreviewCard and $planId components; update animation duration in styles 2025-08-29 11:24:51 -06:00
a487a8c293 feat: add AdjustAIButton, EditPlanButton, and AsignaturaPreviewCard components
- Implemented AdjustAIButton for AI-driven plan adjustments with a confetti effect on success.
- Created EditPlanButton to allow editing of plan details with form validation and optimistic updates.
- Added AsignaturaPreviewCard to display course previews with relevant statistics and details.
- Introduced Field component for consistent form field labeling.
- Developed GradientMesh for dynamic background effects based on color input.
- Added Pulse component for skeleton loading states.
- Created SmallStat and StatCard components for displaying statistical information in a card format.
- Implemented utility functions in planHelpers for color manipulation and formatting.
- Established planQueries for fetching plan and course data from the database.
- Updated the plan detail route to utilize new components and queries for improved user experience.
2025-08-29 11:14:34 -06:00
3bc4498e4f Refactor user management in usuarios.tsx: integrate react-query for data fetching and mutations, streamline role handling, and enhance user ban/unban functionality. 2025-08-27 16:15:42 -06:00
234c41d0b6 refactor: update deployment script to use variables for remote host, user, and path 2025-08-27 11:47:50 -06:00
a5542f12ee fix: update unit display logic and adjust background color in App component 2025-08-27 10:51:59 -06:00
7d5db6bb2f refactor: update imports in various components for consistency and remove unused imports 2025-08-27 10:08:41 -06:00
98d04ac088 refactor: remove introductory paragraph from the App component 2025-08-27 10:05:32 -06:00
4371c19543 feat: add deployment script and update favicon 2025-08-27 10:03:55 -06:00
406abfad61 feat: update project name from "Génesis" to "Acad-IA" in HTML and manifest files; reflect branding changes in the App component 2025-08-27 08:36:44 -06:00
196aea5df9 feat: add canvas-confetti integration and AuroraButton component; enhance UI with animations and improve button interactions 2025-08-26 15:58:30 -06:00
56b0dc8a62 Refactor App component styles and remove highlights section
- Updated background gradient colors for a lighter theme.
- Changed button styles to improve visibility.
- Removed the highlights section to streamline the layout.
- Adjusted text colors for better contrast and readability.
2025-08-26 15:24:53 -06:00
602c5dbb31 feat: update API endpoints to use production URL and enhance UI components in authenticated routes 2025-08-25 15:07:09 -06:00
012a5a58b0 feat: add AI-generated study plan creation dialog and API integration
- Implemented CreatePlanDialog component for generating study plans using AI.
- Integrated postAPI function for handling API requests.
- Updated planes.tsx to include AI plan generation logic.
- Modified usuarios.tsx to enable email confirmation for new users.
- Added Switch component for UI consistency.
- Created api.ts for centralized API handling.
- Developed carreras.tsx for managing career data with filtering and CRUD operations.
- Added CarreraFormDialog and CarreraDetailDialog for creating and editing career details.
- Implemented CriterioFormDialog for adding criteria to careers.
2025-08-25 09:29:22 -06:00
ca3fed69b2 feat: implement dashboard with KPIs, recent activity, and health metrics
- Added dashboard route with loader fetching KPIs, recent plans and subjects, and health metrics.
- Created visual components for displaying KPIs and recent activity.
- Implemented gradient background and user greeting based on role.
- Added input for global search and quick links for creating new plans and subjects.

refactor: update facultad progress ring rendering

- Fixed rendering of progress ring in facultad detail view.

fix: remove unnecessary link to subjects in plan detail view

- Removed link to view subjects from the plan detail page for cleaner UI.

feat: add create plan dialog in planes route

- Introduced a dialog for creating new plans with form validation and role-based field visibility.
- Integrated Supabase for creating plans and handling user roles.

feat: enhance user management with create user dialog

- Added functionality to create new users with role and claims management.
- Implemented password generation and input handling for user creation.

fix: update login redirect to dashboard

- Changed default redirect after login from /planes to /dashboard for better user experience.
2025-08-22 14:32:43 -06:00
9727f4c691 feat: implement asignaturas management with dynamic routing and UI updates 2025-08-22 08:10:49 -06:00
8f46acd4b3 feat: enhance RouteComponent with facultades color and improve StatCard UI 2025-08-21 16:10:09 -06:00
3e12f4f15a refactor: clean up code formatting and improve layout in usuarios and procedencia-combobox components 2025-08-21 15:57:12 -06:00
02ad043ed6 feat: add Usuarios route and user management functionality
- Introduced a new route for user management under /usuarios.
- Implemented user listing with search and edit capabilities.
- Added role management with visual indicators for user roles.
- Created a modal for editing user details, including role and permissions.
- Integrated Supabase for user data retrieval and updates.
- Enhanced UI components for better user experience.
- Removed unused planes route and related components.
- Added a new plan detail modal for displaying plan information.
- Updated navigation to include new Usuarios link.
2025-08-21 15:30:50 -06:00
fe471bcfc2 feat: Add dashboard and asignaturas routes with corresponding components 2025-08-21 07:49:01 -06:00
51faa98022 feat: Implement faculty management routes and UI components
- Added a new route for managing faculties with a grid display of faculties.
- Created a detailed view for each faculty including metrics and recent activities.
- Introduced a new loader for fetching faculty data and associated plans and subjects.
- Enhanced the existing plans route to include a modal for plan details.
- Updated the login and index pages with improved UI and styling.
- Integrated a progress ring component to visualize the quality of plans.
- Applied a new font style across the application for consistency.
2025-08-20 19:09:31 -06:00
b33a016ee2 refactor: remove unused imports from supabase.tsx 2025-08-20 08:00:28 -06:00
559514d7b4 feat: add UI components and improve layout
- Introduced new UI components: Input, Label, ScrollArea, Separator, Sheet, Skeleton, Table.
- Implemented utility function for class name merging.
- Enhanced the authenticated layout with a sidebar and user menu.
- Added login functionality with improved UI and error handling.
- Integrated theme provider for consistent theming across the application.
- Updated styles with Tailwind CSS and custom properties for dark mode support.
- Refactored routes to utilize new components and improve user experience.
2025-08-20 07:59:52 -06:00
ccdcfb9fa1 fix: improve error handling for login credentials in SupabaseAuthProvider 2025-08-19 15:59:37 -06:00
a52259451c feat: add Supabase authentication context and routes
- Implemented Supabase authentication context in `supabase.tsx` for managing user login and logout.
- Created a new SVG logo file for branding.
- Set up main application entry point in `main.tsx` with router integration.
- Added web vitals reporting in `reportWebVitals.ts`.
- Generated route tree in `routeTree.gen.ts` for application routing.
- Established root route in `__root.tsx` with TanStack Router Devtools integration.
- Created authenticated route in `_authenticated.tsx` to protect routes.
- Developed planes route under authenticated section in `planes.tsx`.
- Implemented login route with form handling in `login.tsx`.
- Added index route with welcome message in `index.tsx`.
- Included basic styles in `styles.css`.
- Configured TypeScript settings in `tsconfig.json`.
- Set up Vite configuration with React and TanStack Router plugins in `vite.config.ts`.
2025-08-19 15:38:37 -06:00