# ui.stockprices.com — repo context

> Curated overview for code_search. Source: `bitbucket_server:AD/ui.stockprices.com` (Bitbucket, project AD). CodeIgniter 4 / PHP. Default branch `master`.

## Purpose
The consumer-facing **StockPrices.com** web UI — a stock-market / finance product: market dashboard, stock details & charts, watchlists, portfolios, news/articles, and an AI stock assistant ("Stocky"). Server-rendered CodeIgniter 4 that mostly **renders UI and proxies to backend stock/finance APIs** — `app/Models/` is empty, so this app owns no data; it calls the StockPrices backend (e.g. `api.stockprices.com`).

## Structure
- `html/` — CodeIgniter 4 app (web root `html/public/`). `app/Controllers/` holds the features (map below); `app/Config/Routes.php` defines routing; `app/Views/`, `app/Libraries/`, `app/Helpers/` for the rest.
- `html/system/` — the CI4 framework (ignore when reasoning about app logic).
- `app/Models/` — effectively empty (`.gitkeep`): this is a UI/proxy, not a data owner.

## Feature map (controller → area)
- **Dashboard / markets** — `Dashboard` (`/`, `/dashboard`), `Home` (`/markets`, plans, about, faq, legal, compare, glossary), `Widgets` (market snapshots: US / world / commodities / futures).
- **Stocks & market data** — `StockController`: stock details, charts, intraday quotes, technical indicators, quarterly financials, compare, ETFs, market quotes, heatmap, ticker search.
- **Finance** — `Finance`: predictions, crypto, earnings, politicians, earnings calendar.
- **Watchlist** — `WatchlistController`: add/remove, alerts, settings, notifications.
- **Portfolio** — `PortfolioController`: create/add/remove, **AI portfolio generation**.
- **For You / content** — `ForYouController` (top picks, expert analysis, preferences), `Article` (articles / expert-opinion / stock-market-sectors — detail + listing), `NewsController` (news, breaking news).
- **Search / SERP** — `Search`: `/results`, `/search-result`, and the **"Stocky" AI chat** (`askStocky`).
- **Auth / profile / billing** — `AuthController` (login/signup/social/forgot), `ProfileController` (profile, billing & subscription, payment method, invoices, change/delete).
- **Marketing / misc** — `LandingController` (subscription funnels `landing`, `landing-2..7`), `ShopController` (shop, product search/details), `Contact`, `SitemapController`, `WellKnown` (Apple/Android app-site-association — there are companion mobile apps).

## Tech
CodeIgniter 4 · PHP · MySQL. UI/proxy front end for the StockPrices.com backend. Related repos: `stockprices.com`, `api.stockprices.com`, `rsoc.stockprices.com`.

## Search notes
- Feature logic lives in `html/app/Controllers/*`; many methods are explicitly "Proxy for …" the backend — for real data/business logic look in the StockPrices backend repos, not here.
- Ignore `html/system/` (framework) and any `vendor/`.
