# Changelog — Bandjoun Community of Texas (BCT) Website

Site: https://bandjouncommunitytexas.org · Built by The Yong Technologies · Flask / Python 3.9+ (tested 3.11 and 3.13)

All notable changes, newest first. Dates are 2026. The current version is stored in the `VERSION`
file and shown at the bottom of the admin sidebar.

Version numbers: MAJOR.MINOR.PATCH. MINOR is a new feature or page; PATCH is a fix or content/visual change.

---

## 1.5.4 — November 2 — Houston Food Bank Oct 2026 album

**Added**
- Photo album **Houston Food Bank Oct 2026** (FR "Banque alimentaire de Houston – oct. 2026"),
  first in the Photo Gallery menu: 55 photos from the October 31, 2026 volunteer day
  (1 near-duplicate dropped), cover = group photo.
- Two Food Bank photos (group photo, volunteers packing) added at the start of the home slideshow.
- **Random photo order** per album: albums whose slug is in the setting `random_order_albums`
  (comma-separated) show their photos in a new random order each time the page opens
  (`public.album`, `random.shuffle`). Enabled for `houston-food-bank-oct-2026`.
- `add_food_bank_oct2026.py`: one-time, re-runnable script that applied the above on the live
  site (direct SQLite + the site's `media.py`).

## 1.5.3 — October 31 — Events page: Upcoming and Past sections

**Changed**
- Events page (`/events`) is now titled **Events** and split into two sections:
  **Upcoming Events** (soonest first) and, below it, **Past Events** (most recent first). Both show the same
  information (flyer, date, time, location, description, "More information" link).
- Events move from Upcoming to Past **automatically**: an event stays "upcoming" through the whole day of the
  event and appears under Past Events from the next day. No admin action needed.
- If there are no upcoming events, the Upcoming Events section is **hidden** (no "no events" box). If there are
  no events at all, a short "No events yet" note is shown.
- Past Events now lists **all** past events (was limited to the 12 most recent). Each past card has a
  "Past event" label.
- "Today" is now calculated in **Houston time** (`utils.today_local()`, `America/Chicago`), whatever the
  server's own time zone, for the events page, the home page "Next event", the admin dashboard and Admin › Events.

## 1.5.2 — October 18 — Start / stop / restart / status scripts

**Added**
- `start.sh`, `stop.sh`, `restart.sh`, `status.sh` in the site folder (shared settings in `_common.sh`).
  - Work from any folder and through symlinks (e.g. `~/www` → `~/public_html`).
  - Always use the site's own `venv/bin/python` (no need to "activate" anything; falls back to
    `python3.11`/`python3` if there is no venv). Fixes "python: command not found" / `nohup` exit 126 on cPanel.
  - Read the port from `settings.ini`; log to `logs/app.log`; process number in `bct.pid`.
  - `start.sh` does nothing if the site is already up (safe for cron), waits up to 30 s for an HTTP 200, and
    prints the error from the log if the app fails to start.
  - `stop.sh` also stops copies started by hand (any Python `app.py` running from this folder), then
    force-stops after 10 s if needed.
  - `status.sh` shows folder, Python, port, process, HTTP code and version.

**Fixed**
- `settings.ini` now accepts inline comments after values (`port = 8035 ; note`). Before, such a comment
  made the app crash at start ("invalid literal for int()").

## 1.5.1 — October 18 — Footer credit wording and links

**Changed**
- Footer credit now reads **"Website Powered by The Yong Technologies, a member of The Yong Group"**
  (FR "Site web propulsé par The Yong Technologies, membre de The Yong Group"). Strings `footer.powered`
  and new `footer.member_of` in `i18n.py`.
- "The Yong Technologies" (text and logo) now links to **https://theyongtechnologies.com**;
  "The Yong Group" links to **https://theyong.com**. Both open in a new tab (`rel="noopener"`).
  Previously both pointed to www.theyonggroup.com.
- The Yong Technologies logo kept at 96 px. The credit may now wrap on narrow desktop widths
  (`white-space: normal`). CSS link bumped to `?v=6`.

## 1.5.0 — October 8 — Current / Past Executive Boards

**Added**
- New public page **Past Executive Boards** at `/about/past-executive-boards`, in the same layout as the
  current board: the first member (President) shown large at the top, then the other members in a grid with
  photo, title (EN/FR) and name. Includes a link back to the current board.
- New menu item **About Us › Past Executive Boards** (FR "Anciens bureaux exécutifs"), also in the footer
  quick links and `sitemap.xml`.
