feat: enhance call and point registration features with sensor data integration

- Updated the CallWindow component to include connection quality states and reconnection attempts, improving user experience during calls.
- Enhanced the ChatWindow to allow starting audio and video calls in a new window, providing users with more flexibility.
- Integrated accelerometer and gyroscope data collection in the RegistroPonto component, enabling validation of point registration authenticity.
- Improved error handling and user feedback for sensor permissions and data validation, ensuring a smoother registration process.
- Updated backend logic to validate sensor data and adjust confidence scores for point registration, enhancing security against spoofing.
This commit is contained in:
2025-11-22 20:49:52 -03:00
parent fc4b5c5ba5
commit f818756efc
15 changed files with 2100 additions and 275 deletions

View File

@@ -1517,6 +1517,19 @@ export default defineSchema({
connectionType: v.optional(v.string()),
memoryInfo: v.optional(v.string()),
// Informações de Sensores (Acelerômetro e Giroscópio)
acelerometroX: v.optional(v.number()),
acelerometroY: v.optional(v.number()),
acelerometroZ: v.optional(v.number()),
movimentoDetectado: v.optional(v.boolean()),
magnitudeMovimento: v.optional(v.number()),
variacaoAcelerometro: v.optional(v.number()),
giroscopioAlpha: v.optional(v.number()),
giroscopioBeta: v.optional(v.number()),
giroscopioGamma: v.optional(v.number()),
sensorDisponivel: v.optional(v.boolean()),
permissaoSensorNegada: v.optional(v.boolean()),
// Justificativa opcional para o registro
justificativa: v.optional(v.string()),