Skip to content

Add CodeQL analysis workflow configuration - #1

Merged
shanujans merged 1 commit into
mainfrom
shanujans-patch
Jun 7, 2026
Merged

Add CodeQL analysis workflow configuration#1
shanujans merged 1 commit into
mainfrom
shanujans-patch

Conversation

@shanujans

Copy link
Copy Markdown
Owner

No description provided.

@shanujans
shanujans merged commit 08e3cdd into main Jun 7, 2026
1 check passed
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

shanujans added a commit that referenced this pull request Jul 17, 2026
Three paths could return a USD price instead of LKR:

1. normalizeJsonProduct (primary MCP path): price object's currency
   field was ignored — now only accepts LKR/Rs prices, sets price=0
   otherwise so the UI merges the search-result LKR price.

2. fetchKaprukaPage meta-tag fallback: product:price:amount was read
   without checking product:price:currency — on Vercel (US IPs)
   Kapruka serves international pages with USD meta prices. Now only
   accepts the meta price when currency is explicitly LKR.

3. ProductModal merge: isGarbage required ALL fields to be bad, so a
   product with good images/description but price=0 (from fix #1)
   would still show price=0. Now patches in the fallback search LKR
   price when API price is 0, keeping all rich API data.
@shanujans
shanujans deleted the shanujans-patch branch July 18, 2026 16:47
shanujans added a commit that referenced this pull request Jul 25, 2026
Three paths could return a USD price instead of LKR:

1. normalizeJsonProduct (primary MCP path): price object's currency
   field was ignored — now only accepts LKR/Rs prices, sets price=0
   otherwise so the UI merges the search-result LKR price.

2. fetchKaprukaPage meta-tag fallback: product:price:amount was read
   without checking product:price:currency — on Vercel (US IPs)
   Kapruka serves international pages with USD meta prices. Now only
   accepts the meta price when currency is explicitly LKR.

3. ProductModal merge: isGarbage required ALL fields to be bad, so a
   product with good images/description but price=0 (from fix #1)
   would still show price=0. Now patches in the fallback search LKR
   price when API price is 0, keeping all rich API data.
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