Feature/admin - #6
Merged
Merged
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.