Skip to content

Remove languages functionality#633

Draft
keeandev wants to merge 79 commits intojesus/expo-54-2026from
jesus/remove-languages
Draft

Remove languages functionality#633
keeandev wants to merge 79 commits intojesus/expo-54-2026from
jesus/remove-languages

Conversation

@keeandev
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Dec 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
langquest Ready Ready Preview, Comment Feb 6, 2026 3:45am

Request Review

@supabase
Copy link

supabase bot commented Dec 30, 2025

Updates to Preview Branch (jesus/remove-languages) ↗︎

Deployments Status Updated
Database Fri, 06 Feb 2026 03:44:16 UTC
Services Fri, 06 Feb 2026 03:44:16 UTC
APIs Fri, 06 Feb 2026 03:44:16 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

Tasks Status Updated
Configurations Fri, 06 Feb 2026 03:44:22 UTC
Migrations Fri, 06 Feb 2026 03:44:24 UTC
Seeding Fri, 06 Feb 2026 03:44:25 UTC
Edge Functions Fri, 06 Feb 2026 03:44:29 UTC

View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

keeandev and others added 25 commits December 30, 2025 20:47
…ed columns (and possibly tables) - All glory to God our Father and the Lord Jesus Christ and the Holy Spirit.

- Enhanced migration system logic and user flow
- Improved error handling and feedback during migrations
- Simplified migration state/reload handling after migration completes
- Updated and cleaned migration files and related utilities
…uilds

- Added 'migration-databases/' to .gitignore to prevent tracking of migration database files.
- Removed deprecated production logic for useDrizzleStudio in metro.config.js to streamline module resolution.
- Updated package.json and package-lock.json to include new dependencies for improved functionality.
- Refactored hooks to conditionally use development or production versions of useDrizzleStudio and useExpoDb, enhancing performance and maintainability.
- Updated .gitignore to include specific database files and scripts for better tracking.
- Added new database file (1.0.db) for migration purposes.
- Introduced scripts for consolidating databases, replacing databases in iOS Simulator, and restarting apps in the simulator, improving development workflow and database management.
…ipts

- Updated .gitignore to include new testing client migration files and scripts for better management.
- Refactored migration analysis documentation to reflect changes in database paths and added cleanup steps.
- Introduced new scripts for consolidating databases, replacing databases in the iOS Simulator, and restarting apps, enhancing the testing workflow.
- Added README for testing client migrations to provide clear instructions and file descriptions.
- Updated migration analysis documentation to reflect changes in script usage for both iOS and Android platforms.
- Introduced unified scripts for replacing databases and restarting apps, improving the testing workflow.
- Enhanced README for testing client migrations with clear instructions and platform detection details.
- Added new scripts `replace-device-db.sh` and `restart-device-app.sh` to streamline database management across platforms.
- Added `replace-device-db.sh` and `restart-device-app.sh` to .gitignore for better management of testing client migrations.
- Retained legacy iOS-only scripts for backwards compatibility.
- Deleted `replace-ios-sim-db.sh` and `restart-ios-sim-app.sh` scripts from the repository as they are no longer needed for migration processes.
- Updated .gitignore to reflect the removal of these legacy scripts, improving clarity in the testing client migrations.
Co-authored-by: realdinozoid <realdinozoid@gmail.com>
…steps

- Updated `analyze-migration-steps.md` to include critical wait time for app initialization after restart.
- Modified `replace-device-db.sh` and `restart-device-app.sh` to support optional platform overrides for better flexibility in testing.
- Added validation for platform overrides and improved messaging for users when both iOS and Android devices are detected.
- Ensured existing WAL/SHM files are removed before copying new databases to maintain a clean state.
…dates

