Skip to content

vs-branch-6 #33

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

Merged
merged 22 commits into from
Apr 13, 2025
Merged

vs-branch-6 #33

merged 22 commits into from
Apr 13, 2025

Conversation

VatsalSy
Copy link
Member

  • Optimize styles for better performance and maintainability
  • Refine icon color styles for header navigation
  • Improve article image credit styling
  • Style social icons and GitHub icon in dark mode
  • Enhance social media icon styles and hover effects
  • Enhance tag styles for dark mode
  • Improve active tag styling and behavior
  • Add platform detection and UI utilities
  • Update icon color to improve visibility
  • Enhance icon styling in header and footer
  • Improve dark mode styling for command palette
  • Add keyboard shortcuts help command
  • Extract platform detection and update logic
  • Adjust social media icon colors in footer

Copy link
Contributor

coderabbitai bot commented Apr 13, 2025

Warning

Rate limit exceeded

@VatsalSy has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 3 minutes and 54 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between ed3c21a and 0563aa1.

📒 Files selected for processing (5)
  • .github/assets/js/shortcut-key.js (1 hunks)
  • assets/css/command-palette.css (11 hunks)
  • assets/css/styles.css (27 hunks)
  • assets/css/team.css (3 hunks)
  • assets/js/platform-utils.js (1 hunks)
📝 Walkthrough

Summary by CodeRabbit

  • New Features

    • Enabled dynamic icon loading and improved keyboard shortcut handling.
    • Introduced platform-specific UI adjustments for a tailored user experience.
  • Bug Fixes

    • Removed an outdated keyboard shortcut help command from the command palette.
  • Style

    • Refined visual elements including image credits, command palette themes, tag appearances, and social icon styling.
    • Standardized colors and responsiveness with updated CSS variables and enhanced dark mode support.

Walkthrough

This update spans several areas of the project. A pair of new JavaScript files were added: one to dynamically load Font Awesome stylesheets with robust error handling, and another to detect the user’s platform and adjust UI element visibility accordingly. Multiple HTML layout files now include these scripts and feature refactored Font Awesome loading routines. CSS files received comprehensive dark theme refinements, new CSS variables, and improved styling rules. Documentation has been enhanced with a revised code style guide, directory updates, and file renamings, and a command entry was removed from the command palette.

Changes

File(s) Summary
.github/.../shortcut-key.js
assets/js/platform-utils.js
New JavaScript utilities: One file listens for DOMContentLoaded to load Font Awesome stylesheets dynamically using a constant FA_VERSION and error callbacks; the other introduces isMacPlatform() and updatePlatformSpecificElements() for platform-based UI adjustments.
_layouts/default.html
_layouts/research.html
_layouts/teaching-course.html
_layouts/teaching.html
_layouts/team.html
HTML layout updates: Added new <script> references for the JavaScript utilities; refactored Font Awesome stylesheet loading via a dedicated loadStylesheet function; and applied additional modifications for active tag handling and dark mode styling.
assets/css/command-palette.css
assets/css/research.css
assets/css/styles.css
assets/css/team.css
CSS modifications: Updated dark theme styles, introduced new CSS variables for core colors, spacing, shadows, transitions, and refined styling for team social icons and research tags.
News.md
README.md
Documentation updates: Adjusted styling in News.md (using CSS variables and opacity) and overhauled README.md with directory changes, a comprehensive code style guide, and an explanation of CSS architecture improvements and file renamings.
assets/js/command-data.js Command update: Removed the "help" command from the command data array, disabling the keyboard shortcut help display functionality.

Sequence Diagram(s)

sequenceDiagram
    participant DOM as DOMContentLoaded
    participant LS as loadStylesheet()
    participant HEAD as document.head
    participant CONSOLE as console

    DOM->>LS: Trigger font loading
    LS->>HEAD: Create & append <link> element (using FA_VERSION)
    alt Stylesheet loads successfully
        LS--)HEAD: Stylesheet added
    else Loading fails
        LS-->>CONSOLE: Log error message
    end
Loading
sequenceDiagram
    participant DOM as DOMContentLoaded
    participant PU as updatePlatformSpecificElements()
    participant IP as isMacPlatform()
    participant UI as Document UI

    DOM->>PU: Trigger UI update
    PU->>IP: Check platform via navigator.platform
    IP-->>PU: Return Mac/Non-Mac boolean
    PU->>UI: Show/hide elements (.mac-theme-text, .default-theme-text)
Loading

Poem

