Skip to content

Manishnemade12/OpenSource-contributions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

Open Source Contributions

A collection of my contributions to open source cloud-native and web projects.


Meshery

Meshery is an open source cloud-native management platform built primarily in Go.


1. [mesheryctl] Replace cobra.ArbitraryArgs with Proper Argument Validation in filter view

Replaced cobra.ArbitraryArgs with cobra.MaximumNArgs(1) to reject extra positional arguments. Moved --all flag conflict check and missing name/ID check to PreRunE for early validation. Removed the now-unused parseQuotedArg function and patched an empty-string edge case that silently bypassed required flag checks.

🔗 View PR


2. [Server] Fix DeleteMeshSyncResource HTTP Response Handling

Updated the handler to return a proper 200 OK with a JSON body on success and 500 Internal Server Error on database failure. Added a comprehensive test suite using an in-memory SQLite database covering both scenarios. Improved response type safety by replacing strings.Contains checks with proper struct-based JSON unmarshaling.

🔗 View PR


3. [Server] Reject Invalid Performance Test Endpoint URLs

Updated SMPPerformanceTestConfigValidator to use url.ParseRequestURI with explicit scheme and host checks, ensuring only absolute URLs are accepted. Added a table-driven test file covering edge cases including empty endpoint lists.

🔗 View PR


4. Fix Token Commands to Use Active Config Path for Consistency

Introduced an activeConfigPath helper to ensure all token commands (create, delete, set, list, view) correctly target the active config file instead of defaulting to the standard path. Added a regression test verifying active config isolation from the default config.

🔗 View PR


5. Fix Error Handling in ProcessConnectionRegistration

Improved error handling by fixing a typo, adding dynamic connection details to error messages, ensuring early returns with proper HTTP error responses, and adding a nil guard for the event object before persist/publish operations.

🔗 View PR


6. [Server] Add Lifecycle Management for Database Reset Archives

Introduced an asynchronous pruning routine for database reset backup archives. The routine automatically removes backups older than 30 days and enforces a maximum retention limit of five backups, preventing unbounded disk usage over time.

🔗 View PR


Tech Stack: Go · Cobra CLI · SQLite · HTTP Handlers · REST APIs · Table-driven Tests


Layer5

Layer5 is the open source, cloud-native management company behind Meshery and related projects. The website is built with Gatsby and React.


1. perf(images): Replace Kanvas <img> Tags with StaticImage

Addresses image rendering performance in the Kanvas section by replacing 27 raw HTML <img> tags with Gatsby's StaticImage component across kanvas-catalog.js, index.js, and kanvas-modes.js. Added StaticImage imports where needed, removed now-unneeded static image imports, and updated styled-component selectors from img to .gatsby-image-wrapper where layout depended on direct <img> targeting. Enables the full Gatsby image pipeline for these assets, improving optimized delivery and rendering consistency.

🔗 View PR


2. fix(navigation): Clean Up Leaked Global Scroll Listeners

Fixes memory leaks caused by uncleaned global scroll listeners in SPA navigation flows. Two components attached window.addEventListener("scroll", ...) using anonymous callbacks inside useEffect without corresponding cleanup, causing listeners to accumulate across route transitions. Added named handleScroll and handleHeaderScroll functions with cleanup returns in Navigation/index.js and Brand/index.js respectively, enabling window.removeEventListener(...) on unmount and preventing stacked listeners, memory leaks, and scroll-jank over long sessions.

🔗 View PR


3. fix(smi-table): Optimize Row Rendering with Memoized Rows

Resolves the SMI table rendering performance issue by isolating row rendering and collapse state per row. Refactored table row rendering from inline mapping into a separate TableRow component in src/components/SMI-Table/index.js, wrapped it with React.memo(), and moved collapse state from a parent-level array to per-row local useState. Clicking one row now updates only that row's state instead of triggering a full table body re-render, improving interaction responsiveness for larger datasets with no change to existing visual behavior.

🔗 View PR


4. fix(a11y): Improve Alt Text in Features and Kanvas Visuals

Improves accessibility (WCAG-focused image semantics) by fixing missing, generic, and empty alt attributes across high-impact Components and Kanvas sections. Updated instructional images to use descriptive alt text, marked decorative images with alt="" and aria-hidden="true", and replaced generic "image" alt values with context-aware descriptions. Changes span seven files across the Features, Academy, and Kanvas sections, improving screen-reader accessibility and reducing ambiguous image announcements.

🔗 View PR


Tech Stack: React · Gatsby · StaticImage · styled-components · Accessibility (WCAG) · Performance Optimization

About

Meshery — Open Source Contributions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors