Skip to content

Conversation

@CinquinAndy
Copy link
Member

No description provided.

- Introduce create, update, and delete actions for equipment
- Implement validation schema for equipment data using Zod
- Add security checks to ensure user permissions on equipment operations
- Create a new service file for managing equipment-related actions
- Enhance error handling with specific messages for validation and security issues
- Upgrade several dependencies to their latest versions
- Include new packages like @radix-ui/react-icons and canvas-confetti
- Update React and related libraries to enhance performance
- Improve ESLint and TypeScript tooling with newer versions
- Add security checks for accessing organizations and users
- Implement validation for current user access in various functions
- Restrict certain operations to super-admins only
- Introduce new methods to get current organization settings and check admin status
- Update existing functions to ensure proper permission handling
- Change data type in EquipmentActionResult to use Equipment
- Improve type safety for equipment management actions
- Enhance validation error handling with clearer structure
- Add function to convert tags array to JSON string for storage
- Update equipment creation and update actions to use new tag conversion
- Change API filter field names for consistency with updated data model
- Refactor assignment service methods to align with new field naming conventions
- Introduce utility functions for converting tags between formats
- Adjust types in PocketBase interface to reflect changes in tag handling
- Fix template literal syntax for fetching organizations
- Improve user organization access validation logic
- Add function to retrieve user's organizations with pagination
- Update current organization settings retrieval to handle multiple orgs
- Refactor admin check to verify user belongs to specific organization
- Standardize field names in project filters and creation methods
- Ensure correct handling of organization ID across project-related functions
- Change organization filter to use correct field name
- Update createUser and updateUser functions to reflect new organizationId structure
- Ensure proper security checks for users belonging to multiple organizations
- Improve error handling for user not found scenarios
- Fix filters in getUserCount and searchUsers functions for consistency
- Add diagram section to documentation
- Include new large text file with project structure
- Update .gitignore to exclude additional files and directories
- Create output.txt for project representation details
- Delete the comprehensive requirements document for equipment management
- Remove the diagram file outlining data relationships
- Eliminate landing page content that is no longer relevant
- Clear out essential pages for market strategy and technical user journeys
- Create comprehensive specifications for a SaaS equipment management platform
- Outline objectives, functional needs, and user management features
- Include diagrams for data relationships and system architecture
- Detail backend services and integration points with external APIs
- Create a template for environment variables
- Include keys for Clerk authentication
- Add placeholders for API tokens and URLs
- Facilitate easier setup for new developers
- Standardize the naming convention for environment file
- Ensure consistency across documentation and code references
- Add a secure caching service to isolate user data
- Implement methods for syncing users and organizations with PocketBase
- Create middleware to ensure data consistency during requests
- Introduce reconciliation endpoints for admin-triggered syncs
- Integrate webhook handling for Clerk events to keep databases in sync
- Enhance error handling and logging throughout the synchronization process
- Change svix dependency from caret to exact version
- Ensure consistent behavior across environments
- Introduce CacheableValue type for better data handling
- Update SecureCache to use CacheableValue instead of any
- Improve hash creation method with specific type usage
- Refactor onboarding helper functions to utilize ClerkMetadata type
- Modify organization retrieval to use object parameter for clarity
- Import types for Clerk entities to improve type safety
- Replace console.log with console.info for better logging clarity
- Extract data arrays from paginated responses for users and organizations
- Add error handling for missing user IDs in organization memberships
- Improve overall structure and readability of the reconciliation process
- Add support for linking users to organizations
- Update authentication handling to await user data
- Refactor organization retrieval to use new API method
- Improve membership data fetching with better structure
- Add type definitions for Clerk user, organization, and membership data
- Update sync functions to use specific types for better clarity
- Improve error handling with console.error messages
- Modify middleware to include a TODO for webhook request checks
- Adjust header retrieval in API routes to be asynchronous
- Add project running instructions to README
- Format API link for clarity
- Include installation and development commands
- Introduce logging helper for better debugging in webhook handling
- Add ngrok URL setup details for webhooks
- Specify the need to change webhook secrets/endpoints locally
- Provide example URLs for organization and user webhooks
- Implement webhook verification for organization and user events
- Add handlers for organization creation, update, and deletion
- Create handlers for user creation, update, and deletion
- Update documentation to include new webhook functionality
- Introduce utility function for signature verification
- Implement central handler for processing Clerk webhook events
- Add methods to handle organization creation, update, and deletion
- Include membership management through webhooks
- Create base methods for record operations with permission handling
- Introduce error logging for better debugging during webhook processing
- Introduce RecordData type for better data structure
- Update createRecord and updateRecord to use RecordData
- Keep elevated parameter for future permission checks
- Add internal methods for creating, updating, and deleting organizations
- Implement user management functions to add/remove users from organizations
- Update organization schema in diagram with new ActivityLog entity
- Improve security checks for organization access and member management
- Refactor existing API methods to support elevated access scenarios
- Enhance webhook handlers for organization and membership events
- Add functions for creating, updating, and deleting organizations
- Implement security validations for user access to organizations
- Create methods to manage organization memberships and retrieve users
- Set up webhook handlers for organization events from Clerk
- Introduce internal methods without security checks for direct access when needed
- Update import paths for organization-related functions
- Remove redundant internal imports in core file
- Enhance organization security functions with direct access methods
- Clean up webhook handlers by consolidating imports
- Rename User model to AppUser for clarity
- Add lastLogin field to track user activity
- Implement updateUserLastLogin function for login tracking
- Refactor user service methods for better organization and security checks
- Introduce webhook handlers for user creation, updates, and deletions from Clerk
- Improve error handling in PocketBase interactions
- Implement core operations for AppUsers including create, update, delete
- Add authentication-related functions to manage last login timestamps
- Introduce search and listing capabilities for AppUsers with security checks
- Create webhook handlers for user events from Clerk integration
- Update organization membership functions to utilize new AppUser structure
- Move permission levels, resource types, and SecurityError class to a new file
- Update user validation functions to use AppUser type instead of User
- Change error handling in validation functions to throw generic Error
- Refactor webhook processing logic for better clarity and debugging
- Enhance webhook signature verification with detailed logging
- Change all references from 'app_users' to 'AppUser'
- Ensure lastLogin timestamp updates correctly
- Modify user retrieval methods for consistency
- Update webhook verification process with Svix library
- Allow public routes without checks
- Redirect to sign-in for unauthenticated protected routes
- Redirect to home for non-admin users on admin routes
- Redirect to onboarding if no organization is selected
- Sync user and organization data only when both are available
- Check onboarding status and redirect if incomplete
- Handle errors gracefully with console logging and safe fallbacks
- Change "ActivityLog" to "AppUser" and adjust ID
- Add new fields: organization, user, equipment, metadata
- Update existing field names and types for clarity
- Include auto-generated date fields for created and updated timestamps
- Revise JSON structure for clarity
- Ensure consistent field definitions across entities
- Add missing fields and relations for completeness
- Improve formatting for better readability
- Introduce QR/NFC Equipment Management System overview
- Outline project structure with modular organization
- Centralize types and validation schemas for better maintainability
- Add service details for equipment-related operations
- Include convenience functions for equipment management
- Rename `/types` directory to `/models` for clarity
- Centralize type definitions and validation schemas in model files
- Introduce consistent naming convention with `.model.ts` suffix
- Update service imports to reflect new models structure
- Enhance maintainability by colocating types with their validation schemas
- Introduce new models for organization and app user
- Update README to reflect new model structure
- Modify services to utilize centralized model imports
- Address TypeScript compatibility issues with utility functions
- Remove outdated API client exports and schemas
- Move base service and schemas to a centralized export file
- Remove outdated schema and type files for cleaner codebase
- Update import paths for better organization
- Add new equipment schema with validation rules
- Ensure services utilize the updated base service structure
- Remove unnecessary request parameter from the function
- Streamline code for better readability
- Maintain existing functionality without changes
- Delete outdated env.example file
- Clean up unused configuration placeholders
- Streamline project setup process
- Create detailed documentation for actions, services, models, components, hooks, and stores
- Include best practices, do's and don'ts for each directory
- Establish clear guidelines on structure and usage patterns
- Enhance understanding of the application's architecture and functionality
- Clarify routing structure for application and marketing
- Add note about future library in components section
- Emphasize best practices for component creation and usage
- Highlight Zustand stores over React context for state management
- Specify TypeScript type definitions location in main source code
- Change date fields in user metadata from number to string
- Normalize datetime strings for consistency across records
- Replace admin authentication method with token-based approach
- Update collection names for better clarity and consistency
- Remove unused isAdmin field from user model
- Add detailed error handling for invalid events
- Implement checks for missing organization and user IDs
- Use parsed payload from verification for better clarity
- Update logging to provide more informative messages
- Introduce unique index creation in schema definition
- Introduce structured API client for PocketBase with type-safe access
- Implement Zod validation schemas for data integrity
- Create services for organization, user, equipment, and project management
- Add security checks for resource access in service methods
- Include example usage in documentation for clarity
- Set up environment variables template for configuration
- Remove unnecessary fields from Organization schema
- Add unique index for clerkId in Organization
- Introduce new OrganizationAppUser schema with relations to organization and appUser
- Implement autodate fields for created and updated timestamps
- Implement functions to ensure synchronization of users and organizations between Clerk and PocketBase
- Add error handling for unauthorized access during sync operations
- Create a new service for managing organization-user mappings
- Update existing services to utilize the new mapping service
- Refactor middleware to include logging and improved sync checks
- Remove outdated security utility functions, consolidating validation logic into a new module
- Bump @clerk/nextjs to 6.13.0
- Update framer-motion to 12.6.3
- Upgrade lucide-react to 0.487.0
- Increase svix version to 1.63.1
- Update tailwind-merge to 3.1.0
- Upgrade @tailwindcss/postcss to 4.1.2
- Bump @types/node, react, and react-dom for compatibility
- Update eslint plugins and typescript-eslint packages
- Upgrade @clerk/nextjs to version 6.13.0
- Update framer-motion to version 12.6.3
- Bump lucide-react to version 0.487.0
- Refresh svix to version 1.63.1
- Update tailwind-merge to version 3.1.0
- Upgrade typescript-eslint packages to latest versions (8.29.x)
- Refresh other dependencies for better compatibility and performance
- Create detailed documentation for Cell, Column, Row, Header, and Table APIs
- Include options and properties for each API with examples
- Document column features like filtering, ordering, and pinning
- Provide usage guidelines for creating tables in various frameworks
- Upgrade @clerk/nextjs to version 6.13.0
- Add several @radix-ui components including alert-dialog, checkbox, dropdown-menu, label, popover, and select
- Update existing @radix-ui/react-slot dependency to use caret (^) for versioning
- Introduce new dependencies like @tanstack/react-table and others for enhanced functionality
- Update various other package versions for better compatibility and performance
- Add new quick links for settings, history, and localization
- Update existing project link to point to organization members
- Modify descriptions for clarity and user guidance
- Implement disabled state for inactive links in the dashboard
- Refactor project data fetching into a separate service function
- Bump @eslint/js to version 9.24.0
- Update @headlessui/react to version 2.2.1
- Standardize versioning for several Radix UI components
- Add date-fns at version 4.1.0
- Upgrade ESLint to version 9.24.0
- Upgrade TypeScript to version 5.8.3
- Change container class to full width for projects page
- Replace checkbox selection with status badge in project columns
- Localize various UI texts to French, including headers and placeholders
- Remove unused checkbox imports from project table columns
- Add custom sorting functions for status and date columns
- Implement filtering by project status and date range
- Introduce a calendar component for date selection
- Update project table to display active filters
- Improve column visibility options in the table header
- Upgrade `react-day-picker` to version 9.6.4
- Add a new date range picker component for better date selection
- Enhance project table with sorting and filtering capabilities
- Implement custom icons for sorting in the project columns
- Improve UI elements like buttons and dropdowns for better usability
- Refactor code for clarity and maintainability, removing unused functions
- Implement custom filter function for date ranges
- Add virtual column for date filtering in the table
- Update state management for date range selection
- Enhance UI with active filters and selection indicators
- Improve status filter handling and display logic
- Implement function to determine if a project is active based on dates
- Add virtual column for status filtering in the projects table
- Update filter handling to use new status filter logic
- Adjust UI components to reflect changes in status filter state
- Bump @tailwindcss/postcss to version 4.1.3
- Update tailwindcss to version 4.1.3
- Upgrade @tailwindcss/node and @tailwindcss/oxide to version 4.1.3
- Adjust optional dependencies for updated versions in package.json and bun.lock
- Remove unnecessary console logs from reconciliation and sync processes
- Add maxSize, minSize, and size properties for selection
- Remove unused filter indicators and related logic
- Streamline code by eliminating unnecessary comments and imports
- Improve overall readability of the component
- Add new 'notes' and 'toolCount' columns with custom rendering
- Set column properties like maxSize, minSize, and size for better layout
- Disable hiding for all columns to maintain visibility
- Update header display names for new columns
- Adjust select column sizing for improved usability
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants