Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/admin docs refactor/admin-doc to hashura docs style #3100

Conversation

bint-Eve
Copy link

@bint-Eve bint-Eve commented Dec 31, 2024

What kind of change does this PR introduce?

This PR introduces completion of first part of issue #2970

  1. Created the identical navbar for admin-doc web
  2. Light/Dark mode implementations
  3. Matching Hashura's modern look
  4. implementation of consistency of css all over the website to make it look similar to other talawa's webs
  5. Homepage header design start

Issue Number:
Fixes #2970

Did you add tests for your changes?

No, no testing need. Manual visual testing was done.

Snapshots/Videos:
Screenshot (117)
Screenshot (118)
Screenshot (119)

If relevant, did you update the documentation?
No, Documentation update not applicable here

Summary
This PR is a start to build a whole new doc web for talawa-admin, emphasis was given on giving the website similar look to hashura's website and to keep consistence css (color scheme, fonts and typography) all over the web

Does this PR introduce a breaking change?
No

Other information

  1. The changes have been done for cross-browser compatibility.
  2. The modifications in the docosaurus.config.js were necessary to build navbar
  3. There was no existing left drawer menu items in the docs/ URI of the website and search capabilities to be removed

Have you read the contributing guide?
Yes

Summary by CodeRabbit

  • New Features

    • Updated documentation branding with new tagline and favicon
    • Enhanced navigation structure with comprehensive community and social media links
  • Style

    • Comprehensive CSS overhaul with new color variables
    • Improved responsive design and dark mode styling
    • Simplified homepage header design
  • Documentation

    • Updated configuration to reflect current organizational branding
    • Added more detailed navigation options for different guides

Copy link

Our Pull Request Approval Process

Thanks for contributing!

Testing Your Code

Remember, your PRs won't be reviewed until these criteria are met:

  1. We don't merge PRs with poor code quality.
    1. Follow coding best practices such that CodeRabbit.ai approves your PR.
  2. We don't merge PRs with failed tests.
    1. When tests fail, click on the Details link to learn more.
    2. Write sufficient tests for your changes (CodeCov Patch Test). Your testing level must be better than the target threshold of the repository
    3. Tests may fail if you edit sensitive files. Ask to add the ignore-sensitive-files-pr label if the edits are necessary.
  3. We cannot merge PRs with conflicting files. These must be fixed.

Our policies make our code better.

Reviewers

Do not assign reviewers. Our Queue Monitors will review your PR and assign them.
When your PR has been assigned reviewers contact them to get your code reviewed and approved via:

  1. comments in this PR or
  2. our slack channel

Reviewing Your Code

Your reviewer(s) will have the following roles:

  1. arbitrators of future discussions with other contributors about the validity of your changes
  2. point of contact for evaluating the validity of your work
  3. person who verifies matching issues by others that should be closed.
  4. person who gives general guidance in fixing your tests

CONTRIBUTING.md

Read our CONTRIBUTING.md file. Most importantly:

  1. PRs with issues not assigned to you will be closed by the reviewer
  2. Fix the first comment in the PR so that each issue listed automatically closes

Other

  1. 🎯 Please be considerate of our volunteers' time. Contacting the person who assigned the reviewers is not advised unless they ask for your input. Do not @ the person who did the assignment otherwise.
  2. Read the CONTRIBUTING.md file make

Copy link
Contributor

coderabbitai bot commented Dec 31, 2024

Walkthrough

This pull request introduces comprehensive updates to the Talawa Admin documentation website's configuration and styling. The changes focus on modernizing the documentation's appearance and navigation structure by updating the Docusaurus configuration, revamping the CSS variables, and simplifying the homepage layout. The modifications aim to create a more professional and intuitive documentation experience with improved branding and visual design.

Changes

File Change Summary
docs/docusaurus.config.ts - Updated tagline and favicon
- Restructured themeConfig with new navbar and footer configurations
- Added colorMode configuration
docs/src/css/custom.css - Replaced Infima color scheme variables
- Added new CSS variables for colors and styling
- Introduced dark mode styles
- Added media queries for responsive design
docs/src/pages/index.tsx - Simplified HomepageHeader component
- Removed tutorial link button

Assessment against linked issues

Objective Addressed Explanation
Update site CSS to be more modern
Restore dark/light mode capabilities
Update NavBar with specific documentation links Partial implementation requires cross-site coordination
Simplify homepage layout

Possibly related PRs

Suggested labels

ignore-sensitive-files-pr

Suggested reviewers

  • palisadoes

Poem

🐰 Docusaurus hopping with glee,
Styling pages, setting docs free!
CSS variables dance and shine,
A rabbit's touch, now so divine!
Documentation's new frontier! 🌈

Tip

CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command @coderabbitai generate docstrings to have CodeRabbit automatically generate docstrings for your pull request. We would love to hear your feedback on Discord.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
docs/src/css/custom.css (2)

9-47: New CSS variables for custom theming.

  1. The redefined color palette (e.g., --secondary-blue-900, --sidebar-bg-color, etc.) is more descriptive. Make sure these semantic names (e.g., --primary-neutral-800) are intuitive across larger sections of the code.
  2. Confirm that the chosen color tokens are consistent with the brand guidelines (palisadoesfoundation).

78-150: Global UI element styling updates.

Blocks of styling for code highlighting, table-of-contents font sizes, navbar backgrounds, hover states, etc., reflect a push for a cohesive visual identity. Verify that no critical Infima or Docusaurus classes are inadvertently overridden, especially for large tables or multi-column layouts.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a52c095 and ed23e85.

⛔ Files ignored due to path filters (12)
  • docs/static/img/icons/facebook.svg is excluded by !**/*.svg
  • docs/static/img/icons/favicon_palisadoes.ico is excluded by !**/*.ico
  • docs/static/img/icons/github-dark.svg is excluded by !**/*.svg
  • docs/static/img/icons/github.svg is excluded by !**/*.svg
  • docs/static/img/icons/instagram.svg is excluded by !**/*.svg
  • docs/static/img/icons/opportunities.svg is excluded by !**/*.svg
  • docs/static/img/icons/slack.svg is excluded by !**/*.svg
  • docs/static/img/icons/source.svg is excluded by !**/*.svg
  • docs/static/img/icons/team.svg is excluded by !**/*.svg
  • docs/static/img/icons/twitter.svg is excluded by !**/*.svg
  • docs/static/img/icons/youtube-white.svg is excluded by !**/*.svg
  • docs/static/img/icons/youtube.svg is excluded by !**/*.svg
📒 Files selected for processing (3)
  • docs/docusaurus.config.ts (2 hunks)
  • docs/src/css/custom.css (1 hunks)
  • docs/src/pages/index.tsx (1 hunks)
🔇 Additional comments (7)
docs/src/pages/index.tsx (1)

13-13: Streamlined header style.

The removal of the hero hero--primary classes in favor of styles.heroBanner is fine if the new class definition ensures consistent styling across different themes (e.g. dark mode). Verify that no Docusaurus built-in styles are lost that were previously provided by the removed classes.

docs/docusaurus.config.ts (2)

9-10: Tagline and favicon updates.

The new tagline more clearly communicates the scope of the documentation. Also, switching to a custom favicon is a good branding move. Just confirm that the updated path img/icons/favicon_palisadoes.ico is correct and that the icon renders as expected.


48-172: Extensive theme configuration enhancements.

  1. The updated navbar items (General, Mobile Guide, Admin Guide, API Guide, Demo, etc.) offer clear entry points. Double-check that all target links (like docs-mobile.talawa.io, docs-api.talawa.io) are valid and do not produce redirect errors.
  2. Including color mode handling (light/dark toggling) shows a user-centric design. Ensure that the dark mode palette defined in the CSS file corresponds correctly to these settings.
  3. The new footer social links and community sections are more comprehensive. Confirm that these links are all functional and accurate (e.g., Slack, Twitter, etc.).
docs/src/css/custom.css (4)

5-5: Infima variable overrides note.

This comment line indicates the intention to override default Infima variables. Ensure that your newly introduced variables comprehensively replace the old color definitions (e.g., --ifm-color-primary, etc.) and that no references to the removed variables remain in the codebase.


49-76: Dark mode style variables.

You’ve introduced specific overrides (e.g., --ifm-background-color, --ifm-color-content) ensuring good contrast in dark mode. Review that text, borders, and backgrounds remain accessible under common color-blindness scenarios (e.g., use additional checks or tools to confirm).


211-242: Custom icon usage in the header links.

You’re loading custom SVG icons for GitHub, Twitter, YouTube, etc. Confirm that the icons exist at the specified paths (e.g. /img/icons/github-dark.svg), and that their backgrounds look correct in both light and dark modes.


244-424: Footer theming and responsive design.

  1. The .footer--dark override plus the link-based custom icons are consistent with the new palette. Double-check that external link usage (e.g., Slack, Facebook, Instagram) is functional.
  2. The media queries properly handle responsive layouts for smaller viewports. Confirm that brand buttons (YouTube, GitHub) and navbar items display as intended on phones and tablets.

@palisadoes palisadoes added the ignore-sensitive-files-pr The contributor has a legitimate reason for editiing protected files label Dec 31, 2024
Copy link

codecov bot commented Dec 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.25%. Comparing base (6349f3f) to head (ed23e85).
Report is 12 commits behind head on develop-postgres.

Additional details and impacted files
@@                  Coverage Diff                  @@
##           develop-postgres    #3100       +/-   ##
=====================================================
+ Coverage             26.39%   89.25%   +62.85%     
=====================================================
  Files                   301      322       +21     
  Lines                  7588     8421      +833     
  Branches               1657     1839      +182     
=====================================================
+ Hits                   2003     7516     +5513     
+ Misses                 5454      670     -4784     
- Partials                131      235      +104     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@palisadoes palisadoes merged commit 04d773a into PalisadoesFoundation:develop-postgres Dec 31, 2024
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore-sensitive-files-pr The contributor has a legitimate reason for editiing protected files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants