<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Forms on Jesper Andersen - Blog &amp; DevLog</title><link>https://jespertandersen.github.io/Portfolio/tags/forms/</link><description>Recent content in Forms on Jesper Andersen - Blog &amp; DevLog</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>cph-ja472@stud.ek.dk (Jesper Andersen)</managingEditor><webMaster>cph-ja472@stud.ek.dk (Jesper Andersen)</webMaster><copyright>© 2026 Jesper Andersen</copyright><lastBuildDate>Sat, 16 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://jespertandersen.github.io/Portfolio/tags/forms/index.xml" rel="self" type="application/rss+xml"/><item><title>Maintenance Log Frontend - Twelfth Week: User Profiles, Employee Admin Actions, and Form Patterns</title><link>https://jespertandersen.github.io/Portfolio/devlog/maintenancelog-twelfthweek/</link><pubDate>Sat, 16 May 2026 00:00:00 +0000</pubDate><author>cph-ja472@stud.ek.dk (Jesper Andersen)</author><guid>https://jespertandersen.github.io/Portfolio/devlog/maintenancelog-twelfthweek/</guid><description>&lt;h1 class="relative group"&gt;Devlog Week 12: User Profiles, Employee Admin Actions, and Form Patterns
 &lt;div id="devlog-week-12-user-profiles-employee-admin-actions-and-form-patterns" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#devlog-week-12-user-profiles-employee-admin-actions-and-form-patterns" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h1&gt;
&lt;p&gt;This entry covers the employee-facing parts of the UI: profile views, edit flows, admin actions, and the form patterns used to keep components maintainable.&lt;/p&gt;

&lt;h2 class="relative group"&gt;What Changed
 &lt;div id="what-changed" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#what-changed" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;UserProfile&lt;/code&gt; supports both &amp;ldquo;me&amp;rdquo; and viewing other employees via dynamic route params&lt;/li&gt;
&lt;li&gt;Profile page extracted into focused subcomponents:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;EditProfileForm&lt;/code&gt;, &lt;code&gt;AdminActions&lt;/code&gt;, &lt;code&gt;PasswordChangeForm&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Form handling uses a mix of controlled inputs and a &lt;code&gt;FormData&lt;/code&gt; approach (when appropriate)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;useEffect&lt;/code&gt; race-condition prevention via an &lt;code&gt;ignore&lt;/code&gt; flag to avoid setting state after unmount&lt;/li&gt;
&lt;li&gt;Admin-only employee actions (deactivate/reactivate) gated by role and disallowed on own profile&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;

&lt;h2 class="relative group"&gt;User Profile: “Me” vs “Other Employee”
 &lt;div id="user-profile-me-vs-other-employee" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#user-profile-me-vs-other-employee" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;The profile route supports multiple entry points:&lt;/p&gt;</description></item></channel></rss>