diff --git a/.playwright-mcp/colorful-bg.png b/.playwright-mcp/colorful-bg.png deleted file mode 100644 index 6230768..0000000 Binary files a/.playwright-mcp/colorful-bg.png and /dev/null differ diff --git a/.playwright-mcp/floating-modal.png b/.playwright-mcp/floating-modal.png deleted file mode 100644 index f063f0e..0000000 Binary files a/.playwright-mcp/floating-modal.png and /dev/null differ diff --git a/.playwright-mcp/login-full.png b/.playwright-mcp/login-full.png deleted file mode 100644 index 3fca5d8..0000000 Binary files a/.playwright-mcp/login-full.png and /dev/null differ diff --git a/.playwright-mcp/login-modal.png b/.playwright-mcp/login-modal.png deleted file mode 100644 index 9216e26..0000000 Binary files a/.playwright-mcp/login-modal.png and /dev/null differ diff --git a/.playwright-mcp/welcome-page.png b/.playwright-mcp/welcome-page.png deleted file mode 100644 index e4ac07d..0000000 Binary files a/.playwright-mcp/welcome-page.png and /dev/null differ diff --git a/changelog.md b/changelog.md index 00d7fd7..cfd8e21 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,14 @@ # Changelog +## 2025-12-01 - 1.5.0 - feat(account) +Refactor account UI styles into reusable design tokens, apply updated styles across views and fix login submit behavior + +- Introduce accountDesignTokens and split shared styles into tokens (accountDesignTokens), cardStyles and typographyStyles while keeping a legacy default export for compatibility +- Apply new design tokens to account components (content, baseview, subscriptions) and switch background to use CSS variable (--background) +- Small UI tweaks: smoother transition easing on view container, updated icon for organization entries and adjusted spacing +- Add placeholder sections for Upcoming Billable Items and Past Invoices in subscriptions view +- Fix login prompt submit handling by disabling the submit button via its #loginSubmitButton selector and improving button text logic + ## 2025-04-03 - 1.4.3 - fix(website) Update packageManager configuration in package.json and refine view container background styling diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 2ee5539..a0ee570 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@idp.global/idp.global', - version: '1.4.3', + version: '1.5.0', description: 'An identity provider software managing user authentications, registrations, and sessions.' } diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index 2ee5539..a0ee570 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@idp.global/idp.global', - version: '1.4.3', + version: '1.5.0', description: 'An identity provider software managing user authentications, registrations, and sessions.' } diff --git a/ts_web/elements/account/content.ts b/ts_web/elements/account/content.ts index 726c645..f0e0fb4 100644 --- a/ts_web/elements/account/content.ts +++ b/ts_web/elements/account/content.ts @@ -12,6 +12,7 @@ import { } from '@design.estate/dees-element'; import { LeleAccountNavigation } from './navigation.js'; +import { accountDesignTokens } from './sharedstyles.js'; import * as views from './views/index.js'; import * as accountstate from '../../states/accountstate.js'; @@ -36,15 +37,13 @@ export class IdpAccountContent extends DeesElement { public static styles = [ cssManager.defaultStyles, + accountDesignTokens, css` :host { display: block; - color: #fff; - padding-top: 10px; - padding-bottom: 10px; height: 100%; width: 100%; - background: ${cssManager.bdTheme('#eeeeeb', '#000000')} + background: var(--background); } :host([hidden]) { display: none; @@ -72,7 +71,7 @@ export class IdpAccountContent extends DeesElement { height: 100vh; overflow-y: scroll; overscroll-behavior: contain; - transition: all 0.3s; + transition: all 0.3s ease; opacity: 1; } diff --git a/ts_web/elements/account/navigation.ts b/ts_web/elements/account/navigation.ts index dd3b857..3c5b3eb 100644 --- a/ts_web/elements/account/navigation.ts +++ b/ts_web/elements/account/navigation.ts @@ -12,6 +12,7 @@ import { import * as plugins from '../../plugins.js'; import * as states from '../../states/accountstate.js'; import { IdpState } from '../../states/idp.state.js'; +import { accountDesignTokens } from './sharedstyles.js'; import { commitinfo } from '../../../dist_ts/00_commitinfo_data.js'; @@ -23,108 +24,122 @@ declare global { @customElement('lele-accountnavigation') export class LeleAccountNavigation extends DeesElement { - @property() - accessor options: { text: string; id: string }[] = [ - { - id: '1', - text: 'Apps', - }, - { - id: '2', - text: 'Users', - }, - { - id: '3', - text: 'Activity', - }, - { - id: '4', - text: 'Billing & Subscription', - }, - ]; - constructor() { super(); } public static styles = [ cssManager.defaultStyles, + accountDesignTokens, css` :host { - display: block; - color: ${cssManager.bdTheme('#333', '#fff')}; - padding: 10px; - padding-left: 0px; - background: ${cssManager.bdTheme('#eeeeeb', '#000')}; - border-right: ${cssManager.bdTheme('1px solid #ccc', '1px solid #111')}; + display: flex; + flex-direction: column; + background: var(--card); + border-right: 1px solid var(--border); + height: 100%; } :host([hidden]) { display: none; } + .logoArea { + padding: 20px 16px; + border-bottom: 1px solid var(--border); + flex-shrink: 0; + } + .logo { - font-family: 'Cal Sans'; - letter-spacing: 0.0125em; - font-size: 16px; - text-align: center; - padding: 16px 0px 16px 0px; - margin: -8px -8px -16px 0px; - border-bottom: 1px solid #111111; - cursor: default; - position: relative; - z-index: 10; + font-family: 'Cal Sans', 'Geist Sans', sans-serif; + letter-spacing: -0.02em; + font-size: 20px; + font-weight: 600; + color: var(--foreground); + cursor: pointer; + transition: opacity 0.15s ease; + display: flex; + align-items: center; + gap: 8px; } .logo:hover { - background: ${unsafeCSS(plugins.deesCatalog.colors.dark.blue)}; + opacity: 0.8; + } + + .logo dees-icon { + font-size: 24px; + opacity: 0.9; + } + + .navContent { + flex: 1; + overflow-y: auto; + padding-bottom: 16px; } .commitinfo { + flex-shrink: 0; text-align: center; - position: absolute; - bottom: 0px; - left: 0px; - font-family: 'Intel One Mono'; - width: 100%; - font-size: 12px; - padding: 8px; - border-top: ${cssManager.bdTheme('1px solid #ccc', '1px solid #333')}; - color: ${cssManager.bdTheme('#666', '#ccc')}; + font-family: 'Geist Mono', monospace; + font-size: 10px; + padding: 12px 16px; + border-top: 1px solid var(--border); + color: var(--muted-foreground); + opacity: 0.6; + background: var(--card); } .navigationGroupLabel { - width: min-content; - white-space: nowrap; + font-size: 10px; + font-weight: 600; text-transform: uppercase; - font-size: 12px; - font-weight: 300; - border-bottom: 1px solid; - border-image: linear-gradient(to right, orange, #44444400) 1; - color: ${cssManager.bdTheme('#666', '#ccc')}; - margin-bottom: 5px; - padding-top: 32px; - padding-left: 10px; - padding-bottom: 5px; + letter-spacing: 0.08em; + color: var(--muted-foreground); + padding: 20px 16px 8px; + opacity: 0.7; + } + + .navigationGroupLabel:first-of-type { + padding-top: 16px; } .navigationOption { - border-top-right-radius: 30px; - border-bottom-right-radius: 30px; + display: flex; + align-items: center; + gap: 10px; + padding: 10px 12px; + margin: 2px 8px; + border-radius: 8px; + font-size: 13px; font-weight: 500; - padding: 8px; - padding-left: 10px; - margin-bottom: 5px; - font-size: 14px; + color: var(--muted-foreground); + transition: all 0.15s ease; + cursor: pointer; } .navigationOption:hover { - cursor: default; - background: ${cssManager.bdTheme('#bbb', plugins.deesCatalog.colors.dark.blue)}; + background: var(--muted); + color: var(--foreground); } + + .navigationOption dees-icon { + font-size: 16px; + opacity: 0.7; + flex-shrink: 0; + } + + .navigationOption:hover dees-icon { + opacity: 1; + } + + .divider { + height: 1px; + background: var(--border); + margin: 8px 16px; + } + dees-input-dropdown { - margin-top: 16px; - margin-bottom: 16px; - margin-left: 8px; + margin: 8px; } `, ]; @@ -136,57 +151,98 @@ export class LeleAccountNavigation extends DeesElement { public render(): TemplateResult { return html` - -