Skip to content

Feature/admin - #6

Merged
amide-init merged 6 commits into
mainfrom
feature/admin
Feb 21, 2026
Merged

Feature/admin#6
amide-init merged 6 commits into
mainfrom
feature/admin

Conversation

@amide-init

Copy link
Copy Markdown
Owner

No description provided.

- Add a new AdminPage component to allow repository admins to edit `gitforge.config.json` directly from the browser.
- Integrate GitHub OAuth Device Flow for authentication, enabling secure access to the admin panel.
- Update routing to include the `/admin` path for the new admin interface.
- Enhance README with instructions for setting up the admin panel and configuring environment variables.
- Modify Vite configuration to proxy GitHub OAuth endpoints, addressing CORS issues.
- Update `.env.example` to include new environment variables for GitHub OAuth integration.
- Add new API functions for managing GitHub interactions related to the admin panel.
…cation

- Change button text from 'Opening GitHub…' to 'Signing in…' for clarity.
- Add a message to inform users to return to the tab after authorizing in another tab, enhancing user experience during the authentication process.
- Adjust condition to display the form when the viewState is 'ready' or 'saving', allowing for better handling of the admin panel state.
- Introduce new hooks for managing authentication and configuration state, enhancing code reusability and clarity.
- Create dedicated components for various admin functionalities, including custom links, featured repositories, and hero section management.
- Implement utility functions for cleaning and parsing configuration data, ensuring data integrity before API interactions.
- Update AdminPage to utilize new hooks and components, streamlining the admin interface and improving user experience during configuration management.
- Refactor AdminPage to include nested routes for configuration management, projects, blogs, videos, and posts, enhancing navigation within the admin interface.
- Introduce new AdminConfigPage and AdminPlaceholderPage components to manage specific content types, providing a clearer structure for future development.
- Implement AdminLayout, AdminNavbar, and AdminSidebar components to streamline the admin panel's layout and improve user experience.
- Update authentication context management to encapsulate admin state and actions, promoting better state handling across components.
- Introduce new data files: blogs.json, posts.json, and projects.json to store content.
- Implement custom hooks (useBlogsStore, usePostsStore, useProjectsStore) for managing state and API interactions for blogs, posts, and projects.
- Create AdminBlogsPage, AdminPostsPage, and AdminProjectsPage components for content management within the admin panel.
- Enhance routing in main.tsx to include new admin pages for better navigation.
- Update GitHub API functions to handle fetching and updating content for blogs, posts, and projects.
- Define content types in a new contentTypes.ts file for better type safety and clarity.
…practices

- Modify .gitignore to clarify that environment variables should never be committed, emphasizing the importance of keeping sensitive information secure.
- Enhance README with detailed steps for creating an OAuth App and adding GitHub Actions secrets, improving clarity for users setting up the admin panel.
- Introduce SECURITY.md to outline a security checklist, specifying files that should never be committed and providing guidance on managing secrets in GitHub Actions.
@amide-init
amide-init merged commit 013c00d into main Feb 21, 2026
@amide-init
amide-init deleted the feature/admin branch February 21, 2026 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant