You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
• Code Quality Infrastructure: Added comprehensive CI/CD pipeline with ESLint, Ruff, and SQLFluff linting for TypeScript, Python, and SQL code
• Modern Python Compatibility: Updated Python capture agent to use Python 3.11+ syntax including datetime.UTC and modern type hints (list[T] instead of List[T])
• Extensive SQL Formatting: Standardized formatting across 50+ database migrations with consistent 4-space indentation, explicit JOIN syntax, and proper JSONB formatting
• ESLint Configuration: Added legacy code compatibility rules while maintaining quality standards for new development
• Documentation Updates: Enhanced CONTRIBUTING.md with CodeRabbit AI assistant integration and added comprehensive CHANGELOG.md for version 1.5.6.1
• Variable Mutability Fixes: Changed let to const declarations for immutable objects across React components
• SQL Syntax Fixes: Added missing semicolons and newlines, fixed table reference issues in RLS policies
Diagram Walkthrough
flowchart LR
A["Legacy Codebase"] --> B["CI/CD Pipeline"]
B --> C["Multi-Language Linting"]
C --> D["ESLint (TypeScript)"]
C --> E["Ruff (Python)"]
C --> F["SQLFluff (SQL)"]
A --> G["Code Formatting"]
G --> H["Python Modernization"]
G --> I["SQL Standardization"]
G --> J["React Improvements"]
B --> K["Quality Gates"]
K --> L["Automated Checks"]
Loading
File Walkthrough
Relevant files
Formatting
52 files
main.py
Import organization and timezone compatibility updates
agents/capture-agent-py/main.py
• Reordered import statements alphabetically for better organization • Updated timezone reference from datetime.timezone.utc to datetime.UTC for Python 3.11+ compatibility • Applied consistent code formatting with proper spacing and indentation
• Reorganized imports alphabetically and grouped related imports together • Fixed minor whitespace formatting issues for consistency • Maintained existing functionality while improving code organization
• Consolidated imports and reorganized them for better readability • Updated type hints to use modern Python syntax (set[WebSocketServerProtocol] instead of Set) • Applied consistent formatting and spacing throughout the file
• Updated type hints to use modern Python syntax (list[float] instead of List[float]) • Reorganized imports to follow Python conventions • Applied consistent formatting and spacing
• Updated imports to use modern Python syntax and organization • Changed type hints to use built-in types (list[Device] instead of List[Device]) • Added proper import grouping and spacing
• Reformatted SQL policies with consistent indentation and line breaks
• Changed JOIN syntax to use explicit INNER JOIN for clarity • Applied consistent formatting across all RLS policies for patch_sheets, stage_plots, run_of_shows, and production_schedules
• Reformatted SQL policies with consistent indentation and spacing • Updated JOIN syntax to use explicit INNER JOIN for better clarity • Applied consistent formatting across theater mic plot RLS policies
• Standardized SQL formatting with consistent indentation and case usage • Updated function syntax to use proper PostgreSQL conventions • Applied consistent formatting to table creation, policies, and triggers
• Applied consistent indentation and formatting to table creation • Standardized policy names and formatting across all RLS policies • Improved readability of column definitions and constraints
• Reformatted SQL with consistent indentation and spacing • Updated JOIN syntax to use explicit table aliases • Applied consistent formatting to RLS policies and constraints
SQL formatting standardization for shared policies
supabase/migrations/20250429043238_long_term.sql
• Applied consistent SQL formatting with proper indentation • Standardized WHERE clause formatting and boolean conditions • Improved readability of shared link policies and functions
• Reformatted function definition with consistent indentation • Applied proper SQL formatting to the RPC function structure • Improved readability of the complex function logic
• Applied consistent SQL formatting with proper indentation and spacing • Standardized policy formatting across all shared resource policies • Improved readability of WHERE clauses and boolean conditions
• Applied consistent SQL formatting with proper indentation • Standardized function parameter formatting and return types • Improved readability of function definitions and policy structures
• Applied consistent SQL formatting with proper indentation and spacing • Standardized table creation syntax and column definitions • Improved formatting of RLS policies and index creation
Variable declaration improvements for style objects
apps/web/src/components/PrintStagePlotExport.tsx
• Changed variable declarations from let to const for immutable style objects • Applied consistent variable naming for elementStyle, wrapperStyle, innerStyle, symbolStyle, and labelStyle • Improved code consistency and immutability practices
• Applied consistent SQL formatting with proper indentation • Standardized policy structure and WHERE clause formatting • Improved readability of constraint updates and RLS policies
• Updated function parameter indentation to 4-space format • Standardized RLS policy formatting with consistent indentation • Applied consistent formatting to all CREATE POLICY statements
• Standardized function parameter and return table indentation • Changed LANGUAGE SQL to lowercase LANGUAGE sql • Applied 4-space indentation throughout the migration file
• Updated function parameters to use 4-space indentation • Standardized RLS policy formatting with consistent indentation • Changed boolean values from lowercase to uppercase (FALSE, TRUE)
Standardize function formatting and language specification
supabase/migrations/20250429050131_jade_gate.sql
• Applied 4-space indentation to function definitions and return tables • Changed LANGUAGE SQL to lowercase LANGUAGE sql • Standardized formatting throughout the migration file
• Standardized RLS policy formatting with 4-space indentation • Added table alias (AS p) to subquery for clarity • Fixed potential column reference issue in WHERE clause
• Standardized RLS policy formatting with 4-space indentation • Added table alias (AS p) to subquery for clarity • Fixed potential column reference issue in WHERE clause
ESLint configuration for legacy code compatibility
eslint.config.js
• Disabled strict ESLint rules for legacy code compatibility • Added rules to turn off @typescript-eslint/no-explicit-any, @typescript-eslint/no-unused-vars, react-hooks/exhaustive-deps, and @typescript-eslint/no-empty-object-type • Focused on allowing existing code patterns while maintaining quality for new code
Add comprehensive CI workflow with multi-language linting
.github/workflows/ci.yml
• Added comprehensive CI workflow for pull requests and pushes • Configured Node.js, Python, and pnpm setup with caching • Integrated ESLint, TypeScript, Ruff, and SQLFluff linting checks • Added build and test execution steps
Add Ruff linting configuration for Python capture agent
agents/capture-agent-py/pyproject.toml
• Added Ruff as development dependency for Python linting • Configured comprehensive Ruff linting rules and settings • Added line length, target version, and import sorting configuration • Set up known first-party packages for import organization
Add SQLFluff configuration for SQL linting standards
.sqlfluff
• Added SQLFluff configuration file for SQL linting • Configured PostgreSQL dialect and formatting rules • Set lowercase capitalization policy and line length limits • Excluded specific rules for project compatibility
• Added new ESLint-related dependencies including @eslint/js, eslint, eslint-plugin-react-hooks, eslint-plugin-react-refresh, globals, and typescript-eslint • Updated dependency versions and added new @types/node and undici-types entries • Maintained existing dependency structure while adding linting infrastructure
Update version and add comprehensive linting configuration
package.json
• Updated version from 1.5.6 to 1.5.6.1 • Added ESLint dependencies and configuration • Enhanced lint-staged configuration with ESLint, Python, and SQL linting • Added TypeScript and globals dependencies
Document CodeRabbit AI assistant integration and workflow
CONTRIBUTING.md
• Added detailed section about CodeRabbit AI assistant integration • Updated pull request process to emphasize automated PR descriptions • Added information about intelligent code reviews and smart suggestions
• Enhanced contributor guidelines with AI-assisted workflow details
Here are some key observations to aid the review process:
⏱️ Estimated effort to review: 4 🔵🔵🔵🔵⚪
🧪 No relevant tests
🔒 Security concerns
RLS and anonymous edit access: Multiple migrations enable anonymous UPDATE via shared links (e.g., policies allowing TO anon with link_type='edit'). Confirm this is intentional and strictly constrained by share_code flows and expirations. Also review SECURITY DEFINER functions (e.g., get_public_run_of_show_by_share_code, handle_share_access, is_valid_share_link) to ensure least-privilege, correct search_path, and no SQL injection via parameters.
The change in _hann_cached removes the space after the if and may have preserved logic, but other parts rely on numpy/scipy window behavior; confirm that returning ones for M<=1 is intended and that callers handle M=0/1 without division by zero elsewhere.
In audio_callback, pooled buffer handling was adjusted; ensure all error paths still always return buffers to the pool to avoid leaks and that pool size bounds are respected under backpressure.
nonlocalpool_miss_countifstatus:
print(f"Audio callback status: {status}")
buf=Nonetry:
buf=pool.popleft()
# PortAudio reuses its buffers; copy into our reusable buffernp.copyto(buf, indata, casting='no')
exceptIndexError:
# pool exhausted - track missespool_miss_count+=1# Create new buffer only if under max sizeiflen(pool) <max_pool_size:
buf=indata.copy() ifindata.dtype==np.float32elseindata.astype(np.float32, copy=True)
else:
# Pool at max, drop this frame to prevent unbounded growthreturntry:
loop.call_soon_threadsafe(aq.put_nowait, buf)
exceptException:
# queue full -> drop; always return buffer to poolifbufisnotNone:
try:
pool.append(buf)
exceptException:
passstream=Nonetry:
fs=int(config.sampleRate)
nperseg=int(config.nfft)
max_delay_ms=int(getattr(config, "maxDelayMs", 300))
max_lag_samples=int(np.ceil(fs*max_delay_ms/1000.0))
buffer_len=nperseg+2*max_lag_samples+int(0.75*nperseg)
noverlap=int(0.75*nperseg)
hop_size=nperseg-noverlapanalysis_buffer=np.zeros((buffer_len, num_channels), dtype=np.float32)
carry=0# how many new samples since last analysislast_send=0.0target_fps=20.0# UI update ratesend_interval=1.0/target_fpsstream=sd.InputStream(
device=int(config.deviceId),
samplerate=config.sampleRate,
blocksize=1024, # <= smaller, smootherchannels=num_channels,
dtype="float32",
callback=audio_callback,
latency="high", # optional: reduce overruns
)
stream.start()
whileTrue:
# wait for at least one blockblock=awaitaq.get()
# Process blocks one at a time to avoid memory spikes# Limit how many we drain at oncemax_drain=4blocks_to_process= [block]
drain_count=0whiledrain_count<max_drain:
try:
blocks_to_process.append(aq.get_nowait())
drain_count+=1exceptasyncio.QueueEmpty:
break# roll each block into the analysis buffer without concatenatingforbinblocks_to_process:
Lb=b.shape[0]
ifLb>=buffer_len:
analysis_buffer[...] =b[-buffer_len:, :]
carry=hop_size# force analysiselifLb>0:
analysis_buffer[:-Lb, :] =analysis_buffer[Lb:, :]
analysis_buffer[-Lb:, :] =bcarry+=Lb# Always return buffer to pooliflen(pool) <max_pool_size:
try:
New UPDATE policies use JOINs and WITH CHECK; validate that table-qualified references (e.g., public.patch_sheets.id) resolve correctly in Supabase and that policies don’t unintentionally grant edits via claimed shares across resources.
ONpublic.patch_sheets
FOR UPDATE
TO authenticated
USING (
(auth.uid() = user_id)
OR EXISTS (
SELECT1FROMpublic.shared_linksAS sl
INNER JOINpublic.user_claimed_sharesAS ucs ONsl.id=ucs.shared_link_idWHEREsl.resource_id=public.patch_sheets.id
ANDsl.resource_type='patch_sheet'ANDsl.link_type='edit'-- Critical check for edit permissionANDucs.user_id=auth.uid()
)
)
WITH CHECK (
(auth.uid() = user_id)
OR EXISTS (
SELECT1FROMpublic.shared_linksAS sl
INNER JOINpublic.user_claimed_sharesAS ucs ONsl.id=ucs.shared_link_idWHEREsl.resource_id=public.patch_sheets.id
ANDsl.resource_type='patch_sheet'ANDsl.link_type='edit'ANDucs.user_id=auth.uid()
)
);
-- RLS UPDATE Policy for stage_plots
CREATE POLICY "Users can update own or claimed editable stage plots"ONpublic.stage_plots
FOR UPDATE
TO authenticated
USING (
(auth.uid() = user_id)
OR EXISTS (
SELECT1FROMpublic.shared_linksAS sl
INNER JOINpublic.user_claimed_sharesAS ucs ONsl.id=ucs.shared_link_idWHEREsl.resource_id=public.stage_plots.id
ANDsl.resource_type='stage_plot'ANDsl.link_type='edit'ANDucs.user_id=auth.uid()
)
)
WITH CHECK (
(auth.uid() = user_id)
OR EXISTS (
SELECT1FROMpublic.shared_linksAS sl
INNER JOINpublic.user_claimed_sharesAS ucs ONsl.id=ucs.shared_link_idWHEREsl.resource_id=public.stage_plots.id
ANDsl.resource_type='stage_plot'ANDsl.link_type='edit'ANDucs.user_id=auth.uid()
)
);
-- RLS UPDATE Policy for run_of_shows
CREATE POLICY "Users can update own or claimed editable run of shows"ONpublic.run_of_shows
FOR UPDATE
TO authenticated
USING (
(auth.uid() = user_id)
OR EXISTS (
SELECT1FROMpublic.shared_linksAS sl
INNER JOINpublic.user_claimed_sharesAS ucs ONsl.id=ucs.shared_link_idWHEREsl.resource_id=public.run_of_shows.id
ANDsl.resource_type='run_of_show'ANDsl.link_type='edit'ANDucs.user_id=auth.uid()
)
)
WITH CHECK (
(auth.uid() = user_id)
OR EXISTS (
SELECT1FROMpublic.shared_linksAS sl
INNER JOINpublic.user_claimed_sharesAS ucs ONsl.id=ucs.shared_link_idWHEREsl.resource_id=public.run_of_shows.id
ANDsl.resource_type='run_of_show'ANDsl.link_type='edit'ANDucs.user_id=auth.uid()
)
);
-- RLS UPDATE Policy for production_schedules
CREATE POLICY "Users can update own or claimed editable production schedules"ONpublic.production_schedules
FOR UPDATE
TO authenticated
USING (
(auth.uid() = user_id)
OR EXISTS (
SELECT1FROMpublic.shared_linksAS sl
INNER JOINpublic.user_claimed_sharesAS ucs ONsl.id=ucs.shared_link_idWHEREsl.resource_id=public.production_schedules.id
ANDsl.resource_type='production_schedule'ANDsl.link_type='edit'ANDucs.user_id=auth.uid()
)
)
WITH CHECK (
(auth.uid() = user_id)
OR EXISTS (
SELECT1FROMpublic.shared_linksAS sl
INNER JOINpublic.user_claimed_sharesAS ucs ONsl.id=ucs.shared_link_idWHEREsl.resource_id=public.production_schedules.id
ANDsl.resource_type='production_schedule'ANDsl.link_type='edit'ANDucs.user_id=auth.uid()
)
);
The Python agent now relies on datetime.UTC and modern typing (list[T]), implicitly requiring Python 3.11+. Verify that build/packaging (Poetry, PyInstaller, CI runners, and user environments) enforce or bundle 3.11 to avoid runtime failures on 3.10/3.9 machines. If 3.11 cannot be guaranteed for all users, add a compatibility shim or pin and validate the agent’s runtime Python version at startup.
[tool.poetry]
name = "capture-agent"version = "0.1.13"description = "SoundDocs Capture Agent for multi-channel audio analysis."authors = ["CJ Vana cj@sounddocs.org"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"websockets = "^12.0"... (clipped 6 lines)
Solution Walkthrough:
Before:
# In agents/capture-agent-py/pyproject.toml
[tool.poetry.dependencies]
# No python version is specified.# Users with Python < 3.11 can install dependencies.numpy = "^1.26.4"...# In agents/capture-agent-py/main.pyimport datetimedef check_certificate_validity(...):# This will raise an AttributeError on Python < 3.11now = datetime.datetime.now(datetime.UTC)...
After:
# In agents/capture-agent-py/pyproject.toml
[tool.poetry.dependencies]
# Enforce the required Python version.# Poetry will now fail installation on unsupported versions.python = ">=3.11"numpy = "^1.26.4"...# In agents/capture-agent-py/main.pyimport datetimedef check_certificate_validity(...):# This code is now safe because the environment is guaranteed# to be Python 3.11+now = datetime.datetime.now(datetime.UTC)...
Suggestion importance[1-10]: 10
__
Why: This suggestion correctly identifies a critical runtime risk, as the code now uses datetime.UTC (Python 3.11+) without enforcing this version in pyproject.toml, which could cause crashes for users on older Python versions.
High
Possible issue
Keep WebSocket server running
The server exits immediately after printing because the context manager returns once no await keeps it alive. Await an indefinite Future to keep the server running until cancelled. This prevents the process from exiting right after startup.
async with websockets.serve(
handler, host, port, ssl=ssl_context,
max_size=8*1024*1024, max_queue=2, compression=None
):
print(f"Secure WebSocket server started at wss://{host}:{port}")
+ await asyncio.Future() # run forever until cancelled
Apply / Chat
Suggestion importance[1-10]: 10
__
Why: This suggestion correctly identifies a critical bug where the server would exit immediately after starting, and it provides the standard correct fix to keep it running.
High
Restore UTC compatibility pre-3.11
Using datetime.UTC requires Python 3.11+. If the agent runs on 3.10 or older, this will crash. Fall back to datetime.timezone.utc when datetime.UTC is unavailable to keep compatibility.
[To ensure code accuracy, apply this suggestion manually]
Suggestion importance[1-10]: 9
__
Why: This is a critical compatibility fix, as the PR's use of datetime.UTC would cause a crash on Python versions older than 3.11, which the agent might run on.
High
Fix broken RLS plan reference
The WHERE clause incorrectly compares p.id to p.plan_id, which will never match and breaks the RLS policy. Compare the plan's id to the row's plan_id column instead. This same issue appears in similar policies; align them to reference the target table's plan_id.
CREATE POLICY "Allow access to comms_transceivers for plan owners" ON comms_transceivers FOR ALL USING (
- auth.uid() IS NOT null+ auth.uid() IS NOT NULL
AND EXISTS (
SELECT 1
FROM comms_plans AS p
WHERE
- p.id = p.plan_id+ p.id = plan_id
AND p.user_id = auth.uid()
)
);
[To ensure code accuracy, apply this suggestion manually]
Suggestion importance[1-10]: 9
__
Why: The suggestion correctly identifies a critical bug in the RLS policy where p.id = p.plan_id would always fail, breaking access control.
High
Correct RLS plan_id comparison
The RLS policy compares p.id to p.plan_id, which is invalid and will deny all access. Update it to compare p.id with the comms_beltpacks row's plan_id. Ensure NULL capitalization consistency.
CREATE POLICY "Allow access to comms_beltpacks for plan owners" ON comms_beltpacks FOR ALL USING (
auth.uid() IS NOT NULL
AND EXISTS (
SELECT 1
FROM comms_plans AS p
WHERE
- p.id = p.plan_id+ p.id = plan_id
AND p.user_id = auth.uid()
)
);
[To ensure code accuracy, apply this suggestion manually]
Suggestion importance[1-10]: 9
__
Why: The suggestion correctly identifies a critical bug in the RLS policy where p.id = p.plan_id would always fail, breaking access control.
High
Fix invalid policy join condition
The policy again compares p.id to p.plan_id rather than the target table row's plan_id, effectively blocking all access. Align it to p.id = plan_id to correctly authorize owners of the plan.
CREATE POLICY "Allow access to comms_beltpacks for plan owners" ON comms_beltpacks FOR ALL USING (
auth.uid() IS NOT NULL
AND EXISTS (
SELECT 1
FROM comms_plans AS p
WHERE
- p.id = p.plan_id+ p.id = plan_id
AND p.user_id = auth.uid()
)
);
[To ensure code accuracy, apply this suggestion manually]
Suggestion importance[1-10]: 9
__
Why: The suggestion correctly identifies a critical bug in the RLS policy where p.id = p.plan_id would always fail, breaking access control.
High
General
Preserve preallocated buffer usage
You pre-allocate a work array for ir but then reassign it to a new array from irfft, losing the memory reuse and increasing allocations. Write the irfft result into the pre-allocated buffer to avoid unnecessary allocations and potential memory pressure.
Why: The suggestion correctly points out that reassigning ir negates the benefit of pre-allocating the array, and the proposed fix correctly uses an in-place update to improve memory efficiency.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Type
Enhancement
Description
• Code Quality Infrastructure: Added comprehensive CI/CD pipeline with ESLint, Ruff, and SQLFluff linting for TypeScript, Python, and SQL code
• Modern Python Compatibility: Updated Python capture agent to use Python 3.11+ syntax including
datetime.UTCand modern type hints (list[T]instead ofList[T])• Extensive SQL Formatting: Standardized formatting across 50+ database migrations with consistent 4-space indentation, explicit JOIN syntax, and proper JSONB formatting
• ESLint Configuration: Added legacy code compatibility rules while maintaining quality standards for new development
• Documentation Updates: Enhanced CONTRIBUTING.md with CodeRabbit AI assistant integration and added comprehensive CHANGELOG.md for version 1.5.6.1
• Variable Mutability Fixes: Changed
lettoconstdeclarations for immutable objects across React components• SQL Syntax Fixes: Added missing semicolons and newlines, fixed table reference issues in RLS policies
Diagram Walkthrough
File Walkthrough
52 files
main.py
Import organization and timezone compatibility updatesagents/capture-agent-py/main.py
• Reordered import statements alphabetically for better organization
•
Updated timezone reference from
datetime.timezone.utctodatetime.UTCfor Python 3.11+ compatibility
• Applied consistent code formatting
with proper spacing and indentation
dsp.py
Import reorganization and formatting improvementsagents/capture-agent-py/capture_agent/dsp.py
• Reorganized imports alphabetically and grouped related imports
together
• Fixed minor whitespace formatting issues for consistency
•
Maintained existing functionality while improving code organization
server.py
Import consolidation and modern type hintsagents/capture-agent-py/capture_agent/server.py
• Consolidated imports and reorganized them for better readability
•
Updated type hints to use modern Python syntax
(
set[WebSocketServerProtocol]instead ofSet)• Applied consistent
formatting and spacing throughout the file
schema.py
Modern type hints and import organizationagents/capture-agent-py/capture_agent/schema.py
• Updated type hints to use modern Python syntax (
list[float]insteadof
List[float])• Reorganized imports to follow Python conventions
•
Applied consistent formatting and spacing
generate_cert.py
Import organization and formatting cleanupagents/capture-agent-py/generate_cert.py
• Reordered imports alphabetically for consistency
• Applied minor
formatting improvements with proper spacing
audio.py
Modern imports and type hints updateagents/capture-agent-py/capture_agent/audio.py
• Updated imports to use modern Python syntax and organization
•
Changed type hints to use built-in types (
list[Device]instead ofList[Device])• Added proper import grouping and spacing
__main__.py
Import formatting improvementsagents/capture-agent-py/capture_agent/main.py
• Added proper import spacing and organization
• Applied consistent
formatting with blank lines
20250605170000_add_update_rls_for_shared_edits.sql
SQL formatting and JOIN syntax improvementssupabase/migrations/20250605170000_add_update_rls_for_shared_edits.sql
• Reformatted SQL policies with consistent indentation and line breaks
• Changed JOIN syntax to use explicit INNER JOIN for clarity
• Applied
consistent formatting across all RLS policies for patch_sheets,
stage_plots, run_of_shows, and production_schedules
20250605165000_update_rls_for_claimed_shares.sql
SQL formatting and explicit JOIN syntaxsupabase/migrations/20250605165000_update_rls_for_claimed_shares.sql
• Applied consistent SQL formatting with proper indentation
• Updated
JOIN syntax to use explicit INNER JOIN statements
• Improved
readability of RLS policies across multiple tables
20250612120000_update_share_for_theater_mic_plots.sql
SQL formatting improvements for theater mic plotssupabase/migrations/20250612120000_update_share_for_theater_mic_plots.sql
• Reformatted SQL policies with consistent indentation and spacing
•
Updated JOIN syntax to use explicit INNER JOIN for better clarity
•
Applied consistent formatting across theater mic plot RLS policies
20250425212102_tiny_shore.sql
SQL formatting standardization for shared linkssupabase/migrations/20250425212102_tiny_shore.sql
• Applied consistent SQL formatting with proper indentation and
spacing
• Standardized column definitions and constraint formatting
•
Improved readability of table creation and policy definitions
20250814180000_create_leq_measurements.sql
SQL formatting and PostgreSQL syntax improvementssupabase/migrations/20250814180000_create_leq_measurements.sql
• Standardized SQL formatting with consistent indentation and case
usage
• Updated function syntax to use proper PostgreSQL conventions
•
Applied consistent formatting to table creation, policies, and
triggers
20250817124300_create_tf_measurements.sql
SQL formatting improvements for TF measurementssupabase/migrations/20250817124300_create_tf_measurements.sql
• Applied consistent indentation and formatting to table creation
•
Standardized policy names and formatting across all RLS policies
•
Improved readability of column definitions and constraints
20250612100000_add_corporate_mic_plots_to_share_links.sql
SQL formatting improvements for corporate mic plotssupabase/migrations/20250612100000_add_corporate_mic_plots_to_share_links.sql
• Reformatted SQL with consistent indentation and spacing
• Updated
JOIN syntax to use explicit table aliases
• Applied consistent
formatting to RLS policies and constraints
20250429043238_long_term.sql
SQL formatting standardization for shared policiessupabase/migrations/20250429043238_long_term.sql
• Applied consistent SQL formatting with proper indentation
•
Standardized WHERE clause formatting and boolean conditions
• Improved
readability of shared link policies and functions
20250605140000_add_live_data_to_run_of_shows_and_sharing_rpc.sql
SQL function formatting improvementssupabase/migrations/20250605140000_add_live_data_to_run_of_shows_and_sharing_rpc.sql
• Reformatted function definition with consistent indentation
•
Applied proper SQL formatting to the RPC function structure
• Improved
readability of the complex function logic
20250430100000_create_production_schedules.sql
SQL formatting improvements for production schedulessupabase/migrations/20250430100000_create_production_schedules.sql
• Applied consistent SQL formatting with proper indentation and
spacing
• Standardized table creation syntax and column definitions
•
Improved formatting of RLS policies and trigger definitions
20250429041941_wandering_stream.sql
SQL formatting standardization for shared accesssupabase/migrations/20250429041941_wandering_stream.sql
• Applied consistent SQL formatting with proper indentation
•
Standardized policy formatting and WHERE clause structure
• Improved
readability of shared access policies
20250429040931_polished_glade.sql
SQL formatting improvements for shared resourcessupabase/migrations/20250429040931_polished_glade.sql
• Applied consistent SQL formatting with proper indentation
•
Standardized policy structure and WHERE clause formatting
• Improved
readability of shared resource policies
20250428175017_lucky_shape.sql
SQL formatting standardization for shared policiessupabase/migrations/20250428175017_lucky_shape.sql
• Applied consistent SQL formatting with proper indentation and
spacing
• Standardized policy formatting across all shared resource
policies
• Improved readability of WHERE clauses and boolean
conditions
20250428180538_late_voice.sql
SQL formatting improvements for shared accesssupabase/migrations/20250428180538_late_voice.sql
• Applied consistent SQL formatting with proper indentation
•
Standardized policy structure and WHERE clause formatting
• Improved
readability of shared access policies
20250429050554_withered_queen.sql
SQL formatting improvements for shared link functionssupabase/migrations/20250429050554_withered_queen.sql
• Applied consistent SQL formatting with proper indentation
•
Standardized function parameter formatting and return types
• Improved
readability of function definitions and policy structures
20250604100000_create_run_of_show_table.sql
SQL formatting improvements for run of show tablesupabase/migrations/20250604100000_create_run_of_show_table.sql
• Applied consistent SQL formatting with proper indentation and
spacing
• Standardized table creation syntax and column definitions
•
Improved formatting of RLS policies and index creation
PrintStagePlotExport.tsx
Variable declaration improvements for style objectsapps/web/src/components/PrintStagePlotExport.tsx
• Changed variable declarations from
lettoconstfor immutable styleobjects
• Applied consistent variable naming for
elementStyle,wrapperStyle,innerStyle,symbolStyle, andlabelStyle• Improved code
consistency and immutability practices
20250605141700_update_shared_links_constraint_and_ros_rls.sql
SQL formatting improvements for shared links constraintssupabase/migrations/20250605141700_update_shared_links_constraint_and_ros_rls.sql
• Applied consistent SQL formatting with proper indentation
•
Standardized policy structure and WHERE clause formatting
• Improved
readability of constraint updates and RLS policies
20250611100000_create_corporate_mic_plots.sql
SQL formatting improvements for corporate mic plots tablesupabase/migrations/20250611100000_create_corporate_mic_plots.sql
• Applied consistent SQL formatting with proper indentation and
spacing
• Standardized table creation syntax and column definitions
•
Improved formatting of RLS policies and constraint definitions
20250612000000_create_theater_mic_plots.sql
SQL formatting improvements for theater mic plots tablesupabase/migrations/20250612000000_create_theater_mic_plots.sql
• Applied consistent SQL formatting with proper indentation and
spacing
• Standardized table creation syntax and column definitions
•
Improved formatting of RLS policies and constraint definitions
20250428173152_silent_swamp.sql
SQL formatting standardization for shared resource policiessupabase/migrations/20250428173152_silent_swamp.sql
• Applied consistent SQL formatting with proper indentation
•
Standardized policy structure and WHERE clause formatting
• Improved
readability of shared resource access policies
20250428173008_copper_shadow.sql
SQL formatting improvements for shared access policiessupabase/migrations/20250428173008_copper_shadow.sql
• Applied consistent SQL formatting with proper indentation
•
Standardized policy structure and WHERE clause formatting
• Improved
readability of shared access policies
20250428173327_precious_tower.sql
SQL formatting standardization for shared resourcessupabase/migrations/20250428173327_precious_tower.sql
• Applied consistent SQL formatting with proper indentation
•
Standardized policy structure and WHERE clause formatting
• Improved
readability of shared resource policies
20250423215435_soft_sunset.sql
SQL formatting improvements for stage plots tablesupabase/migrations/20250423215435_soft_sunset.sql
• Applied consistent SQL formatting with proper indentation and
spacing
• Standardized table creation syntax and column definitions
•
Improved formatting of RLS policies and constraint definitions
20250423184330_dusty_spark.sql
Standardize SQL indentation to 4-space formatsupabase/migrations/20250423184330_dusty_spark.sql
• Standardized indentation for CREATE TABLE statement and RLS policies
• Changed from 2-space to 4-space indentation throughout the file
•
Improved code formatting consistency for
patch_sheetstable creationand policies
20250429043444_super_recipe.sql
Format SQL function parameters and policies consistentlysupabase/migrations/20250429043444_super_recipe.sql
• Updated function parameter indentation to 4-space format
•
Standardized RLS policy formatting with consistent indentation
•
Applied consistent formatting to all CREATE POLICY statements
20250429050413_peaceful_paper.sql
Standardize function formatting and language specificationsupabase/migrations/20250429050413_peaceful_paper.sql
• Standardized function parameter and return table indentation
•
Changed
LANGUAGE SQLto lowercaseLANGUAGE sql• Applied 4-space
indentation throughout the migration file
20250429045511_lucky_portal.sql
Format function parameters and standardize boolean valuessupabase/migrations/20250429045511_lucky_portal.sql
• Updated function parameters to use 4-space indentation
•
Standardized RLS policy formatting with consistent indentation
•
Changed boolean values from lowercase to uppercase (
FALSE,TRUE)20250429050131_jade_gate.sql
Standardize function formatting and language specificationsupabase/migrations/20250429050131_jade_gate.sql
• Applied 4-space indentation to function definitions and return
tables
• Changed
LANGUAGE SQLto lowercaseLANGUAGE sql• Standardized
formatting throughout the migration file
20250503100000_add_production_schedule_to_shared_links_check.sql
Format production schedule shared links policies consistentlysupabase/migrations/20250503100000_add_production_schedule_to_shared_links_check.sql
• Standardized RLS policy formatting with 4-space indentation
• Added
table aliases (
AS sl) to subqueries for clarity• Improved SQL
formatting consistency throughout the file
20250605163000_create_userclaimed_shares_table.sql
Standardize user claimed shares table formattingsupabase/migrations/20250605163000_create_userclaimed_shares_table.sql
• Applied 4-space indentation to CREATE TABLE statement
• Standardized
RLS policy formatting with consistent indentation
• Improved overall
code formatting for the user claimed shares table
20250605164000_create_rpc_get_user_claimed_documents.sql
Format RPC function definition with consistent indentationsupabase/migrations/20250605164000_create_rpc_get_user_claimed_documents.sql
• Standardized function definition formatting with 4-space indentation
• Applied consistent indentation to RETURNS TABLE and function body
•
Improved overall SQL formatting consistency
20250905123341_add_foreign_key_beltpacks_to_transceivers.sql
Format beltpacks foreign key migration consistentlysupabase/migrations/20250905123341_add_foreign_key_beltpacks_to_transceivers.sql
• Standardized RLS policy formatting with 4-space indentation
• Added
table alias (
AS p) to subquery for clarity• Fixed potential column
reference issue in WHERE clause
20250423220157_little_meadow.sql
Format stage plots update statement consistentlysupabase/migrations/20250423220157_little_meadow.sql
• Applied 4-space indentation to UPDATE statement
• Standardized CASE
statement formatting with consistent indentation
• Improved overall
SQL formatting consistency
20250630100000_wheres_cj.sql
Standardize CJ location table formattingsupabase/migrations/20250630100000_wheres_cj.sql
• Applied 4-space indentation to CREATE TABLE statement
• Standardized
column definitions and constraints formatting
• Improved overall table
creation formatting consistency
20250501100000_add_background_transform_to_stage_plots.sql
Format background transform update statement consistentlysupabase/migrations/20250501100000_add_background_transform_to_stage_plots.sql
• Applied 4-space indentation to UPDATE statement
• Standardized SET
clause formatting with consistent indentation
20250905121000_create_comms_beltpacks_table.sql
Format comms beltpacks table creation consistentlysupabase/migrations/20250905121000_create_comms_beltpacks_table.sql
• Standardized RLS policy formatting with 4-space indentation
• Added
table alias (
AS p) to subquery for clarity• Fixed potential column
reference issue in WHERE clause
20250905134659_add_beltpack_channel_assignments.sql
Standardize JSONB formatting in beltpack channel assignmentssupabase/migrations/20250905134659_add_beltpack_channel_assignments.sql
• Standardized JSONB default value formatting to uppercase
'[]'::JSONB• Applied consistent SQL formatting for column addition
20250430110000_add_crew_key_to_schedules.sql
Standardize JSONB formatting in crew key columnsupabase/migrations/20250430110000_add_crew_key_to_schedules.sql
• Standardized JSONB default value formatting to uppercase
'[]'::JSONB• Applied consistent SQL formatting for column addition
20250430120000_add_labor_schedule_to_production_schedules.sql
Standardize JSONB formatting in labor schedule columnsupabase/migrations/20250430120000_add_labor_schedule_to_production_schedules.sql
• Standardized JSONB default value formatting to uppercase
'[]'::JSONB• Applied consistent SQL formatting for column addition
20250502100000_add_detailed_schedule_to_production_schedules.sql
Standardize JSONB formatting in detailed schedule columnsupabase/migrations/20250502100000_add_detailed_schedule_to_production_schedules.sql
• Standardized JSONB default value formatting to uppercase
'[]'::JSONB• Applied consistent SQL formatting for column addition
20250423203118_navy_rain.sql
Add missing newline at end of migration filesupabase/migrations/20250423203118_navy_rain.sql
• Added missing newline at end of file
• Applied consistent file
formatting standards
20250425225230_hidden_math.sql
Add missing newline at end of migration filesupabase/migrations/20250425225230_hidden_math.sql
• Added missing newline at end of file
• Applied consistent file
formatting standards
20250811120000_add_default_column_colors_to_run_of_shows.sql
Standardize JSONB formatting in default column colorssupabase/migrations/20250811120000_add_default_column_colors_to_run_of_shows.sql
• Standardized JSONB default value formatting to uppercase
'{}'::JSONB• Applied consistent SQL formatting for column addition
20250821192800_add_phase_flipped_to_tf_measurements.sql
Remove unnecessary quotes in ALTER TABLE statementsupabase/migrations/20250821192800_add_phase_flipped_to_tf_measurements.sql
• Removed unnecessary quotes around table name
public.tf_measurements• Applied consistent SQL formatting for ALTER TABLE statement
4 files
eslint.config.js
ESLint configuration for legacy code compatibilityeslint.config.js
• Disabled strict ESLint rules for legacy code compatibility
• Added
rules to turn off
@typescript-eslint/no-explicit-any,@typescript-eslint/no-unused-vars,react-hooks/exhaustive-deps, and@typescript-eslint/no-empty-object-type• Focused on allowing existing
code patterns while maintaining quality for new code
ci.yml
Add comprehensive CI workflow with multi-language linting.github/workflows/ci.yml
• Added comprehensive CI workflow for pull requests and pushes
•
Configured Node.js, Python, and pnpm setup with caching
• Integrated
ESLint, TypeScript, Ruff, and SQLFluff linting checks
• Added build
and test execution steps
pyproject.toml
Add Ruff linting configuration for Python capture agentagents/capture-agent-py/pyproject.toml
• Added Ruff as development dependency for Python linting
• Configured
comprehensive Ruff linting rules and settings
• Added line length,
target version, and import sorting configuration
• Set up known
first-party packages for import organization
.sqlfluff
Add SQLFluff configuration for SQL linting standards.sqlfluff
• Added SQLFluff configuration file for SQL linting
• Configured
PostgreSQL dialect and formatting rules
• Set lowercase capitalization
policy and line length limits
• Excluded specific rules for project
compatibility
2 files
pnpm-lock.yaml
ESLint dependencies and package lock updatespnpm-lock.yaml
• Added new ESLint-related dependencies including
@eslint/js,eslint,eslint-plugin-react-hooks,eslint-plugin-react-refresh,globals, andtypescript-eslint• Updated dependency versions and added new
@types/nodeandundici-typesentries• Maintained existing dependency
structure while adding linting infrastructure
package.json
Update version and add comprehensive linting configurationpackage.json
• Updated version from
1.5.6to1.5.6.1• Added ESLint dependencies
and configuration
• Enhanced lint-staged configuration with ESLint,
Python, and SQL linting
• Added TypeScript and globals dependencies
6 files
20250905094431_create_comms_planner_tables.sql
SQL formatting and table reference fixessupabase/migrations/20250905094431_create_comms_planner_tables.sql
• Applied consistent SQL formatting with proper indentation
• Updated
table aliases and JOIN syntax for better clarity
• Fixed potential
column reference issue in RLS policies
20250423193302_ancient_disk.sql
SQL syntax fix for patch sheets migrationsupabase/migrations/20250423193302_ancient_disk.sql
• Added missing semicolon at the end of the SQL block
• Applied minor
formatting fix for proper SQL syntax
VideoCategoryPage.tsx
Fix variable mutability in video category pageapps/web/src/pages/VideoCategoryPage.tsx
• Changed
safeSpeedsvariable declaration fromlettoconst• Applied
ESLint recommendation for immutable array declaration
SharedShowModePage.tsx
Fix variable mutability in shared show mode pageapps/web/src/pages/SharedShowModePage.tsx
• Changed
rowStylevariable declaration fromlettoconst• Applied
ESLint recommendation for immutable object declaration
ShowModePage.tsx
Fix variable mutability in show mode pageapps/web/src/pages/ShowModePage.tsx
• Changed
rowStylevariable declaration fromlettoconst• Applied
ESLint recommendation for immutable object declaration
ChartDetailModal.tsx
Fix variable mutability in chart detail modalapps/web/src/components/analyzer/ChartDetailModal.tsx
• Changed
datavariable declaration fromlettoconst• Applied ESLint
recommendation for immutable variable declaration
2 files
CHANGELOG.md
Version 1.5.6.1 changelog documentationCHANGELOG.md
• Added comprehensive changelog entry for version 1.5.6.1
• Documented
new CI/CD pipeline, pre-commit quality gates, and linting
infrastructure
• Detailed technical enhancements and legacy code
compatibility improvements
CONTRIBUTING.md
Document CodeRabbit AI assistant integration and workflowCONTRIBUTING.md
• Added detailed section about CodeRabbit AI assistant integration
•
Updated pull request process to emphasize automated PR descriptions
•
Added information about intelligent code reviews and smart suggestions
• Enhanced contributor guidelines with AI-assisted workflow details
1 files