I’m a hopping rabbit with code so spry,
Leaping through updates as new features fly.
Stylesheets load like magic on DOM’s command,
And platform checks make the UI simply grand.
May these changes hop along with grace—
A joyful code dance in every place! 🐇✨


🪧 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.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @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.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

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 (3)
assets/js/platform-utils.js (1)

1-1: Remove redundant 'use strict' directive

Modern JavaScript modules are automatically in strict mode, making this directive unnecessary.

-'use strict';
🧰 Tools
🪛 Biome (1.9.4)

[error] 1-1: Redundant use strict directive.

The entire contents of JavaScript modules are automatically in strict mode, with no statement needed to initiate it.
Safe fix: Remove the redundant use strict directive.

(lint/suspicious/noRedundantUseStrict)

README.md (1)

473-481: Addition of Code Style Guidelines
The new “Code Style” section clearly outlines general conventions (2‑space indentation, DRY principles, semantic HTML, BEM naming, etc.) for HTML/Markdown, CSS, and JavaScript. This comprehensive guide should help maintain consistency across the project. One minor suggestion from static analysis: consider revising phrases (for example, “use semantic HTML elements” instead of “use semantic HTML elements”) to fix any missing articles.

assets/css/styles.css (1)

124-186: Refined Social Media Icon Styling for Consistency
Numerous selectors now detail social media icon styling. From the enforced white text for dark mode on GitHub, LinkedIn, Twitter, Wikipedia, etc., to specific exceptions for colored icons (e.g. Bluesky), these rules create a cohesive appearance across different platforms. (A note: Consider reducing reliance on !important where possible.)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 03f6849 and ed3c21a.

📒 Files selected for processing (14)
  • .github/assets/js/shortcut-key.js (1 hunks)
  • News.md (1 hunks)
  • README.md (2 hunks)
  • _layouts/default.html (2 hunks)
  • _layouts/research.html (6 hunks)
  • _layouts/teaching-course.html (2 hunks)
  • _layouts/teaching.html (3 hunks)
  • _layouts/team.html (3 hunks)
  • assets/css/command-palette.css (11 hunks)
  • assets/css/research.css (1 hunks)
  • assets/css/styles.css (34 hunks)
  • assets/css/team.css (3 hunks)
  • assets/js/command-data.js (0 hunks)
  • assets/js/platform-utils.js (1 hunks)
💤 Files with no reviewable changes (1)
  • assets/js/command-data.js
🧰 Additional context used
🪛 Biome (1.9.4)
assets/js/platform-utils.js

[error] 1-1: Redundant use strict directive.

The entire contents of JavaScript modules are automatically in strict mode, with no statement needed to initiate it.
Safe fix: Remove the redundant use strict directive.

(lint/suspicious/noRedundantUseStrict)

🪛 LanguageTool
README.md