- Updated migration scripts from versions 2.0 to 2.1 and 2.1 to 2.2 to directly manipulate JSON data in the 'data' column of raw PowerSync tables.
- Added preflight checks to ensure the existence of relevant raw tables before executing migrations.
- Enhanced logging for better visibility during migration processes.
- Updated `analyze-migration-steps.md` to include detailed instructions for creating test data that covers all migration scenarios.
- Improved clarity on migration requirements, including legacy fields, new fields, and edge cases.
- Added verification steps to ensure successful migration execution and data integrity.
- Emphasized the importance of checking for data inconsistencies and provided SQL query examples for validation.
- Added retry logic for connecting to Expo devtools with exponential backoff and jitter to handle connection failures gracefully.
- Introduced cleanup functions for managing connection states and handling process termination signals.
- Enhanced error logging for unhandled promise rejections and uncaught exceptions to improve debugging.
- Implemented a check for Expo dev server accessibility before attempting WebSocket connections to prevent unnecessary retries.
- Updated `analyze-migration-steps.md` to include critical steps for consolidating the test database after data insertion, ensuring a clean state before copying to devices.
- Refactored migration scripts to utilize the `ensureTableExists` function, ensuring necessary PowerSync tables are created if they do not exist.
- Improved JSON-first approach in migration scripts, emphasizing the use of `json_extract` and `json_set` for data manipulation.
- Enhanced logging and preflight checks to improve migration reliability and visibility during execution.
Co-authored-by: realdinozoid <realdinozoid@gmail.com>
- Introduced a new GitHub Actions workflow for TruffleHog to scan for secrets in the codebase.
- The workflow is triggered on pushes to the 'dev', 'main', and 'ci' branches.
…n handling

- Added PreAuthMigrationCheck to manage migrations before user authentication, improving user experience.
- Updated MigrationScreen to support both pre-auth and post-auth migration flows.
- Enhanced System class with a new method to check for migrations needed before authentication.
- Refactored layout to integrate PreAuthMigrationCheck, ensuring migrations are handled seamlessly before login.
- Introduced a new database migration file (0.0.db) to support upcoming migration processes.
- This file serves as a foundational step for managing data migrations in the application.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Native Build Required - See the comment below for details.

Functional changes (actual logic changes)
1. Removed deprecated source_language_id field
Removed from ChapterData interface in publishService.ts
Removed from database insert operations in:
publishService.ts (2 locations)
BibleAssetsView.tsx
BibleRecordingView.tsx (2 locations)
2. Made languoid_id required (non-nullable)
Changed languoid_id: string | null → languoid_id: string in translationContentLinks interface
Removed fallback logic: c.languoid_id ?? c.source_language_id ?? null → c.languoid_id
3. Added validation guards
Added checks to skip content when languoid_id is missing in:
publishService.ts (line ~1790)
BibleAssetsView.tsx (line ~1163)
BibleRecordingView.tsx (lines ~2060 and ~2143)
Formatting/typecheck fixes (cosmetic)
1. TypeScript type fixes
scripts/mcp-server.ts: Removed unnecessary as unknown as NodeJS.Timeout casts (2 locations)
2. Tailwind className reordering
NextGenNewTranslationModal.tsx: Reordered Tailwind classes (e.g., border-warning/30 bg-warning/5 → bg-warning/5 border-warning/30) — 7 locations
3. Import reordering
BibleRecordingView.tsx: Moved RecordingHelpDialog import to match import order convention
Summary: Functional changes remove the deprecated source_language_id field, make languoid_id required, and add validation. The rest are formatting/type fixes.
… implement migration for language preferences

- Updated components (LanguageCombobox, LanguageSelect, etc.) to replace references to the old Language type with the new Languoid type.
- Adjusted local store to manage uiLanguoid and savedLanguoid instead of uiLanguage and savedLanguage.
- Implemented a migration script to convert existing language preferences in AsyncStorage from the old format to the new Languoid format.
- Ensured compatibility in various views and hooks by updating state management and localization logic to reflect the new Languoid structure.
…nctionality

- Replaced all instances of 'Language' with 'Languoid' across components, including LanguageSelect, LanguageCombobox, and their respective hooks.
- Updated state management to reflect the new Languoid structure, ensuring compatibility in various views and hooks.
- Introduced new LanguoidCombobox and LanguoidSelect components for improved languoid selection.
- Adjusted migration scripts to handle languoid preferences correctly.
- Enhanced localization and UI elements to align with the new terminology.
cursoragent and others added 3 commits February 4, 2026 15:35
- Added orphaned view detection in createUnionViews() method
- Queries for all existing union views that have corresponding _synced tables
- Identifies views not in current drizzleSchema and drops them
- Handles schema refactoring cases (e.g., language -> languoid migration)
- Logs orphaned views found and cleanup operations performed

Co-authored-by: Keean <keeandev@users.noreply.github.com>
Merges orphaned view cleanup functionality that removes views
no longer defined in drizzleSchema during createUnionViews()

Co-authored-by: Keean <keeandev@users.noreply.github.com>
@github-actions github-actions bot dismissed their stale review February 6, 2026 03:17

Fingerprint is now compatible - no native build required

@keeandev keeandev changed the base branch from dev to jesus/expo-54-2026 February 17, 2026 23:08
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.

2 participants

Comments