- Past board seeded with 8 members: Joe Kuate (President), Paul Tidjon (Vice President), Lucas Kouonga
  (General Secretary), Etienne Fotso (Financial Secretary), Denise Motso (Treasurer), Chrystelle Tokam
  (Auditor), Patricia Yongoueth (Cultural Officer), Serge Jordan Fotso (Chief Whip). Lucas Kouonga and Serge
  Jordan Fotso reuse their current-board photos. 6 new photos in `content/Past Executive Board/`.
- `board_member.board` column (`current` | `past`).
- Admin › Executive Board: **Current / Past tabs** with member counts, "Shown at top" badge on the first
  member, a **Board** selector on each member (move a member between boards; they go to the end of the target
  board's order), and a "View page" link per tab.
- Content blocks `board.past_term` (optional years, empty by default; appears in the title when set) and
  `board.past_intro` (EN/FR introduction).
- CLI `flask --app app add-past-board [SOURCE] [--force]`: adds the past board from
  `<SOURCE>/Past Executive Board/` (default `./content`). Idempotent: skips if past members already exist
  unless `--force`. Photo entries `current:<Name>` reuse that current member's photo.
- `import-content` seeds the past board automatically when the content folder contains `Past Executive Board/`.
- Automatic database upgrade at startup (`app._migrate`): adds the `board` column to existing databases
  (existing members become `current`) and inserts any content blocks added in newer versions. Existing
  content is never overwritten.
- `VERSION` file; version shown in the admin sidebar.

**Changed**
- "Executive Board" renamed **"Current Executive Board"** (FR "Bureau exécutif actuel") in the menu, footer,
  breadcrumb and page title ("Current Executive Board 2026–2028"). URL unchanged (`/about/executive-board`).
- `board.html` is now a shared template for both boards (`which` = `current` | `past`).

## 1.4.1 — October 4 — Identification Form link
- Identification Form (Join BCT) link changed to `https://forms.gle/iZDc3ZdQPSXCknV3A`
  (setting `identification_form_url`; seed updated). On a live site, change it in Admin › Settings & Email.

## 1.4.0 — October 3 — Slideshow shows whole photos
- Home slideshow no longer crops photos (heads were cut off). Each slide shows the **entire** photo
  (`object-fit: contain`) with a blurred, darkened copy of the same photo filling the sides
  (`.slide-bg`, uses the slide thumbnail).
- Phones: the photo is shown at 4:3 on top, with the welcome text, buttons and dots below on charcoal.
- Inner-page banners crop around the upper third (`center 30%`) to keep heads in frame.
- Removed the slow zoom (Ken Burns) effect on slides.

## 1.3.2 — October 3 — Footer logo size
- "Powered by The Yong Technologies" logo enlarged twice: 24 px → 48 px → **96 px** wide; regenerated from the
  original at higher resolution (`static/img/yong-technologies.png`, 287×168, transparent background).
- Footer bottom row vertically centred (`.f-bottom { align-items: center }`).

## 1.3.1 — October 3 — All-in-one package
- Content (texts, photos, albums) is now bundled in the package under `content/`. `deploy/install.sh` uses
  it automatically (no argument needed); an explicit zip or folder can still be passed.
- `install.sh` copies the content to `/tmp` so the `bct` user can read it, and excludes `/content` when
  copying the code to `/opt/bct`.

## 1.3.0 — October 3 — "Powered by" credit + update script
- Footer, on every page and on the copyright line: "Powered by **The Yong Technologies**" (FR "Propulsé par")
  with the company logo. Both link to https://www.theyonggroup.com in a new tab (`rel="noopener"`).
- On phones the credit wraps to its own line and the leading "·" separator is hidden.
- `deploy/update.sh`: updates an existing `/opt/bct` install, keeping `instance/`, `uploads/`,
  `settings.ini` and `venv/`, then restarts the service.

## 1.2.0 — October 3 — Bamendjou's King Visit album + album importer
- New gallery album **Bamendjou's King Visit** (FR "Visite du Roi de Bamendjou"), 4 photos; first in the menu
  (newest event first); cover = the King on his throne (`ALBUM_COVERS` in `content_seed.py`).
- CLI `flask --app app import-album <zip-or-folder>`: adds one or more albums to a live site. Each subfolder
  becomes an album; existing albums are extended; near-duplicates are skipped, so re-running is safe.
- Shared helper `cli.import_album_folder()` is used by both `import-content` and `import-album`.
- **Fix (safety):** admin delete confirmations used names inside a JavaScript string; an apostrophe (e.g.
  "Bamendjou's") broke the script so the browser deleted **without** asking. Now JSON-encoded (`|tojson`) in
  album, board-member and user delete forms.
- Gallery labels use the singular: "1 photo", "1 video" (FR "1 vidéo").

## 1.1.0 — October 3 — AlmaLinux 8 / cPanel support
- `deploy/install.sh` supports AlmaLinux / Rocky / RHEL 8–9 (dnf) as well as Ubuntu/Debian (apt):
  installs Python 3.11 alongside the system Python 3.6, optional ffmpeg (EPEL + RPM Fusion; only used for video
  thumbnails), configures SELinux (`httpd_can_network_connect`, `httpd_sys_content_t` on uploads/static),
  opens http/https in firewalld, and writes nginx config to `conf.d/` on RHEL.
- `--no-nginx` option for cPanel/WHM servers, plus `deploy/cpanel-apache-proxy.conf` (Apache userdata include)
  and `deploy/cpanel-htaccess.txt` (no-root `.htaccess` proxy).
- Rich-text editor (Quill 1.3.7) and drag-to-reorder (SortableJS 1.15.2) are bundled in `static/vendor/`;
  admin no longer depends on a CDN.

## 1.0.1 — October 3 — Pre-release fixes
- Importer ignores the macOS `__MACOSX/` folder and `.DS_Store` / `~$` temp files inside zips.
- Corrupted (truncated) images are skipped and counted instead of stopping the import.
- `gunicorn.conf.py` renamed its import (`config` clashed with a gunicorn setting name).
- Mobile: header could overflow sideways; fixed (`overflow-x: clip`, no backdrop filter).
- French header: long labels no longer wrap; brand wordmark hidden 1041–1440 px in French.
- Event flyers shown whole (`object-fit: contain`) instead of cropped.
- Clearer upload error for unreadable files; login redirect no longer adds a stray `?`.

## 1.0.0 — October 3 — Initial release
**Public site (EN/FR)**
- Pages: Home, Who We Are, Message from the President, Executive Board 2026–2028, Events (upcoming + automatic
  past archive), Photo Gallery (albums, lightbox, videos), Contact (form → inbox + SMTP email), Donate (Zelle,
  501(c)(3) tax-deductible statement, EIN, optional QR), 404.
- Design modelled on natso.com: white site, colours from the BCT seal (terracotta `#B0643F`, charcoal
  `#3A3839`, seal red `#C8102E`, bead navy `#1F2E6B`), Figtree + Lora fonts, bead-strip divider.
- Menu: Home · About Us ▾ · Events · Photo Gallery ▾ (one item per album) · Contact Us · Join BCT
  (Google identification form, new tab) · Donate. Top bar with email, Identification Form and EN | FR.
- Slideshow (13 images, 5 s, pause/arrows/dots/swipe, pauses on hover and hidden tabs); a random gallery photo
  as the banner of every inner page.
- SEO: canonical URLs, hreflang EN/FR, Open Graph/Twitter cards, NGO JSON-LD, `sitemap.xml`, `robots.txt`
  (admin disallowed).
- Content from the BCT Word documents; French translations drafted for review. "Wild ship" published as
  **Chief Whip** (FR "Censeur").
- Gallery import: 437 photos + 2 videos; 50 near-duplicate burst shots dropped (perceptual dHash, distance ≤ 10)
  and 9 corrupted Christmas files removed.

**Admin (`/admin`)**
- Login with hashed passwords, lockout after 5 failures (15 min), per-IP throttle, optional TOTP two-step
  login, 2-hour sessions, CSRF on all forms, Super Admin / Editor roles. Initial users `webadmin1`, `webadmin2`.
- Dashboard; Page Content (EN/FR, rich text, version history with Restore); Executive Board; Events;
  Photo Galleries (drag-and-drop bulk upload with duplicate detection, captions, reorder, hide, move, delete,
  cover, add to slideshow); Slideshow (upload, replace, reorder, pick from gallery); Messages (inbox, CSV export);
  Settings & Email (site settings, Zelle, EIN, SMTP written to `settings.ini`, test email); Admin Users;
  Activity Log; Backup (zip of database + settings + photos).

**Deployment**
- `settings.ini` (port 8085 by default, SMTP, base URL, secret key auto-generated), gunicorn config, systemd
  unit, nginx config with Let's Encrypt instructions, `import-content` / `create-admin` / `reset-password` CLI.