[uncategorized] ~482-~482: You might be missing the article “the” here.
Context: ...n - Use semantic HTML elements - Follow BEM naming convention for CSS classes (e.g....

(AI_EN_LECTOR_MISSING_DETERMINER_THE)


[grammar] ~483-~483: Did you mean the formatting language “Markdown” (= proper noun)?
Context: ...der__nav-list`) - Keep content files in markdown format where possible #### CSS - Use C...

(MARKDOWN_NNP)


[duplication] ~517-~517: Possible typo: you repeated a word.
Context: ...nified effects 2. Consolidated Media Queries - Queries organized by breakpoint rather than by ...

(ENGLISH_WORD_REPEAT_RULE)

🔇 Additional comments (60)
.github/assets/js/shortcut-key.js (1)

1-20: Well-structured Font Awesome loading implementation with good error handling!

This is a well-organized approach to dynamically loading Font Awesome stylesheets. The code includes:

  • Extracting the version to a constant for easier maintenance
  • Robust error handling via the onerror callback
  • A clean, reusable function for stylesheet loading

The comments about platform detection being handled elsewhere are also helpful for maintaining clear separation of concerns.

News.md (1)

16-16: Improved styling with CSS variables for better theme compatibility

Updating the image credits styling from a hardcoded color value to var(--color-text) with opacity improves theme compatibility, particularly for dark mode. This change ensures consistent styling across different themes while maintaining visual hierarchy.

_layouts/default.html (2)

95-96: Good modularization of platform utilities and Font Awesome loading

Adding dedicated scripts for platform detection and Font Awesome loading improves code organization and maintainability. The use of the defer attribute is appropriate for these scripts as they don't need to block rendering.


140-155: Well-refactored Font Awesome loading with improved error handling

This refactoring improves the codebase by:

  1. Extracting the version to a constant for easier maintenance
  2. Adding proper error handling for stylesheet loading failures
  3. Creating a reusable function for consistent stylesheet loading

These changes make the code more robust and easier to maintain.

assets/js/platform-utils.js (3)

3-9: Clear and well-documented platform detection function

The isMacPlatform function is well-documented with JSDoc comments and implements a straightforward approach to detect Mac platforms.


11-25: Good separation of concerns for platform-specific UI updates

The updatePlatformSpecificElements function cleanly handles the visibility of platform-specific elements based on the detected platform. This approach makes platform-specific UI adjustments consistent across the application.


27-32: Proper initialization and global exposure of utility functions

The code correctly initializes platform-specific updates when the DOM is loaded and exports functions to the global scope for use in other scripts. This allows for modular implementation while maintaining cross-script functionality.

assets/css/research.css (3)

640-647: Dark Mode – Top Filter Tags Styling
The new rules explicitly set the background, text, and border for top filter tags in dark mode with the !important flag. This ensures that these styles take precedence over any conflicting styles. Please verify that the use of !important is consistent with your overall CSS strategy.


648-653: Dark Mode – Top Filter Tags Hover State
The hover state for the top filter tags is now defined to change the background and border color. The use of !important should robustly override other styles. Double-check that the new hover colors maintain sufficient contrast and visual consistency.


654-663: Dark Mode – Active Tag Styling
The updated active tag styles with a scale transformation and box-shadow should enhance focus feedback in dark mode. The explicit !important declarations help maintain consistency, but please ensure these overrides do not conflict with other active state styles elsewhere in the project.

_layouts/teaching-course.html (1)

141-157: Platform-Specific Font Awesome Loader
The new loadStylesheet function encapsulates the logic for dynamically loading Font Awesome stylesheets on localhost with robust error handling. Storing the Font Awesome version in the FA_VERSION constant is a sound approach for easier maintenance. Please verify that all relevant layouts are updated to use this mechanism.

assets/css/team.css (14)

10-11: New CSS Variable for Team Icon (Light Mode)
The addition of --team-icon-color: #333333; in the root ensures a centralized definition of the icon color for light mode. This promotes consistency across social icon styling on the team page.


21-22: New CSS Variable for Team Icon (Dark Mode)
Defining --team-icon-color: #ffffff; in the dark mode block simplifies theme-specific styling for social icons. This clear separation aids maintainability and theming consistency.


215-223: Baseline Social Icons Styling
The block setting basic styles for .team-member .fa and .team-member .ai (display, margin, font size, and color via the new variable) helps standardize the appearance of social icons. The transition for color and transform is a nice touch for interactivity.


225-232: Social Media Icons – Specific Styling
The rules for specific selectors (GitHub, LinkedIn, X-Twitter, Bluesky, Wikipedia) enforce a uniform color using var(--team-icon-color) with !important. This targeted override should ensure consistency but double-check that it does not conflict with any inline styles or external overrides.


234-238: Colored Icon – Bluesky
The explicit override for .team-member .fa-bluesky sets its color to #0085ff, which differentiates it from the generic icon styling. This appears intentional for brand recognition.


239-243: Colored Icon – LinkedIn
Setting the LinkedIn icon color to #0077b5 and increasing its font size to 1.7em helps emphasize this social channel. This specific styling should be reviewed for consistency with other social icons.


244-247: Colored Icon – X (Twitter)
The rule for .team-member .fa-x-twitter sets a fixed black color, which might work well in light mode. Just ensure that the dark theme override later properly addresses any contrast issues.


248-252: Colored Icon – Wikipedia
The Wikipedia icon is styled with a black color and a slightly smaller font size (1.4em) to harmonize with its design. Verify that these choices are visually coherent with the rest of the icon set.


253-261: Dark Theme – Generic Social Icons Override
This block overrides the color of all specified social icons to white in dark mode. This is an effective way to ensure legibility against dark backgrounds.


262-265: Dark Theme – Bluesky Icon Override
Here the Bluesky icon’s color is reset to #0085ff even in dark mode, preserving its brand identity.


266-269: Dark Theme – LinkedIn Icon Override
The dark mode override for the LinkedIn icon reasserts the brand color (#0077b5). This maintains visual consistency across themes.


270-274: Dark Theme – X (Twitter) and Wikipedia Icon Override
Resetting the X and Wikipedia icons to white in dark mode ensures they remain visible against dark backgrounds.


275-281: Social Icons Hover Effects
The hover styles introduce a slight upward translation and reduced opacity for an interactive feel. These subtle animations should enhance user feedback without being distracting.


283-290: Centering Social Links
The rule for centering social links using flexbox on the container immediately following an h2 helps ensure proper alignment and spacing. The use of !important guarantees that this centering is enforced.

_layouts/team.html (2)

114-115: Platform Utils Script Inclusion
Adding <script defer src="/assets/js/platform-utils.js"></script> streamlines the injection of platform-specific UI behaviors. This change enhances modularity and should simplify future maintenance.


157-172: Localhost – Font Awesome Loader Block
The new block that conditionally loads Font Awesome stylesheets on localhost using the loadStylesheet function (with error handling and version extraction via FA_VERSION) boosts the robustness of asset loading in the development environment. Please verify that production paths remain unaffected.

_layouts/teaching.html (2)

84-85: Platform Utils Script Inclusion for Teaching Layout
Including <script defer src="/assets/js/platform-utils.js"></script> in the teaching layout centralizes platform-specific behavior, which improves code organization and maintainability.


134-150: Localhost – Font Awesome Loader Block in Teaching Layout
The new conditional block that loads Font Awesome stylesheets when on localhost—using the loadStylesheet function and a constant FA_VERSION—ensures improved error handling and simpler future version updates. The approach is clear and modular.

_layouts/research.html (8)

64-65: Light Mode Tag Text Color
Explicitly setting the text color to #333333 for both tags span and tags a.tag-link improves readability and enforces a consistent look in light mode.


66-70: Dark Mode Tag Styling
The dark theme now defines tags with a dark background (#2a2a30), white text, and a subtle border. This clear contrast will help tags stand out in dark mode.


74-76: Dark Mode Hover State for Tags
Specifying a slightly lighter background (#3a3a40) on hover in dark mode provides users with effective visual feedback.


81-84: Dark Mode Active State Styling
Active tag elements now automatically receive a background color of #4d8dff with white text, which ensures a clearly defined state in dark mode.


167-167: Inclusion of Platform Utilities Script
Adding <script defer src="/assets/js/platform-utils.js"></script> at the end of the header centralizes platform‐detection and UI utilities. This modular approach will make future enhancements easier.


211-221: Robust Stylesheet Loader Function
The new loadStylesheet() function (lines 211–221) encapsulates stylesheet creation including error handling. This refactor improves maintainability and isolates external dependency loading.


222-222: Centralized Font Awesome Versioning
Extracting the Font Awesome version into a constant (FA_VERSION = '6.7.2') simplifies future updates by centralizing the version number.


224-226: Dynamic Loading of Font Awesome Files
Calling loadStylesheet() with URLs based on the FA_VERSION constant ensures a robust, version‐controlled load of Font Awesome’s solid, brands, and fontawesome stylesheets.

README.md (3)

41-42: New JavaScript Files for Enhanced Functionality
The file structure now includes both platform-utils.js for platform detection/UI utilities and shortcut-key.js for dedicated keyboard shortcut handling. This clear separation of concerns will improve long‐term maintainability.


471-472: PR Submission Reminder
The instruction “Wait for review” appears as part of the PR template. Be sure to remove or update such placeholders before finalizing the documentation if they’re no longer needed.


507-520: CSS Architecture Documentation
The “CSS Architecture” section now details the variable system, consolidated media queries, and performance improvements such as reduced redundant selectors. These guidelines will serve both as documentation and a reference for future style optimizations.

🧰 Tools
🪛 LanguageTool

[duplication] ~517-~517: Possible typo: you repeated a word.
Context: ...nified effects 2. Consolidated Media Queries - Queries organized by breakpoint rather than by ...

(ENGLISH_WORD_REPEAT_RULE)

assets/css/command-palette.css (13)

29-30: Modal Background and Text Color Update
The command palette modal now uses a dark purple background (#2d1e30) and white text. This consistent high‑contrast scheme is ideal for dark mode and improves overall readability.


42-47: Command Palette Input Styling
The input field now features a defined bottom border (2px solid rgba(104, 35, 109, 0.5)), a dark purple background (#3a2a3d), and white text. These changes ensure a uniform dark look that matches the rest of the palette.


51-54: Focused Input State Consistency
On focus, the input’s bottom border color is updated to rgba(104, 35, 109, 0.8) while retaining the dark background. This subtle change reinforces focus without breaking the overall theme.


60-60: Results Area Background
Assigning the dark purple background (#2d1e30) to the results container ensures that all areas within the command palette adhere to the same theme.


71-71: Section Title Color for Command Palette
Using a light purple color (#d4a5db) for section titles adds a touch of contrast and aids in visually segmenting commands.


89-89: Command Item Text Color
For command items, enforcing white text (#f0f0f0) improves legibility against the dark backgrounds used throughout the palette.


92-93: Command Item Hover Feedback
The hover state now applies a slightly darker background (rgba(104, 35, 109, 0.3)), which gives users clear visual feedback while keeping the design consistent.


114-114: Command Title Readability
The command title’s text color is forced to white, ensuring that key information remains easily readable across different backgrounds.


121-123: Shortcut Badge Styling
The shortcut badges gain a darker background (rgba(104, 35, 109, 0.3)) with white text. This update harmonizes the badge appearance with the overall dark theme of the command palette.


147-149: Removal of Redundant Dark Mode Comments
The commented-out legacy dark mode styles have been removed in favor of directly applying a consistent dark purple theme. This cleanup reduces clutter in the stylesheet.


251-255: Keyboard Shortcut Button Focus Styling
Re‑styling of the .command-k-style-btn:focus (lines 251–255) now uses a light purple outline for focus. This clear visual indicator improves accessibility without clashing with the dark theme.


376-378: Footer of the Command Palette
The footer styling now applies a subtle dark purple background with a slightly darker top border. These adjustments tie in well with the overall palette design.


396-399: Shortcut Help Badge Enhancements
The styling for shortcut badges in the footer now enforces a dark background with a consistent border and white text, ensuring that these small details match the overall design language.

assets/css/styles.css (7)

2-46: Comprehensive CSS Variable System Introduced
A full set of CSS custom properties is now defined in the :root selector covering core colors, fonts, box shadows, transitions, and a spacing system. This well‑structured approach will greatly simplify future theming and style adjustments while improving maintainability.


50-80: Enhanced Dark Theme Variables
Within the [data-theme="dark"] block, alternative values for text, background, link colors, header elements, icons, and box shadows have been defined. These ensure that dark mode achieves a harmonious and legible appearance compared to the light theme.


83-114: Global Base and Icon Styling Updates
The base element styles (starting at line 83) and the grouped icon styles (lines 103–114) now consistently use the new CSS variables. This change guarantees uniform scaling, color transitions, and shadow effects across elements such as the footer and site icons.


507-520: Responsive Navigation Link Styling
Navigation links now use CSS variables for color, background, transitions, and box shadows. The updated padding, border-radius, and backdrop-filter (lines 507–520) provide a consistent and modern look that scales well across devices.


718-735: ‘Go to Top’ Button Redefined
The go‑to‑top button now features a finely tuned design with a fixed position, consistent padding, and matching box-shadow and transition values. These enhancements ensure the button remains visible and interactive without overpowering the user interface.


750-937: Optimized Layouts for Research and Join Sections
Sections such as .s-research, .join-content, and related heading elements have been re‑styled to use generous padding, consistent background colors, and clear typography. These changes improve overall readability, visual balance, and responsiveness on larger screens.


945-1065: Enhanced Badge, Code Block, and Email Copy Styling
The styling for badges (e.g. shields from img.shields.io), copyable code blocks, and email wrappers has been overhauled. The new styles include clear hover and active states, smooth transitions, and well‑positioned copy indicators. These improvements offer better user feedback and maintain consistency with the site’s design language.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR enhances the website's styling and functionality with a focus on theme compatibility and code organization.

  • Added platform-utils.js to centralize platform detection logic, improving maintainability by replacing duplicate code across files
  • Updated Font Awesome loading in shortcut-key.js with better error handling and version extraction for easier maintenance
  • Improved dark mode styling for tags in research pages with consistent visual feedback for active states
  • Enhanced image credit styling in News.md using CSS variables instead of hardcoded colors for better theme compatibility
  • Modified command palette to use a consistent dark purple theme across all browsers regardless of system preferences

💡 (5/5) You can turn off certain types of comments like style here!

14 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile

Docstrings generation was requested by @VatsalSy.

* #33 (comment)

The following files were modified:

* `.github/assets/js/shortcut-key.js`
* `assets/js/platform-utils.js`
Copy link
Contributor

coderabbitai bot commented Apr 13, 2025

Note

Generated docstrings for this pull request at #34

VatsalSy and others added 4 commits April 14, 2025 01:49
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@VatsalSy VatsalSy merged commit 0efa01c into main Apr 13, 2025
2 of 3 checks passed
@VatsalSy VatsalSy deleted the vs-branch-6 branch April 14, 2025 00:00
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