Skip to content

M1#574

Merged
ashwin31 merged 20 commits intomasterfrom
m1
Jan 19, 2026
Merged

M1#574
ashwin31 merged 20 commits intomasterfrom
m1

Conversation

@ashwin31
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings January 19, 2026 18:08
@@ -0,0 +1 @@
export { default as CommentSection } from './CommentSection.svelte';
Copy link

Choose a reason for hiding this comment

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

'export' is only available in ES6 (use 'esversion: 6').

export function getOptionStyle(value, options) {
const option = options.find((o) => o.value === value);
return option?.color ?? 'bg-gray-100 text-gray-600';
return option?.color ?? 'bg-[var(--surface-sunken)] text-[var(--text-secondary)]';
Copy link

Choose a reason for hiding this comment

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

Expected ':' and instead saw 'color'.
Expected an assignment or function call and instead saw an expression.
Expected an identifier and instead saw '.'.
Expected an identifier and instead saw '?'.
Expected an operator and instead saw '?'.
Missing semicolon.

@coderabbitai
Copy link

coderabbitai bot commented Jan 19, 2026

Important

Review skipped

Too many files!

14 files out of 164 files are above the max files limit of 150.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR appears to be an initial milestone ("M1") for setting up a mobile application project structure with comprehensive documentation for a SalesPro CRM system. The changes include iOS Flutter configuration files, extensive documentation for design systems, technical specifications, UI components, and detailed route specifications for both mobile and web implementations.

Changes:

  • Added Flutter iOS configuration files (Release.xcconfig, Debug.xcconfig, AppFrameworkInfo.plist, .gitignore)
  • Added comprehensive documentation covering design systems, technical specifications, API endpoints, data models, and screen-by-screen implementation guides
  • Added Android Gradle wrapper configuration

Reviewed changes

Copilot reviewed 87 out of 200 changed files in this pull request and generated no comments.

Show a summary per file
File Description
mobile/ios/Flutter/*.xcconfig Flutter build configuration for iOS
mobile/ios/Flutter/AppFrameworkInfo.plist iOS app framework metadata
mobile/ios/.gitignore iOS-specific ignore patterns
mobile/docs/*.md Design system, technical specs, and README documentation
mobile/docs/routes/*.md Detailed specifications for 12 app screens
mobile/docs/components/ui-components.md Reusable UI component specifications
mobile/devtools_options.yaml Flutter DevTools configuration
mobile/android/gradle/wrapper/gradle-wrapper.properties Gradle build system configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ashwin31 ashwin31 merged commit cc28cfb into master Jan 19, 2026
4 checks passed
@ashwin31 ashwin31 deleted the m1 branch January 19, 2026 18:09
picture = idinfo.get("picture", "")
except ValueError as e:
return Response(
{"error": f"Invalid token: {str(e)}"},

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
flows to this location and may be exposed to an external user.

Copilot Autofix

AI 27 days ago

In general, to fix this issue you should avoid returning raw exception messages to the client. Instead, log the detailed error message (and optionally the stack trace) on the server, and send a generic, non-sensitive error message in the HTTP response. This preserves debuggability without exposing internal details or third‑party library messages.

For this specific code, the best minimal fix is:

  • Keep the try/except ValueError as e: block as is structurally.
  • Inside the except, add server-side logging of the exception (using Python’s standard logging module, which is already widely used and does not change existing functionality).
  • Replace {"error": f"Invalid token: {str(e)}"} with a generic message such as {"error": "Invalid token"} so the client no longer sees the raw exception text.

Concretely, in backend/common/views/auth_views.py:

  • Add import logging at the top alongside the other imports.
  • In the except ValueError as e: block in GoogleIdTokenView.post, log the exception using logging.exception (or logging.getLogger(__name__).exception) with a clear message, then return a generic error payload.

No behavior other than the specific error message content is changed: the status code remains 400, and the control flow stays identical.


Suggested changeset 1
backend/common/views/auth_views.py

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/backend/common/views/auth_views.py b/backend/common/views/auth_views.py
--- a/backend/common/views/auth_views.py
+++ b/backend/common/views/auth_views.py
@@ -1,6 +1,7 @@
 import json
 import secrets
 
+import logging
 import requests
 from django.conf import settings
 from django.contrib.auth.hashers import make_password
@@ -193,8 +194,9 @@
             email = idinfo.get("email")
             picture = idinfo.get("picture", "")
         except ValueError as e:
+            logging.exception("Failed to verify Google ID token")
             return Response(
-                {"error": f"Invalid token: {str(e)}"},
+                {"error": "Invalid token"},
                 status=status.HTTP_400_BAD_REQUEST,
             )
 
EOF
@@ -1,6 +1,7 @@
import json
import secrets

import logging
import requests
from django.conf import settings
from django.contrib.auth.hashers import make_password
@@ -193,8 +194,9 @@
email = idinfo.get("email")
picture = idinfo.get("picture", "")
except ValueError as e:
logging.exception("Failed to verify Google ID token")
return Response(
{"error": f"Invalid token: {str(e)}"},
{"error": "Invalid token"},
status=status.HTTP_400_BAD_REQUEST,
)

Copilot is powered by AI and may make mistakes. Always verify output.
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.

1 participant