From a7987ab9228f7841fb4c8148969be98b5e52edae Mon Sep 17 00:00:00 2001 From: Vishesh 'ironeagle' Bangotra Date: Thu, 20 Nov 2025 17:00:26 +0530 Subject: [PATCH] feat(core): migrate articles to ArticlesModel, add URL-synced view routing, and unify component props Summary Introduced ArticlesModel abstraction with list + map store for fast lookup and clean CRUD operations. Replaced all array-based article access with model methods (readById, create, update, refresh). Added utils/articles.ts with pure functions for list/map operations. Updated ArticleProvider to use the new model API and avoid mutation issues. Added URL-synced navigation (pushState) + VIEW_URL mapping for deep-linkable routes. Implemented route parsing on load (/articles/:id) to auto-open article view. Standardized openArticle to pass full ArticleModel instead of index. Updated all ArticleCard components to use article object instead of index. Added navigationMap to view router for custom child navigation names. Extracted shared styles to types/styles.ts and replaced old inline styled components. Updated props definitions for Login, Register, Profile, ArticleView, MainContent, ArticleGrid. Removed React.StrictMode wrapper to avoid double-effects during development. Release: 0.2.5 Type: Feature + Refactor + Routing upgrade --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 133e072..e82d80d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aetoskia-blog-app", - "version": "0.2.4", + "version": "0.2.5", "private": true, "scripts": { "dev": "vite",