Doodle React Component ====================== ``@smarter/doodle`` is the left panel of the web console's sign-in pages: the logo, the **doodle of the day**, and the project's name and description. The doodle is a small, flat illustration of a Smarter LLMClient's chat window, with the plugin, guardrail, vectorstore and secret that it uses, and its manifest. On days worth celebrating, the illustration is decorated for the day: lanterns for the Lunar New Year, diyas for Diwali, a menorah for Hanukkah, gears for Ada Lovelace Day, fireworks for Canada Day. On other days it is the plain scene. The single-page console, ``@smarter/console``, imports the component and shows it beside its sign-in, sign-up and password reset forms. It passes the doodle api's url, the plain scene's url and the platform's branding from the console's session, ``GET /api/web/session/``, whose ``signIn.doodle`` reports the ``enable_doodle`` switch. The panel's styles are the package's own, in ``App.css``. On a phone, the panel shows only the logo. Visitors in different regions can see different doodles on the same day. The browser sends its time zone, e.g. ``Asia/Kolkata``, which gives the visitor's local date, so a holiday starts at local midnight, and, through the time zone database, the country and the region. No IP address is looked up, and nothing about the visitor is stored. The regions are ``global``, ``us``, ``ca``, ``mx``, ``latam``, ``europe``, ``africa``, ``middle-east``, ``south-asia``, ``east-asia``, ``southeast-asia`` and ``oceania``. How it works ------------ The Django app ``smarter.apps.doodle`` does the work, and the React app only shows the result. 1. **The theme catalog.** Each theme is a YAML file in ``smarter/apps/doodle/data/themes/``: what it celebrates, its caption and link, the regions that see it, its priority, its schedule, and an SVG of its *props*, the decorations that are drawn on the base scene. A schedule is a fixed date (Pi Day, March 14), the nth weekday of a month (Ada Lovelace Day, the second Tuesday of October), or a country's holiday by name, which the `holidays `__ package dates, including the moving ones such as Diwali, Eid al-Fitr and Thanksgiving. The catalog's ``README.md`` explains how to add a theme and draw its props. ``manage.py load_doodle_themes``, which ``initialize_platform`` runs, loads the catalog and draws each theme's artwork. 2. **The planner.** A Celery Beat task, ``plan_doodles``, chooses the doodle of every region for the next seven days, so that a week of content is always ready, then asks the Smarter Doodle Editor about each new day (below). For each day and region, the due theme of the highest priority wins, and a region's own theme wins over one of every region. When nothing is due, the plain default wins. ``manage.py plan_doodles`` does the same by hand, and asks the editor too with ``--editor``. 3. **The api.** ``GET /api/v1/doodles/today/?tz=