Skip to content

Conversation

@rasika2012
Copy link
Contributor

@rasika2012 rasika2012 commented Feb 2, 2026

Purpose

image

This pull request introduces several improvements to the web application's branding, user interface, and usability. The most significant changes include the addition of a new Logo component with a scalable SVG logo, enhancements to the document title handling for improved accessibility and SEO, and updates to the main layout to reflect the new branding. Additionally, the HTML metadata has been expanded for better social sharing and discoverability.

Branding and UI Enhancements:

  • Added a new Logo component as an SVG, which adapts to the color scheme and replaces the previous placeholder logo in the navigation bar. (console/workspaces/libs/views/src/component/Logo/Logo.tsx, console/workspaces/libs/views/src/component/Logo/index.ts, console/workspaces/libs/views/src/component/MainLayout/subcomponents/NavBarToolbar.tsx, [1] [2] [3] [4]
  • Updated the application title and favicon, and added Open Graph and Twitter meta tags for improved SEO and social media sharing. (console/apps/webapp/index.html, console/apps/webapp/index.htmlL5-R23)

Usability Improvements:

  • Introduced a useDocumentTitle React hook to dynamically set the document title based on the current page, and integrated it into the PageLayout component for consistent title updates. (console/workspaces/libs/views/src/hooks/useDocumentTitle.ts, console/workspaces/libs/views/src/component/PageLayout/PageLayout.tsx, [1] [2] [3]
  • Exported the new Logo component and useDocumentTitle hook from the shared views library for use throughout the application. (console/workspaces/libs/views/src/component/index.ts, console/workspaces/libs/views/src/hooks/index.ts, console/workspaces/libs/views/src/index.ts, [1] [2] [3]

Issue: #276

Goals

Describe the solutions that this feature/fix will introduce to resolve the problems described above

Approach

Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email [email protected] to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here.

User stories

Summary of user stories addressed by this change>

Release note

Brief description of the new feature or bug fix as it will appear in the release notes

Documentation

Link(s) to product documentation that addresses the changes of this PR. If no doc impact, enter �N/A� plus brief explanation of why there�s no doc impact

Training

Link to the PR for changes to the training content in https://github.com/wso2/WSO2-Training, if applicable

Certification

Type â��Sentâ�� when you have provided new/updated certification questions, plus four answers for each question (correct answer highlighted in bold), based on this change. Certification questions/answers should be sent to [email protected] and NOT pasted in this PR. If there is no impact on certification exams, type â��N/Aâ�� and explain why.

Marketing

Link to drafts of marketing content that will describe and promote this feature, including product page changes, technical articles, blog posts, videos, etc., if applicable

Automation tests

  • Unit tests

    Code coverage information

  • Integration tests

    Details about the test cases and coverage

Security checks

Samples

Provide high-level details about the samples related to this feature

Related PRs

List any other related PRs

Migrations (if applicable)

Describe migration steps and platforms on which migration has been tested

Test environment

List all JDK versions, operating systems, databases, and browser/versions on which this feature/fix was tested

Learning

Describe the research phase and any blog posts, patterns, libraries, or add-ons you used to solve the problem.

Summary by CodeRabbit

  • New Features

    • Dynamic document title management that updates and restores the browser title per page.
    • New reusable logo component that adapts automatically to light and dark themes.
  • UI/Style Updates

    • Updated favicon, page title branding to "WSO2 Agent Manager Console", and enhanced SEO/social metadata.
    • Navigation area logo sizing/centering adjusted for improved layout.

@rasika2012 rasika2012 changed the title Add Console Icons and Dynamic page titles Add Console Icons and Dynamic Page Titles Feb 2, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 2, 2026

📝 Walkthrough

Walkthrough

Adds a theme-aware Logo component, a useDocumentTitle hook, HTML metadata and favicon updates, replaces an inline logo with the external Logo in the navbar, and re-exports the new Logo and hooks via barrel files.

Changes

Cohort / File(s) Summary
HTML Metadata
console/apps/webapp/index.html
Replaced favicon from /vite.svg to /icon.svg; added meta description, updated title to "WSO2 Agent Manager Console", and added Open Graph and Twitter Card metadata.
Logo Component
console/workspaces/libs/views/src/component/Logo/Logo.tsx, console/workspaces/libs/views/src/component/Logo/index.ts
Added new Logo React component (theme-aware SVG fill using MUI useColorScheme) and an index re-export with license header. Exports Logo and LogoProps.
Navbar refactor
console/workspaces/libs/views/src/component/MainLayout/subcomponents/NavBarToolbar.tsx
Removed inline Logo implementation; import and use external Logo inside a Box wrapper to control sizing/centering in the nav button.
Document title hook
console/workspaces/libs/views/src/hooks/useDocumentTitle.ts, console/workspaces/libs/views/src/hooks/index.ts
Added useDocumentTitle(title?, baseTitleFallback) hook that sets/restores document.title, guards SSR (no-op without document), and re-exported it from hooks index.
PageLayout usage & exports
console/workspaces/libs/views/src/component/PageLayout/PageLayout.tsx, console/workspaces/libs/views/src/component/index.ts, console/workspaces/libs/views/src/index.ts
PageLayout now calls useDocumentTitle(title); barrel files updated to re-export Logo and hooks from the public surface.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 A little logo hops with cheer,
Dark or light, it’s always clear,
Titles whisper, meta hums,
Favicons dance where sunlight comes,
I nibble bugs and code with glee. 🎨

🚥 Pre-merge checks | ✅ 1 | ❌ 2
❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description provides detailed Purpose section with issue link and comprehensive technical details, but most required template sections (Goals, Approach, User stories, Release note, Documentation, etc.) are left unfilled with only placeholder template text. Complete missing template sections: Goals, Approach, User stories, Release note, Documentation, Training, Certification, Marketing, Automation tests, Security checks, Samples, Related PRs, Migrations, Test environment, and Learning. At minimum, address critical sections like Documentation and Security checks.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main changes: implementing dynamic document titles and updating the favicon/header icons for the console application.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@rasika2012 rasika2012 changed the title Add Console Icons and Dynamic Page Titles Implement dynamic titles and updated icons (favicon/header) for the console Feb 2, 2026
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: 1

🤖 Fix all issues with AI agents
In `@console/workspaces/libs/views/src/hooks/useDocumentTitle.ts`:
- Around line 19-48: The hook currently uses baseTitleRef to capture
document.title but nested uses can read an already-modified title and cleanup
resets incorrectly; update useDocumentTitle to capture and restore the previous
title per hook instance: add a prevTitleRef (e.g., prevTitleRef.current =
document.title) on mount before changing document.title, use a module-level
initialBaseTitle (or keep baseTitleRef as the single cached original) so
baseTitleRef only stores the very first original title (document.title ||
baseTitleFallback) and never the modified one, update document.title to
`${title} | ${baseTitleRef.current}` and in the cleanup restore
prevTitleRef.current (not baseTitleRef.current) so nested components revert to
their immediate previous title.
🧹 Nitpick comments (2)
console/workspaces/libs/views/src/component/MainLayout/subcomponents/NavBarToolbar.tsx (2)

105-122: Redundant outer Box wrapper with gap: 1.5.

The outer Box (lines 105-111) specifies gap: 1.5 but contains only a single child element (the inner Box). The gap property has no effect with one child. Consider simplifying by removing the outer wrapper.

♻️ Suggested simplification
-              <Box
-                sx={{
-                  display: 'flex',
-                  alignItems: 'center',
-                  gap: 1.5,
-                }}
-              >
-                <Box
-                  sx={{
-                    width: theme.spacing(24),
-                    display: 'flex',
-                    alignItems: 'center',
-                    justifyContent: 'center',
-                  }}
-                >
-                  <Logo />
-                </Box>
-              </Box>
+              <Box
+                sx={{
+                  width: theme.spacing(24),
+                  display: 'flex',
+                  alignItems: 'center',
+                  justifyContent: 'center',
+                }}
+              >
+                <Logo />
+              </Box>

34-35: Missing blank line between import and interface declaration.

There should be a blank line separating the import statements from the interface declaration for better readability.

♻️ Suggested fix
 import { Logo } from '../../Logo/Logo';
+
 export interface NavBarToolbarProps {

@nadheesh nadheesh merged commit bc946fd into wso2:main Feb 3, 2026
4 checks passed
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.

2 participants