آيات الأرقم
AyyatAlArqam
تَعَاهَدُوا الْقُرْآنَ
هذا العمل خالص لوجه الله. اللهم ثبتنا على ذلك.
بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ
كل ما تم تحديثه وإضافته في آيات الأرقم — منصة تتبع حفظ القرآن للعائلات والحلقات
عرض ١٤١–١٦٠ من أصل ٢٠٠ إصدار
Group Co-Ownership: group owners can now invite co-owners by profile code from the Edit Group modal (المشرفون المشتركون section). Co-owners get full management access (members, progress, invites, messages, group settings) except they cannot delete the group. New `group_owners` table; `current_user_owns_group()` updated to include co-owners; all ownership-gated RLS policies now use the helper. Co-owned groups appear in the dashboard with a "مشرف مشارك" badge. API route at `/api/group-coowners` (GET list + POST add by profile code); removal is direct client-side via RLS.
Member add/edit forms now use the same EmojiPicker component as groups (popover grid of 50 emojis + custom input), replacing the old flat inline grid. EmojiPicker extracted to a shared component at components/ui/EmojiPicker.tsx.
Groups tab: group cards now show metadata chips (location, family flag, age group, level, type tags, schedule) below the description; group detail view replaces the plain description line with a styled info card showing all metadata as teal/gold chips.
Group modals UX improvements: emoji field replaced with a picker (grid of 30 preset emojis + custom input); info tooltip added beside the "مجموعة عامة" toggle explaining public visibility; info tooltip added beside the "أضف نفسي كعضو" toggle explaining its purpose. Both create and edit modals updated.
Create group modal now includes the "معلومات المجموعة (اختياري)" section (country, city, schedule, age group, level, group type tags, family group toggle) matching the edit group modal. Both modals are now scrollable for small screens.
Fix login: server action + captcha instant render. `signInWithPassword` moved to a Server Action (`actions.ts`) so Supabase sets the session cookie in the HTTP response before the redirect, eliminating the middleware bounce-back-to-login bug. MathCaptcha switched from `useState(null)` + `useEffect` to `useState(() => makeNums())` so the math question renders immediately with no "..."/`؟` flash. PWA splash screen updated to show both "آيات الأرقم" and "AyyatAlArqam" labels.
Group Rich Profiles: added 7 nullable metadata columns to the `groups` table (country, city, schedule, age_group, level, group_type[], is_family_group). EditGroupModal gains a "معلومات المجموعة" section with inputs for all new fields. Group public profile page (`/groups/[slug]`) displays metadata as teal chips (family flag, age group, level, type tags, location) and a schedule line. Groups search page (`/groups`) adds three filter dropdowns (age group, level, type) that narrow the live results.
SEO: Arabic keyword optimization across all public pages. Wove target keywords (تتبع حفظ القرآن، برنامج تحفيظ القرآن، حلقات التحفيظ، متابعة حفظ القرآن، العائلات والحلقات) naturally into meta descriptions, OG descriptions, and the landing page hero text (ar.json). Updated root layout, about, guide, groups, compare, and login pages.
SEO: per-page metadata across all public pages. Added `title` (short form, template-aware), `description` (150-char compelling Arabic), `openGraph`, and `alternates.canonical` to About, Guide, Contact, Privacy, Terms, Groups, Compare, Login, Reset-password, and Sitemap pages. Fixed title template separator from `|` to `—` to match existing style. Homepage gains its own `canonical` tag.
SEO: professional Google search result. Added `metadataBase` so OG image URLs resolve correctly; upgraded meta `description` to a compelling 150-char Arabic sentence (was a short cryptic Hadith fragment Google was ignoring); added full `openGraph` block (title, description, siteName, image, locale, type) and `twitter` card; expanded `icons` to explicitly list favicon.ico + 96/192px PNGs so Google picks up the logo; created `app/sitemap.ts` (generates `/sitemap.xml`) and `app/robots.ts` (generates `/robots.txt` with disallow for private routes + sitemap pointer); added JSON-LD `WebSite` schema with `SearchAction` to the landing page for rich results.
PWA title fix: rename app from "آيات" / "آيات الأرقم" to "AyyatAlArqam" across all PWA surfaces. Updated `name` and `short_name` in `manifest.ts`, `metadata.title` and `appleWebApp.title` in root layout, and the in-page JS splash text; bumped service worker cache to `ayyat-v7` so existing installs pick up the new manifest on next visit.
Add `AyyatApp.md`: complete, detailed plan for a native iOS + Android mobile app. Recommends React Native + Expo + Supabase JS, reusing the existing Supabase backend untouched (RLS as the security boundary) and porting the brand design system, fonts, Quran data, types, and i18n from the web repo. Covers the tech-stack decision (vs. Flutter/native/PWA/Capacitor), architecture, a full feature-parity map, offline-first memorization via a write outbox, push notifications (additive `device_tokens` table + `notify-group` Edge Function + DB webhook), RTL handling, navigation/screen map (phone tabs / tablet master-detail), auth incl. Sign in with Apple for store compliance, EAS build/submit + store requirements, testing, security, a 6-phase ~3–3.5-month roadmap, costs, risks, and open decisions. Planning doc only — no app code.
Fix PWA cold-launch black screen. The installed app's `start_url` was `/`, so every launch redirected `/` → `/dashboard` (auth round-trip) and then server-rendered the dashboard (second auth round-trip + ~5 Supabase queries) before any HTML painted — a multi-second blank/black webview. New lightweight `/launch` entry point (`app/launch/`) does zero server work, so its cream splash HTML arrives almost instantly, then it client-redirects to `/dashboard`; `manifest.ts` `start_url` now points there (with explicit `scope: '/'`). Also replaced the invalid iOS `startupImage` (a 180×180 icon, which iOS silently ignored → black launch) with properly-sized cream launch images per iPhone class under `public/icons/splash/`, wired via `appleWebApp.startupImage` media queries. Note: Android re-reads the manifest automatically; iOS only picks up the new `start_url`/splash images after the PWA is removed and re-added to the home screen.
Performance: faster landing page + PWA launch. Landing page (`/`) homepage counters now come from a cross-request cache (`getLandingStats` via `unstable_cache`, revalidated every 10 min) instead of running ~5 DB queries — including a full scan of the `progress` table to sum ayahs — on every visit; removed the redundant `supabase.auth.getUser()` from the landing page (middleware already redirects logged-in users away from `/`). Service worker bumped to `ayyat-v6` and now serves immutable, content-hashed `/_next/static/` build assets (JS/CSS/fonts) cache-first in production — repeat PWA launches load the app shell from cache instead of re-downloading megabytes of JS (navigation/RSC requests still pass through to the network, dev origins excluded so hashed-filename reuse can't serve stale chunks). Dashboard server fetch collapses the query waterfall: ribbon/social/profile fold into the first parallel batch, and the linked-groups fetch runs in parallel with the own-member inference. Dropped the unused IBM Plex Sans Arabic weight 300 (one fewer preloaded font file).
Dashboard group/member improvements: "أضف نفسي كعضو" toggle in CreateGroupModal auto-creates a member named after the owner's display name and links it via member_access so owners can track their own progress immediately (own-member id wired live into state on creation); two-step delete confirmation in EditGroupModal (warning → "ستُفقد جميع البيانات نهائياً — اضغط للتأكيد"); Shaikh group creation limit raised 5→6 (GROUP_LIMITS + profile role description); group activity feed now reads from append-only progress_activity table (ordered by created_at) instead of progress, with an activity row inserted on every member progress save in GroupsView; improved owner own-member inference in dashboard page (excludes members claimed by other users, falls back to most recent activity); added AboutAyyatAlArqam.md project overview doc
Update PWA/home-screen icons to new logo: refreshed icon-96/192/512 and apple-touch-icon under public/icons/, added dedicated maskable icons (icon-192-maskable, icon-512-maskable) wired into manifest with proper any/maskable purposes, updated app/apple-icon.png for iOS home screen; bumped service worker cache to ayyat-v5 to evict old icons; browser tab favicon (app/favicon.ico + app/icon.png) intentionally left unchanged
Add salawat (اللهم صل على نبينا محمد) at the bottom of AppFooter in gold Amiri Quran font with tashkeel
Version reset to 3.0.0.0 as a clean starting point
Surah Reading Counter (ختمة السورة): new `surah_reads` table (insert-only, one row per confirmed read); "ختمت هذه السورة" button in surah modal with gold confirmation dialog and the full Arabic reminder text; read count badge (📖 ×N) on surah cards when count > 0; count loads on dashboard mount for own member and on member-open in groups view; owner can also log reads when editing a member's progress
Role change request system: users can request role upgrades (teacher/shaikh/moderator) from the profile page with a reason message; new admin review page at /admin/role-requests (approve/reject with optional message); POST /api/role-request + PATCH /api/admin/role-requests/[id] API routes; role_change_requests table with full RLS; schema additions: groups.emoji column, progress prev_* columns (prev_ayahs_memorized, prev_quality, prev_is_memorizing_now) and updated_by* for activity tracking; new SecondaryNav component; FooterLangToggle component; ProfileCodeSearch on public profile private/not-found page; reset-password page split into ResetPasswordClient.tsx; dashboard cleanup: removed inline messages panel and activities view from right panel