<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abhishek Kumar on Medium]]></title>
        <description><![CDATA[Stories by Abhishek Kumar on Medium]]></description>
        <link>https://medium.com/@abhishek2kr?source=rss-1a69ceaa44f7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*4HMaLcyRidDLMsVs</url>
            <title>Stories by Abhishek Kumar on Medium</title>
            <link>https://medium.com/@abhishek2kr?source=rss-1a69ceaa44f7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 20:09:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhishek2kr/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I Stopped Fighting SSH Every Time I Switched Between Two Git Accounts]]></title>
            <link>https://medium.com/@abhishek2kr/title-how-i-stopped-fighting-ssh-every-time-i-switched-between-two-git-accounts-b91bcc7a6bab?source=rss-1a69ceaa44f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b91bcc7a6bab</guid>
            <category><![CDATA[ssh-keys]]></category>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[ssh-keygen]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[developer-tools]]></category>
            <dc:creator><![CDATA[Abhishek Kumar]]></dc:creator>
            <pubDate>Thu, 13 Aug 2026 06:37:19 GMT</pubDate>
            <atom:updated>2026-08-13T07:32:12.807Z</atom:updated>
            <content:encoded><![CDATA[<p>A permission-denied error, one afternoon of debugging, and the five-minute config that fixed it for good</p><p>If you’ve ever juggled two Git identities — a work account on an internal Git server and a second account for a client or personal projects on GitHub — you’ve probably hit this at some point:</p><pre>git@your-git-host.com: Permission denied (publickey).<br>fatal: Could not read from remote repository.</pre><p>The confusing part is that your SSH setup <em>used to work</em>. Nothing changed on your end — except now you’re trying to talk to a <em>second</em> Git account, and SSH has no idea which key to use for which one.</p><p>Here’s the fix, and more importantly, the mental model that makes it stick.</p><h3>Why this happens</h3><p>By default, most people have exactly one SSH key, and it’s implicitly tied to whichever account they set up first. SSH doesn’t know about “accounts” — it just tries keys in a default order until one works. Add a second account into the mix, and that single key either isn’t registered there, or gets offered to the wrong host entirely.</p><p>You can confirm this is exactly what’s happening with:</p><pre>ssh -vT git@your-git-host.com 2&gt;&amp;1 | grep -E &quot;Offering|identity file|Permission denied&quot;</pre><p>If you see your one-and-only key get offered and rejected, that’s the whole story. Time to give each account its own key.</p><h3>Step 1 — Generate a dedicated key per account</h3><pre>ssh-keygen -t ed25519 -C &quot;you@work-email.com&quot; -f ~/.ssh/id_ed25519_work<br>ssh-keygen -t ed25519 -C &quot;you@client-email.com&quot; -f ~/.ssh/id_ed25519_client</pre><p>Think of each key as a badge for one identity. Never share one badge across two buildings.</p><h3>Step 2 — Register each public key on its matching account</h3><pre>cat ~/.ssh/id_ed25519_work.pub</pre><p>Paste that into your work Git host’s SSH settings.</p><pre>cat ~/.ssh/id_ed25519_client.pub</pre><p>Paste that into the <em>other</em> account’s SSH settings — double-check you’re logged into the right one in your browser first, especially if both accounts happen to live on the same platform.</p><h3>Step 3 — Tell SSH which key belongs to which host</h3><p>This is the part almost everyone skips, and it’s the actual fix. Open (or create) ~/.ssh/config:</p><pre>Host git.work-host.com<br>  HostName git.work-host.com<br>  User git<br>  IdentityFile ~/.ssh/id_ed25519_work<br>  IdentitiesOnly yes<br><br><br>Host github-client<br>  HostName github.com<br>  User git<br>  IdentityFile ~/.ssh/id_ed25519_client<br>  IdentitiesOnly yes</pre><p>Two details that matter more than they look:</p><ul><li>IdentitiesOnly yes stops SSH from trying your other keys first. Without it, SSH may offer the wrong key, get rejected, and never even try the right one.</li><li>If both accounts happen to live on the <em>same</em> real hostname (two accounts on github.com, for example), you can’t have two Host github.com blocks. Instead, invent an alias — like github-client above — that points to the real hostname via HostName.</li></ul><h3>Step 4 — Test it</h3><pre>ssh -T git@git.work-host.com<br>ssh -T git@github-client</pre><p>You’re looking for a friendly “you’ve successfully authenticated” message, not Permission denied.</p><h3>Step 5 — Clone using the alias, not the real domain</h3><pre>git clone git@github-client:client-org/repo.git ~/client/repo</pre><p>The alias is what routes the connection to the correct key. If you clone using the literal hostname instead, you’re back to square one.</p><h3>Step 6 — Bonus: stop your commits from leaking the wrong email</h3><p>Nobody wants a client-facing commit history showing their personal email, or vice versa. Fix this once, globally, in ~/.gitconfig:</p><pre>[user]<br>    email = you@personal-email.com<br>    name = Your Name<br><br>[includeIf &quot;gitdir:~/client/&quot;]<br>    path = ~/.gitconfig-client</pre><p>And in ~/.gitconfig-client:</p><pre>[user]<br>    email = you@client-email.com<br>    name = Your Name</pre><p>Now every repo cloned under ~/client/ automatically commits with the client identity. No git config user.email gymnastics, no accidental cross-contamination.</p><h3>The five-minute mental model</h3><ul><li>One SSH key per account, never shared</li><li>Each key registered only on its matching platform account</li><li>~/.ssh/config maps hostnames (or invented aliases) to the right key, with IdentitiesOnly yes</li><li>Clone using the alias when two accounts share a real hostname</li><li>includeIf &quot;gitdir:&quot; in ~/.gitconfig keeps commit identities separated automatically</li></ul><p>Set this up once, and you’ll never see Permission denied (publickey) from a second Git account again.</p><p><em>Tags: Git, SSH, Developer Tools, Productivity, DevOps</em></p><h3>Bonus: why you’re no longer typing a password on every push/pull</h3><p>If you used to get an interactive password prompt every time you ran git push or git pull, and now you don&#39;t, it&#39;s not magic — it&#39;s one specific choice made when the new SSH key was generated:</p><pre>ssh-keygen -t ed25519 -C &quot;you@work-email.com&quot; -f ~/.ssh/id_ed25519_work -N &quot;&quot;</pre><p>That trailing -N &quot;&quot; sets an <strong>empty passphrase</strong> on the private key. Normally, ssh-keygen asks you to set a passphrase interactively — and that passphrase is exactly what gets asked for at the terminal every time SSH needs to unlock the key. Skip the passphrase, and there&#39;s nothing left to prompt for.</p><p>Before this, the prompt you saw likely wasn’t a “password” in the traditional sense — it was SSH asking to unlock an <em>older</em> key that already had a passphrase set, before it even got sent to the server for the account it wasn’t authorized for. Two things fixed both problems at once:</p><ul><li><strong>IdentitiesOnly yes</strong> — SSH goes straight to the one correct key for that host, instead of cycling through (and possibly prompting to unlock) several keys first.</li><li><strong>AddKeysToAgent yes + </strong><strong>UseKeychain yes</strong> — even for a key that <em>does</em> have a passphrase, these cache the unlocked key in the OS keychain after the first use, so you&#39;re only ever asked once per login session, not on every single command.</li></ul><p><strong>Worth knowing:</strong> an empty passphrase trades security for convenience — anyone with access to your machine (or a copy of that key file) can use it without entering anything. On a personal, disk-encrypted laptop this is a common and reasonable tradeoff, but if you’d rather keep passphrase protection <em>and</em> avoid repeated prompts, set a real passphrase and let UseKeychain do the caching instead of leaving it blank:</p><pre>ssh-keygen -p -f ~/.ssh/id_ed25519_work</pre><p>You’ll be asked for the passphrase once per session (or once ever, thanks to Keychain) — not on every push.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b91bcc7a6bab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with Git Subtree: Import and Update External Repos]]></title>
            <link>https://medium.com/@abhishek2kr/working-with-git-subtree-import-and-update-external-repos-eb78c2f58953?source=rss-1a69ceaa44f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb78c2f58953</guid>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Abhishek Kumar]]></dc:creator>
            <pubDate>Wed, 10 Jun 2026 15:08:59 GMT</pubDate>
            <atom:updated>2026-06-10T15:08:59.549Z</atom:updated>
            <content:encoded><![CDATA[<p>When you want an external repo to live as a subdirectory of your monorepo — and stay in sync with its upstream — git subtree is the right tool. Here are the simple steps.</p><h3>1. First-time import: git subtree add</h3><p>Use this once, when you’re bringing an external repo into your monorepo for the first time.</p><pre>git subtree add --prefix=shared-ui \<br>  git@github.com:org/shared-ui.git main</pre><p>What this does:</p><ul><li>Fetches the main branch of shared-ui.</li><li>Creates a new directory shared-ui/ containing all its files.</li><li>Brings in the full upstream commit history.</li><li>Creates a merge commit on your current branch.</li></ul><p>The destination prefix (shared-ui/) must NOT already exist.</p><p>If you’d rather collapse upstream history into a single commit, add --squash:</p><pre>git subtree add --prefix=shared-ui \<br>  git@github.com:org/shared-ui.git main --squash</pre><p>Pick one mode and stick with it — mixing squash and non-squash later gets confusing.</p><h3>2. Add the upstream as a remote (recommended)</h3><p>Saves typing the URL every time and lets you git fetch independently.</p><pre>git remote add shared-ui-upstream git@github.com:org/shared-ui.git</pre><h3>3. Pull updates: git subtree pull</h3><p>Run this whenever you want to bring in upstream’s latest changes:</p><pre>git subtree pull --prefix=shared-ui shared-ui-upstream main</pre><p>Git fetches the upstream main branch and merges it into your shared-ui/ directory, preserving full upstream history. If you used --squash on the initial import, also pass --squash here.</p><h3>4. Push your subdirectory’s changes back: git subtree push</h3><p>If you’ve made changes inside shared-ui/ and want to send them upstream:</p><pre>git subtree push --prefix=shared-ui shared-ui-upstream feature-branch</pre><p>This extracts only the commits that touched shared-ui/ and pushes them to feature-branch on upstream — typically you&#39;d open a PR from there.</p><h3>If you hit conflicts on pull</h3><p>Resolve like a normal merge:</p><pre># edit the conflicted files, then:<br>git add &lt;files&gt;<br>git commit</pre><p>To skip manual resolution and let upstream win every conflict:</p><pre>git merge --abort<br>git fetch shared-ui-upstream main<br>git merge -X subtree=shared-ui -X theirs --no-ff \<br>  -m &quot;Pull latest shared-ui upstream&quot; \<br>  shared-ui-upstream/main</pre><h3>Make it a one-liner with an alias</h3><pre>git config alias.pull-shared-ui \<br>  &#39;subtree pull --prefix=shared-ui shared-ui-upstream main&#39;</pre><p>Future updates:</p><pre>git pull-shared-ui</pre><h3>Quick reference</h3><p>TaskCommandImport an external repogit subtree add --prefix=&lt;dir&gt; &lt;repo-url&gt; &lt;branch&gt;Pull latest from upstreamgit subtree pull --prefix=&lt;dir&gt; &lt;remote&gt; &lt;branch&gt;Push your changes upstreamgit subtree push --prefix=&lt;dir&gt; &lt;remote&gt; &lt;branch&gt;</p><h3>Summary</h3><ol><li><strong>Once</strong>: git subtree add to import.</li><li><strong>Add a remote</strong> so future commands are short.</li><li><strong>Update</strong>: git subtree pull.</li><li><strong>Contribute back</strong>: git subtree push.</li><li>Wrap frequent commands in aliases.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb78c2f58953" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Flexbox Rendering Issue: Dynamic Children Not Appearing]]></title>
            <link>https://medium.com/@abhishek2kr/react-flexbox-rendering-issue-dynamic-children-not-appearing-af179988f4dd?source=rss-1a69ceaa44f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/af179988f4dd</guid>
            <category><![CDATA[flexbox]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Abhishek Kumar]]></dc:creator>
            <pubDate>Tue, 26 May 2026 11:04:26 GMT</pubDate>
            <atom:updated>2026-05-26T11:04:26.582Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overview</h3><p>This document explains a subtle rendering issue encountered when using display: flex with dynamically added children in React applications. The issue manifests as new elements not visually appearing even though React&#39;s state and DOM are correctly updated.</p><h3>The Problem</h3><h3>Symptoms</h3><ul><li>Parent component updates state to add new items to an array</li><li>React re-renders the child component with the new data</li><li>The DOM inspector shows the new elements exist</li><li><strong>But the new elements are not visually rendered on screen</strong></li><li>Removing display: flex from the container makes it work</li></ul><h3>Example Scenario</h3><pre>// Parent component<br>const [options, setOptions] = useState([...initialOptions]);</pre><pre>const addOption = () =&gt; {<br>  setOptions([...options, { label: &#39;New Option&#39;, value: &#39;new&#39; }]);<br>};</pre><pre>// Child component with flex container<br>&lt;div style={{ display: &#39;flex&#39;, flexWrap: &#39;wrap&#39;, gap: &#39;24px&#39; }}&gt;<br>  {options.map(option =&gt; (<br>    &lt;button key={option.value}&gt;{option.label}&lt;/button&gt;<br>  ))}<br>&lt;/div&gt;</pre><p>When addOption() is called:</p><ul><li>✅ State updates correctly</li><li>✅ React re-renders</li><li>✅ DOM contains the new button</li><li>❌ New button is not visible on screen</li></ul><h3>Root Cause Analysis</h3><h3>1. Browser Repaint Optimization</h3><p>Modern browsers aggressively optimize repaints for performance. Flex containers are particularly affected because:</p><ul><li>The browser calculates layout for flex items</li><li>If the container’s bounding box doesn’t change significantly, the browser may skip visual repaint</li><li>This is an optimization to avoid expensive repaint operations</li></ul><h3>2. Compositor Layer Caching</h3><p>Browsers use compositor layers to cache rendered content:</p><ul><li>Flex containers often get their own compositor layer</li><li>When children change, the browser may determine the layer doesn’t need updating</li><li>The cached layer is displayed instead of re-rendering</li></ul><h3>3. Block-Level vs Inline-Level Formatting Context</h3><p>PropertyFormatting ContextRepaint Behaviordisplay: flexBlock-levelMore aggressive cachingdisplay: inline-flexInline-levelMore reliable repaintsdisplay: blockBlock-levelNormal flow, reliable repaints</p><p>The key difference is that inline-flex participates in inline formatting context, which typically triggers more reliable repaints when content changes.</p><h3>4. React’s Virtual DOM + Browser Layout Engine Conflict</h3><p>React correctly updates the DOM, but:</p><ol><li>React’s reconciliation completes successfully</li><li>Browser receives DOM mutation</li><li>Browser’s layout engine calculates new flex layout</li><li>Browser’s repaint optimization decides no visual update needed</li><li>User sees stale content</li></ol><h3>Solutions</h3><h3>Solution 1: Use display: inline-flex (Recommended)</h3><pre>&lt;div style={{ display: &#39;inline-flex&#39;, flexWrap: &#39;wrap&#39;, gap: &#39;24px&#39; }}&gt;<br>  {options.map(option =&gt; (<br>    &lt;button key={option.value}&gt;{option.label}&lt;/button&gt;<br>  ))}<br>&lt;/div&gt;</pre><p><strong>Why it works:</strong> inline-flex creates an inline-level flex container that participates in inline formatting context, which triggers more reliable repaints.</p><p><strong>Trade-off:</strong> The container will only be as wide as its content (inline behavior). You may need to add width: 100% if you want it to span the full width.</p><h3>Solution 2: Add Dynamic Key to Container</h3><pre>&lt;div <br>  key={options.length}  // Forces React to recreate element<br>  style={{ display: &#39;flex&#39;, flexWrap: &#39;wrap&#39;, gap: &#39;24px&#39; }}<br>&gt;<br>  {options.map(option =&gt; (<br>    &lt;button key={option.value}&gt;{option.label}&lt;/button&gt;<br>  ))}<br>&lt;/div&gt;</pre><p><strong>Why it works:</strong> Changing the key forces React to unmount and remount the container, creating a new DOM element that the browser must render fresh.</p><p><strong>Trade-off:</strong> Slightly more expensive as it recreates the entire container element.</p><h3>Solution 3: Use CSS Grid</h3><pre>&lt;div style={{ <br>  display: &#39;grid&#39;, <br>  gridTemplateColumns: &#39;repeat(auto-fill, 200px)&#39;, <br>  gap: &#39;24px&#39; <br>}}&gt;<br>  {options.map(option =&gt; (<br>    &lt;button key={option.value}&gt;{option.label}&lt;/button&gt;<br>  ))}<br>&lt;/div&gt;</pre><p><strong>Why it works:</strong> CSS Grid uses a different layout algorithm with different repaint behavior.</p><p><strong>Trade-off:</strong> Different layout model, may require adjusting other styles.</p><h3>Solution 4: Force Repaint with State Toggle</h3><pre>const [forceUpdate, setForceUpdate] = useState(0);</pre><pre>const addOption = () =&gt; {<br>  setOptions([...options, newOption]);<br>  setForceUpdate(prev =&gt; prev + 1);  // Trigger additional render<br>};</pre><pre>&lt;div <br>  style={{ <br>    display: &#39;flex&#39;, <br>    flexWrap: &#39;wrap&#39;, <br>    gap: &#39;24px&#39;,<br>    transform: `translateZ(${forceUpdate * 0}px)`  // Trivial change forces repaint<br>  }}<br>&gt;</pre><p><strong>Why it works:</strong> The trivial style change forces the browser to repaint.</p><p><strong>Trade-off:</strong> Hacky solution, adds unnecessary state and renders.</p><h3>Debugging Tips</h3><h3>1. Check if DOM is Updated</h3><p>Open browser DevTools → Elements tab → Verify new elements exist in DOM</p><h3>2. Force Repaint Manually</h3><p>In DevTools Console:</p><pre>document.querySelector(&#39;[data-testid=&quot;your-container&quot;]&#39;).style.display = &#39;none&#39;;<br>document.querySelector(&#39;[data-testid=&quot;your-container&quot;]&#39;).offsetHeight; // Force reflow<br>document.querySelector(&#39;[data-testid=&quot;your-container&quot;]&#39;).style.display = &#39;flex&#39;;</pre><p>If this makes elements appear, it confirms the repaint optimization issue.</p><h3>3. Check Compositor Layers</h3><p>DevTools → More tools → Layers → Look for cached layers</p><h3>Browser Compatibility</h3><p>This issue has been observed in:</p><ul><li>Chrome/Chromium-based browsers (most common)</li><li>Safari (WebKit)</li><li>Firefox (less common due to different rendering engine)</li></ul><h3>Conclusion</h3><p>The display: flex rendering issue with dynamic children is a subtle interaction between React&#39;s Virtual DOM updates and browser rendering optimizations. The recommended solution is to use display: inline-flex which maintains flexbox layout capabilities while ensuring reliable repaints.</p><h3>References</h3><ul><li><a href="https://www.w3.org/TR/css-flexbox-1/">CSS Flexible Box Layout Module</a></li><li><a href="https://reactjs.org/docs/reconciliation.html">React Reconciliation</a></li><li><a href="https://developers.google.com/web/fundamentals/performance/rendering">Browser Rendering Pipeline</a></li><li><a href="https://developers.google.com/web/fundamentals/performance/rendering/stick-to-compositor-only-properties-and-manage-layer-count">Compositor Layers</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af179988f4dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving NX Build Failures in Next.js Monorepos: A PostCSS Configuration Tale]]></title>
            <link>https://medium.com/@abhishek2kr/solving-nx-build-failures-in-next-js-monorepos-a-postcss-configuration-tale-f9f76993cd1b?source=rss-1a69ceaa44f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9f76993cd1b</guid>
            <dc:creator><![CDATA[Abhishek Kumar]]></dc:creator>
            <pubDate>Tue, 23 Dec 2025 05:46:09 GMT</pubDate>
            <atom:updated>2025-12-23T05:46:09.385Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Problem: When Your NX Build Suddenly Breaks</h3><p>Picture this: You have a Next.js application with an NX workspace as a submodule for your component library. Everything works perfectly when the component library is standalone. But the moment you integrate it into your Next.js project and add Tailwind CSS, your NX build starts failing mysteriously.</p><p>Sound familiar? Let me walk you through what happened and how we solved it with a scalable, maintainable solution.</p><h3>The Setup</h3><p>Our project structure looked like this:</p><pre>my-monorepo/<br>├── postcss.config.mjs          # For Next.js with Tailwind<br>├── next.config.ts<br>├── package.json<br>└── src/<br>    └── components/<br>        └── nx-component-lib/   # NX workspace submodule<br>            ├── packages/<br>            │   ├── Button/<br>            │   ├── Card/<br>            │   └── ... (more components)<br>            └── nx.json</pre><p><strong>The Stack:</strong></p><ul><li>Next.js 15 (main application)</li><li>Tailwind CSS 4 (for styling)</li><li>NX workspace (component library)</li><li>Vite (for building NX packages)</li><li>SCSS modules (for component styles)</li></ul><h3>The Breaking Change</h3><p>Everything was working fine until we added Tailwind CSS to our Next.js application. We created a postcss.config.mjs at the root level:</p><pre>// Root postcss.config.mjs<br>const config = {<br>  plugins: [&#39;@tailwindcss/postcss&#39;],<br>};</pre><pre>export default config;</pre><p>Suddenly, running npm run build:nx-lib (which executes nx build in the submodule) started failing with errors about missing Tailwind dependencies.</p><h3>Understanding the Root Cause</h3><p>The issue boiled down to <strong>PostCSS configuration resolution</strong>. Here’s what was happening:</p><h3>How PostCSS Finds Configuration</h3><p>PostCSS (and Vite) searches for configuration files in this order:</p><ol><li>Current directory</li><li>Parent directories (walking up the tree)</li><li>Stops when it finds a config file</li></ol><h3>The Conflict</h3><p><strong>Before adding Tailwind:</strong></p><ul><li>No postcss.config.mjs anywhere</li><li>Vite: “No config found, skip PostCSS processing” ✅</li><li>NX build: <strong>Success</strong></li></ul><p><strong>After adding Tailwind:</strong></p><ul><li>Root-level postcss.config.mjs with Tailwind plugin</li><li>NX build runs from src/components/nx-component-lib/</li><li>Vite searches for PostCSS config</li><li>Vite finds the <strong>parent config</strong> with Tailwind</li><li>Vite tries to apply Tailwind to component SCSS files</li><li>Component library doesn’t have Tailwind installed</li><li>NX build: <strong>Failure</strong> ❌</li></ul><h3>The Evolution of Our Solution</h3><h3>Attempt 1: Separate Config Files (The Traditional Approach)</h3><p>Our first solution was to add an empty PostCSS config in the submodule:</p><pre>// src/components/nx-component-lib/postcss.config.mjs<br>export default {<br>  plugins: {},<br>};</pre><p>This worked! The empty config acted as a “boundary” preventing Vite from finding the parent Tailwind config.</p><p><strong>Pros:</strong></p><ul><li>Simple and straightforward</li><li>Standard monorepo pattern</li></ul><p><strong>Cons:</strong></p><ul><li>Duplicate config files</li><li>Need to maintain multiple configs</li><li>Not scalable for multiple submodules</li></ul><h3>Attempt 2: Context-Aware Single Config (The Smart Solution)</h3><p>We realized we could use a single, intelligent PostCSS config that detects the build context:</p><pre>// postcss.config.mjs<br>import path from &#39;path&#39;;<br>import { fileURLToPath } from &#39;url&#39;;</pre><pre>const __filename = fileURLToPath(import.meta.url);<br>const __dirname = path.dirname(__filename);</pre><pre>// Detect if we&#39;re building from within the nx-component-lib submodule<br>const isNxLibBuild = process.cwd().includes(&#39;nx-component-lib&#39;);</pre><pre>const config = {<br>  plugins: isNxLibBuild <br>    ? {} // Empty plugins for NX/Vite builds<br>    : { &#39;@tailwindcss/postcss&#39;: {} }, // Tailwind for Next.js builds<br>};</pre><pre>export default config;</pre><p><strong>How it works:</strong></p><ul><li>When Next.js builds: process.cwd() is the root directory → Apply Tailwind</li><li>When NX builds: process.cwd() includes &#39;nx-component-lib&#39; → Skip Tailwind</li></ul><p><strong>Pros:</strong></p><ul><li>Single source of truth</li><li>No duplicate configs</li><li>Automatic context detection</li></ul><p><strong>Cons:</strong></p><ul><li>Still hardcoded for one submodule</li><li>Not scalable for future growth</li></ul><h3>Final Solution: Scalable Multi-Module Configuration</h3><p>We took it one step further with a configuration-based approach:</p><pre>// postcss.config.mjs<br>import path from &#39;path&#39;;<br>import { fileURLToPath } from &#39;url&#39;;</pre><pre>const __filename = fileURLToPath(import.meta.url);<br>const __dirname = path.dirname(__filename);</pre><pre>// ============================================<br>// CONFIGURATION: Add your submodules/modules here<br>// ============================================<br>const EXCLUDED_MODULES = [<br>  &#39;nx-component-lib&#39;,      // Existing submodule<br>  // Add more modules here as needed:<br>  // &#39;another-component-lib&#39;,<br>  // &#39;shared-utilities&#39;,<br>  // &#39;design-system&#39;,<br>];</pre><pre>// ============================================<br>// AUTO-DETECTION LOGIC<br>// ============================================<br>const currentWorkingDir = process.cwd();</pre><pre>// Check if current build is from any excluded module<br>const isExcludedModuleBuild = EXCLUDED_MODULES.some(module =&gt; <br>  currentWorkingDir.includes(module)<br>);</pre><pre>// ============================================<br>// POSTCSS CONFIGURATION<br>// ============================================<br>const config = {<br>  plugins: isExcludedModuleBuild <br>    ? {} // Empty plugins for excluded modules (no Tailwind)<br>    : { &#39;@tailwindcss/postcss&#39;: {} }, // Tailwind for main Next.js app<br>};</pre><pre>// Optional: Log which config is being used (helpful for debugging)<br>if (process.env.DEBUG_POSTCSS) {<br>  console.log(&#39;PostCSS Config Debug:&#39;);<br>  console.log(&#39;  Current Directory:&#39;, currentWorkingDir);<br>  console.log(&#39;  Is Excluded Module:&#39;, isExcludedModuleBuild);<br>  console.log(&#39;  Plugins:&#39;, Object.keys(config.plugins).length &gt; 0 ? Object.keys(config.plugins) : &#39;None&#39;);<br>}</pre><pre>export default config;</pre><h3>Benefits of the Final Solution</h3><h3>1. Single Source of Truth</h3><p>All PostCSS configuration lives in one place. No need to hunt through multiple config files.</p><h3>2. Zero Maintenance for New Modules</h3><p>Adding a new submodule? Just add one line:</p><pre>const EXCLUDED_MODULES = [<br>  &#39;nx-component-lib&#39;,<br>  &#39;my-new-component-lib&#39;,  // ← That&#39;s it!<br>];</pre><h3>3. Built-in Debugging</h3><p>Enable debug mode to see exactly what’s happening:</p><pre>DEBUG_POSTCSS=true npm run build:nx-lib</pre><p>Output:</p><pre>PostCSS Config Debug:<br>  Current Directory: /path/to/project/src/components/nx-component-lib<br>  Is Excluded Module: true<br>  Plugins: None</pre><h3>4. Future-Proof</h3><p>Works with any number of submodules, component libraries, or shared packages.</p><h3>5. Clear Documentation</h3><p>The config file itself serves as documentation with clear comments explaining what each section does.</p><h3>How to Implement This in Your Project</h3><h3>Step 1: Update Your Root PostCSS Config</h3><p>Replace your existing postcss.config.mjs with the scalable version above.</p><h3>Step 2: Add Your Modules</h3><p>List all submodules/packages that should NOT use Tailwind:</p><pre>const EXCLUDED_MODULES = [<br>  &#39;your-component-library&#39;,<br>  &#39;shared-utils&#39;,<br>  // ... add more as needed<br>];</pre><h3>Step 3: Remove Duplicate Configs</h3><p>Delete any postcss.config.mjs files in your submodules. They&#39;re no longer needed!</p><h3>Step 4: Test Both Builds</h3><pre># Test Next.js build (should use Tailwind)<br>npm run build</pre><pre># Test NX workspace build (should skip Tailwind)<br>npm run build:nx-lib</pre><pre># Debug if needed<br>DEBUG_POSTCSS=true npm run build</pre><h3>Key Takeaways</h3><ol><li><strong>PostCSS config resolution walks up the directory tree</strong> — Understanding this is crucial for monorepo setups.</li><li><strong>Context-aware configs are powerful</strong> — Using process.cwd() lets you create intelligent, adaptive configurations.</li><li><strong>Scalability matters</strong> — Design solutions that grow with your project, not against it.</li><li><strong>Documentation in code</strong> — Well-commented configs save future developers (including yourself) countless hours.</li><li><strong>Debug modes are invaluable</strong> — Always include ways to inspect what’s happening during builds.</li></ol><h3>Common Pitfalls to Avoid</h3><p>❌ <strong>Don’t hardcode module names in logic</strong> — Use a configuration array instead</p><p>❌ <strong>Don’t duplicate configs</strong> — One smart config beats multiple dumb ones</p><p>❌ <strong>Don’t ignore build context</strong> — Different parts of your monorepo may need different configurations</p><p>✅ <strong>Do use environment variables for debugging</strong> — Makes troubleshooting much easier</p><p>✅ <strong>Do document your configuration</strong> — Future you will thank present you</p><p>✅ <strong>Do test both build scenarios</strong> — Ensure both your main app and submodules build correctly</p><h3>Conclusion</h3><p>What started as a frustrating build failure turned into an opportunity to create a more maintainable, scalable solution. By understanding how PostCSS configuration resolution works and leveraging Node.js’s process.cwd(), we built a single config that intelligently adapts to different build contexts.</p><p>This pattern isn’t just for PostCSS — you can apply the same approach to any configuration that needs to behave differently in different parts of your monorepo.</p><p>Have you encountered similar issues in your monorepo? How did you solve them? Share your experiences in the comments!</p><h3>Resources</h3><ul><li><a href="https://postcss.org/">PostCSS Documentation</a></li><li><a href="https://nx.dev/">NX Documentation</a></li><li><a href="https://vitejs.dev/config/">Vite Configuration</a></li><li><a href="https://tailwindcss.com/">Tailwind CSS v4</a></li></ul><p><em>Found this helpful? Follow me for more deep dives into modern web development challenges and solutions!</em></p><p>#WebDevelopment #NextJS #NX #Monorepo #PostCSS #TailwindCSS #JavaScript #TypeScript #BuildTools</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9f76993cd1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install all dependencies of sub-modules in Main module]]></title>
            <link>https://medium.com/@abhishek2kr/how-to-install-all-dependencies-of-sub-modules-in-main-module-9af04666d844?source=rss-1a69ceaa44f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/9af04666d844</guid>
            <category><![CDATA[installation]]></category>
            <category><![CDATA[npm-package]]></category>
            <category><![CDATA[submodules]]></category>
            <dc:creator><![CDATA[Abhishek Kumar]]></dc:creator>
            <pubDate>Thu, 11 Dec 2025 11:28:13 GMT</pubDate>
            <atom:updated>2025-12-11T11:28:13.538Z</atom:updated>
            <content:encoded><![CDATA[<p>We have multiple ways to achieve it.</p><ol><li>In Package.json add below:</li></ol><pre>&quot;postInstall&quot;: &quot;git submodule foreach &#39;npm install || true&#39;&quot;</pre><p>2. In Package.json add below:<br>Add path of the submodule where package.json will be there.</p><pre>&quot;workspaces&quot;: [&quot;path/submodule&quot;]</pre><p>3. Using Husky: WIP</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9af04666d844" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Setting Up NVM with Zsh on macOS (Homebrew Edition)]]></title>
            <link>https://medium.com/@abhishek2kr/setting-up-nvm-with-zsh-on-macos-homebrew-edition-8c6408d32140?source=rss-1a69ceaa44f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c6408d32140</guid>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[homebrew]]></category>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[nvm]]></category>
            <category><![CDATA[brew]]></category>
            <dc:creator><![CDATA[Abhishek Kumar]]></dc:creator>
            <pubDate>Fri, 30 May 2025 06:09:50 GMT</pubDate>
            <atom:updated>2025-05-30T06:09:50.523Z</atom:updated>
            <content:encoded><![CDATA[<p>As a developer, managing multiple versions of Node.js can be a headache — until you meet <a href="https://github.com/nvm-sh/nvm">NVM (Node Version Manager)</a>. But getting NVM to play nicely with zsh (the default shell on macOS now) isn&#39;t always plug-and-play. In this post, I’ll walk you through the exact steps I use to configure NVM in .zshrc with Homebrew. Spoiler: it&#39;s just a few lines, but they matter.</p><h3>🧰 Prerequisites</h3><p>Make sure you have the following installed:</p><ul><li><strong>Homebrew</strong> — the package manager for macOS</li><li><strong>Zsh</strong> — the shell you’re using (default on macOS Catalina and later)</li></ul><p>Install NVM with Homebrew:</p><pre>brew install nvm</pre><p>By default, Homebrew installs nvm to /usr/local/opt/nvm (on Intel Macs) or /opt/homebrew/opt/nvm (on Apple Silicon). Let’s make sure NVM is properly sourced in your .zshrc.</p><h3>🛠️ Editing .zshrc</h3><p>Open your terminal and run:</p><pre>nano ~/.zshrc</pre><p>Then add the following lines to the bottom of the file:</p><pre>export NVM_DIR=&quot;$HOME/.nvm&quot;<br>[ -s &quot;/usr/local/opt/nvm/nvm.sh&quot; ] &amp;&amp; \. &quot;/usr/local/opt/nvm/nvm.sh&quot;<br>[ -s &quot;/usr/local/opt/nvm/etc/bash_completion&quot; ] &amp;&amp; \. &quot;/usr/local/opt/nvm/etc/bash_completion&quot;<br><br>source $(brew --prefix nvm)/nvm.sh</pre><p>Then save the file:</p><ul><li>Press CTRL + O, then Enter to save.</li><li>Press CTRL + X to exit.</li></ul><h3>🧠 What does each line do?</h3><ul><li>export NVM_DIR=&quot;$HOME/.nvm&quot;: Sets the directory where NVM will keep its files.</li><li>The two [ -s ... ] lines conditionally source the main NVM script and the bash completion if they exist.</li><li>source $(brew --prefix nvm)/nvm.sh: Dynamically sources NVM from wherever Homebrew has installed it—future-proofing for Apple Silicon paths.</li></ul><h3>🔁 Reload the Shell</h3><p>To apply your changes immediately:</p><pre>source ~/.zshrc</pre><p>And just like that, NVM is ready!</p><p>Test it:</p><pre>nvm --version</pre><p>You should see something like 0.39.7 (or whatever the latest version is at your time).</p><h3>🚦 Bonus: Installing Node.js with NVM</h3><p>Once NVM is set up, installing Node is easy:</p><pre>nvm install --lts<br>nvm use --lts</pre><p>Now you’re running the latest LTS (Long-Term Support) version of Node.js.</p><h3>🧼 Final Thoughts</h3><p>Using NVM gives you flexibility in managing multiple versions of Node.js, making it essential for any modern JS/TS developer. With just a few tweaks to your .zshrc, you&#39;re all set to go.</p><p>If you found this helpful, give it a clap 👏 and share it with your fellow developers. Happy coding! 🧑‍💻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c6408d32140" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build a Drag & Drop File Upload in React (and Fix the Broken Click After Drop Issue)]]></title>
            <link>https://medium.com/@abhishek2kr/how-to-build-a-drag-drop-file-upload-in-react-and-fix-the-broken-click-after-drop-issue-30d4dd8feeac?source=rss-1a69ceaa44f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/30d4dd8feeac</guid>
            <category><![CDATA[dom]]></category>
            <category><![CDATA[drag]]></category>
            <category><![CDATA[drag-drop]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Abhishek Kumar]]></dc:creator>
            <pubDate>Tue, 08 Apr 2025 06:28:55 GMT</pubDate>
            <atom:updated>2025-04-08T06:45:02.231Z</atom:updated>
            <content:encoded><![CDATA[<h3>[Under Review] How to Build a Drag &amp; Drop File Upload in React (and Fix the Broken Click After Drop Issue)</h3><p>Uploading files in a React app is pretty common, but making it <em>feel good</em> — especially with drag &amp; drop — takes a bit more finesse. One of the trickiest bugs I faced recently was that the <strong>upload button wouldn’t work immediately after dropping a file</strong>.</p><p>In this post, I’ll show you how to:</p><ul><li>Create a clean, drag &amp; drop file upload component in React</li><li>Hide the input element</li><li>Handle drag events without messy state</li><li>Fix the post-drop “ghost click” issue where the upload button requires two clicks</li></ul><p>Let’s go 👇</p><h3>✅ Step 1: Set Up the Component</h3><p>Here’s a full, ready-to-use component:</p><pre>import React, { useRef, useState } from &#39;react&#39;;<br><br>export default function FileUpload() {<br>  const inputRef = useRef(null);<br>  const fileRef = useRef(null);<br>  const [previewUrl, setPreviewUrl] = useState(null);<br>  const [fileReady, setFileReady] = useState(false);<br>  const handleClick = () =&gt; {<br>    inputRef.current?.click();<br>  };<br>  const handleChange = (e) =&gt; {<br>    const file = e.target.files[0];<br>    if (file) {<br>      handleFile(file);<br>      setFileReady(true); // file selected via input<br>    }<br>  };<br>  const handleDrop = (e) =&gt; {<br>    e.preventDefault();<br>    const file = e.dataTransfer.files[0];<br>    if (file) {<br>      handleFile(file);<br>      setTimeout(() =&gt; {<br>        window.focus(); <br>        setFileReady(true);<br>      }, 100);<br>    }<br>  };<br>  const handleDragOver = (e) =&gt; {<br>    e.preventDefault(); // stop default behavior (e.g. opening file)<br>  };<br>  const handleFile = (file) =&gt; {<br>    fileRef.current = file;<br>    const reader = new FileReader();<br>    reader.onloadend = () =&gt; {<br>      setPreviewUrl(reader.result);<br>    };<br>    reader.readAsDataURL(file);<br>  };<br>  const handleUpload = () =&gt; {<br>    if (!fileReady) return;<br>    const file = fileRef.current;<br>    if (!file) return;<br>    const formData = new FormData();<br>    formData.append(&#39;file&#39;, file);<br>    console.log(&#39;Uploading:&#39;, file.name);<br>    // You can now POST this formData<br>    // fetch(&#39;/api/upload&#39;, { method: &#39;POST&#39;, body: formData });<br>  };<br>  return (<br>    &lt;div<br>      onClick={handleClick}<br>      onDrop={handleDrop}<br>      onDragOver={handleDragOver}<br>      style={{<br>        border: &#39;2px dashed #ccc&#39;,<br>        padding: &#39;30px&#39;,<br>        textAlign: &#39;center&#39;,<br>        borderRadius: &#39;10px&#39;,<br>        cursor: &#39;pointer&#39;,<br>      }}<br>    &gt;<br>      &lt;input<br>        type=&quot;file&quot;<br>        ref={inputRef}<br>        onChange={handleChange}<br>        style={{ display: &#39;none&#39; }}<br>      /&gt;<br>      &lt;p&gt;Click or drag a file here to upload&lt;/p&gt;<br>      {previewUrl &amp;&amp; (<br>        &lt;img<br>          src={previewUrl}<br>          alt=&quot;preview&quot;<br>          style={{ marginTop: &#39;10px&#39;, maxWidth: &#39;200px&#39; }}<br>        /&gt;<br>      )}<br>      &lt;br /&gt;<br>      &lt;button<br>        onPointerUp={handleUpload}<br>        style={{<br>          marginTop: &#39;15px&#39;,<br>          padding: &#39;10px 20px&#39;,<br>          fontSize: &#39;16px&#39;,<br>          cursor: fileReady ? &#39;pointer&#39; : &#39;not-allowed&#39;,<br>          opacity: fileReady ? 1 : 0.5,<br>        }}<br>      &gt;<br>        Upload<br>      &lt;/button&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><h3>🧠 Why the Upload Button Wasn’t Working After Drop</h3><p>When you drag a file from your desktop, the browser temporarily <strong>loses focus</strong> during the drag. After the drop happens:</p><ul><li>The browser regains focus</li><li>But the very next click event (especially on the same element) is <strong>sometimes lost</strong></li></ul><p>That’s why:</p><ul><li>Upload works after file <strong>selection</strong></li><li>Upload fails on <strong>first click after drop</strong></li><li>But works on <strong>second click</strong></li></ul><h3>✅ The Fix</h3><ul><li>Use onPointerUp instead of onClick (fires more reliably post-drop)</li><li>Delay fileReady with setTimeout to give the browser time to refocus</li><li>Avoid drag state entirely — keep the logic clean and scoped</li></ul><h3>🧪 How to Use</h3><ol><li>Copy the component into your React project.</li><li>Import and use it inside a page:</li></ol><pre>import FileUpload from &#39;./FileUpload&#39;;<br>function App() {<br>  return &lt;FileUpload /&gt;;<br>}</pre><h3>🛠 Bonus: Debugging Focus Issues After Drop</h3><p>If you’re curious about <strong>why the button click sometimes fails after dropping a file</strong>, it helps to <strong>observe how the browser handles focus</strong> during drag events.</p><p>You can use the following snippet inside a useEffect to log when the browser loses or regains focus:</p><pre>useEffect(() =&gt; {<br>  const handleFocus = () =&gt; {<br>    console.log(&#39;✅ Window focused again&#39;);<br>  };<br>  const handleBlur = () =&gt; {<br>    console.log(&#39;⚠️ Window lost focus&#39;);<br>  };<br><br>  window.addEventListener(&#39;focus&#39;, handleFocus);<br>    window.addEventListener(&#39;blur&#39;, handleBlur);<br>    return () =&gt; {<br>      window.removeEventListener(&#39;focus&#39;, handleFocus);<br>      window.removeEventListener(&#39;blur&#39;, handleBlur);<br>    };<br>  }, []);</pre><h3>🔍 What You’ll See in Console:</h3><ul><li>When you <strong>start dragging a file from outside the browser</strong>, you’ll likely see:</li><li>⚠️ Window lost focus</li><li>When you <strong>drop the file into the drop zone</strong>, then you’ll see:</li><li>✅ Window focused again</li></ul><p>This confirms that the browser <strong>temporarily blurs</strong>, which can cause the first click (or onClick) to fail if it happens <em>immediately</em> after a drop.</p><p>Using onPointerUp and delaying activation with setTimeout ensures your buttons behave correctly post-drop.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30d4dd8feeac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Standards Followed for Component Libraries]]></title>
            <link>https://medium.com/@abhishek2kr/standards-followed-by-component-libraries-57523b4735d0?source=rss-1a69ceaa44f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/57523b4735d0</guid>
            <category><![CDATA[standards]]></category>
            <category><![CDATA[ag-grid]]></category>
            <category><![CDATA[mui]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[angular-material]]></category>
            <dc:creator><![CDATA[Abhishek Kumar]]></dc:creator>
            <pubDate>Tue, 29 Oct 2024 13:43:19 GMT</pubDate>
            <atom:updated>2024-10-29T13:43:38.402Z</atom:updated>
            <content:encoded><![CDATA[<p>Certifications for component libraries like <strong>AG Grid</strong>, <strong>Material UI (MUI)</strong>, and <strong>Angular Material</strong> are primarily based on accessibility, performance, and security standards that are assessed by certain criteria or certifications. Here’s a breakdown of standards and compliance guidelines followed by each of these libraries to help them achieve certification-like status:</p><h3>1. Material UI (MUI)</h3><p>MUI aims to be highly accessible, customizable, and follows <strong>Material Design</strong> principles. Here are some standards it commonly adheres to:</p><ul><li><strong>WCAG 2.1 AA Compliance</strong>: Ensures components meet color contrast ratios and are accessible to users with disabilities. Follows <strong>keyboard navigation</strong> standards for focus management and non-mouse interactions.</li><li><strong>WAI-ARIA Compliance</strong>: Uses ARIA attributes and roles to improve compatibility with screen readers. Ensures clear labeling for all form controls and interactive components.</li><li><strong>Best Practices</strong>: Accessibility testing tools (e.g., Lighthouse or Axe) are used to validate components meet industry standards.</li><li><strong>Internationalization (i18n)</strong>: Supports localization, making it suitable for global applications.</li><li><strong>Responsive Design</strong>: Follows responsive design standards to adapt to various device sizes and orientations, ensuring a mobile-first approach.</li><li><strong>Accessibility Testing Tools</strong>: Integrates with automated tools like Jest and Cypress for accessibility and unit tests.</li></ul><h3>2. Angular Material</h3><p>Angular Material follows <strong>Material Design</strong> standards while maintaining a focus on accessibility and compatibility across different devices:</p><ul><li><strong>Material Design Compliance</strong>: Ensures components follow Google’s Material Design guidelines, providing a unified look and feel across Angular applications.</li><li><strong>WCAG 2.1 AA Compliance</strong>: Components are built to meet contrast requirements and support screen readers and keyboard navigation.</li><li><strong>WAI-ARIA and A11Y</strong>: Provides a11y support with ARIA roles, labels, and instructions that make custom components accessible.</li><li><strong>Testing and Validation</strong>: Regular accessibility audits using tools like Axe or Angular DevTools.</li><li><strong>Compatibility</strong>: Cross-browser support with a strong emphasis on performance and optimization for lower-end devices.</li><li><strong>Documentation Standards</strong>: Well-documented guidelines for accessibility and theming options, promoting consistent usage.</li><li><strong>Responsive and Mobile Standards</strong>: Optimized for responsive layouts, making components functional across different devices and screen sizes.</li></ul><h3>3. AG Grid</h3><p>AG Grid is mainly focused on data-heavy applications, so its certification standards lean towards accessibility, performance, and enterprise-grade security:</p><ul><li><strong>WCAG 2.1 and Section 508 Compliance</strong>: Includes color contrast, ARIA roles, and keyboard navigation. Supports screen reader accessibility and offers options to customize these features.</li><li><strong>WAI-ARIA Standards</strong>: Implements ARIA roles for cells, rows, and headers to ensure screen readers can interpret data. Provides ARIA alerts for status updates, e.g., “row selected.”</li><li><strong>High Performance Standards</strong>: Built for enterprise-level applications with a focus on rendering performance and scalability.</li><li><strong>Keyboard Navigation</strong>: Full keyboard navigation with shortcuts for navigating grids and performing actions without a mouse.</li><li><strong>Customizable Compliance Options</strong>: Allows developers to adjust settings to meet specific accessibility needs, making it suitable for international standards.</li><li><strong>Responsive Support</strong>: Provides adaptable layouts for larger datasets, ensuring it performs well on both desktop and mobile.</li></ul><h3>General Standards for Certification Compliance in UI Libraries</h3><p>For each library to achieve compliance and certification standards, they generally follow these common practices:</p><ul><li><strong>Accessibility (A11Y)</strong>: WCAG 2.1 Level AA or above, and Section 508 for US government accessibility standards.</li><li><strong>Usability and Consistency</strong>: Consistent component behavior and interaction design for ease of use.</li><li><strong>Performance and Optimization</strong>: Minimal rendering times, optimized for low-latency environments.</li><li><strong>Security</strong>: Adherence to security best practices, including protection against XSS, CSRF, and vulnerabilities in third-party integrations.</li><li><strong>Internationalization (i18n)</strong>: Support for multiple languages and cultural formatting, essential for global applications.</li></ul><p>If a component library wants formal certification, many opt for <strong>accessibility certification</strong> (e.g., WCAG, Section 508) and <strong>performance audits</strong> through professional testing platforms or third-party validators (like Lighthouse or Axe for accessibility, BrowserStack for compatibility testing).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57523b4735d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best way to commit you merge/pull request]]></title>
            <link>https://medium.com/@abhishek2kr/best-way-to-commit-you-merge-pull-request-5f0cb614382b?source=rss-1a69ceaa44f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f0cb614382b</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[pr]]></category>
            <category><![CDATA[merge]]></category>
            <category><![CDATA[merge-request]]></category>
            <category><![CDATA[commit]]></category>
            <dc:creator><![CDATA[Abhishek Kumar]]></dc:creator>
            <pubDate>Tue, 25 Jul 2023 11:00:12 GMT</pubDate>
            <atom:updated>2023-07-25T11:00:12.336Z</atom:updated>
            <content:encoded><![CDATA[<p>When we raise PR for our code changes then its good practice to use proper commit message</p><p>Let there is new user story then for that we raise like <strong>ORG-STORYNUMBER | Feature | Description</strong></p><p>If there is fix for some JIRA/Radar in the code then <strong>ORG-STORY NUMBER | FIX | Description or summary</strong></p><p>If there is fix without JIRA/Radar then <strong>FIX | Summary</strong></p><p>if there is Update then <strong>Update | Summary</strong></p><p><strong>STORY Number | Type of Code | Description</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f0cb614382b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install Multiple Microsoft Teams]]></title>
            <link>https://medium.com/@abhishek2kr/install-multiple-microsoft-teams-b0fa3e687791?source=rss-1a69ceaa44f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0fa3e687791</guid>
            <category><![CDATA[microsoft-teams]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[multiple]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[windows-10]]></category>
            <dc:creator><![CDATA[Abhishek Kumar]]></dc:creator>
            <pubDate>Mon, 17 Jul 2023 11:32:52 GMT</pubDate>
            <atom:updated>2023-07-17T11:32:52.847Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Windows 10:</h3><p>Let you have already installed Microsoft teams in your desktop/laptop as application. Now let you want to access another approved organization teams in same machine, follow the below.</p><p>To get started, launch Edge and log into your Microsoft Teams account. Then click the <strong>Settings and more</strong> (three dots) button in the upper-right corner of the browser. Then scroll down and click <strong>Apps &gt; Install this site as an app</strong> from the menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gOzLdZIBJDvN7JqCv3Rh9w.png" /></figure><p>After this in Opened pop Up, Give some name, click on install.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*tQ3zNCuAT_iGg2oatVefFQ.png" /></figure><p>Then check option as per your choice in another pop up like below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*XsTG4e0sI24Rhrf4WDiAlQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0fa3e687791" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>