Release Notes 1.2
This PR delivers a wide range of bug fixes, UI/UX improvements, type safety enhancements, and performance optimizations to improve app stability, usability, and developer experience.
🔧 TypeScript Fixes
Resolved type inference issues in
selectedItemForStock,Pet, andPetParentinterfaces.Improved type guards and assertions to prevent
Property 'id' does not exist on type 'never'errors.Explicitly typed converted objects like
CRMPet,CRMPetParentfor better clarity and maintainability.Handled fallback values for optional fields such as
gender,firstName, andlastName.
🖼️ UI/UX Fixes
PetCare Booking UI:
Adjusted page layout and login flow.
Improved floating menu positioning and visibility.
Grooming Appointment:
Enhanced UI and form fields in "Create Pet" flow.
Inventory Table:
Made responsive with layout adjustments for better usability.
PetParent Profile:
Repositioned action buttons to bottom of the screen for improved mobile experience.
Invoicing & Pet Parent List:
Made responsive; added phone number column for Pet Parents.
⚙️ Functional Fixes
Fixed incorrect import path in
fix-rls-policiesEdge Function.Removed unused functions and properties like:
membershipType,rewardPoints,convertWeight(POS module).
Refactored
calculateRevenue()calls for accuracy and better error handling.
🚀 Performance & Logic Optimizations
Optimized
INITIAL_SESSIONevent handling to reduce unnecessary triggers.Fixed infinite loops caused by incorrect dependencies/state updates.
Improved Supabase data fetching in Grooming Appointments to avoid redundant reads.
🧼 Code Quality Improvements
Removed redundant
console.log()statements, especially those loggingnull.Fixed missing
timezonecolumn inorganizationstable.Updated logic from
orgData.users→orgData.users[0]for proper user selection.
🧾 Invoice & Type Handling
Handled
invoice.pet_parentsas an array with appropriatenullchecks.Updated
Invoicetype to allowpet_parentsto benull.Applied type guards on
settingsDatato prevent runtime crashes.