Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sujitaw
Copy link
Contributor

@sujitaw sujitaw commented Oct 16, 2025

What

  • added verfier's own logo on sign in page

Important

Introduces dynamic logo loading for verifier login using DynamicApplicationLogo component, updating several components and adding environment configuration.

  • Behavior:
    • Introduces DynamicApplicationLogo component in DynamicLogo.tsx to dynamically load logos based on clientAlias and theme.
    • Updates ResetPassword.tsx, SignUpViewPage.tsx, and sigin-view.tsx to use DynamicApplicationLogo instead of static logo imports.
    • Adds clientAlias parameter to forgotPassword function in Auth.ts to support dynamic logo loading.
  • Environment:
    • Adds NEXT_PUBLIC_LOGO_BASE_URL to .env.demo for dynamic logo URL configuration.

This description was created by Ellipsis for 7cc33fc. You can customize this summary. It will automatically update as commits are pushed.

@sujitaw sujitaw requested a review from shitrerohit October 16, 2025 14:01
@sujitaw sujitaw self-assigned this Oct 16, 2025
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Changes requested ❌

Reviewed everything up to e0a36b5 in 7 minutes and 13 seconds. Click for details.
  • Reviewed 62 lines of code in 1 files
  • Skipped 2 files when reviewing.
  • Skipped posting 2 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/features/components/sigin-view.tsx:30
  • Draft comment:
    The comparison against 'VERIFIER' is case sensitive. Consider normalizing the alias (e.g., using toUpperCase) for more robust matching.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 50% This is a UI feature that changes the logo based on a query parameter. While case-insensitive matching might be more forgiving, there's no strong evidence that this is actually a problem. The expected value 'VERIFIER' could be part of a contract or specification. Without knowing the broader system context or requirements, we can't be certain this needs to be changed. The comment raises a valid software engineering practice, but we don't know if case-sensitivity is actually a requirement here. The current code might be working exactly as intended. Given that this is a UI feature and the value appears to be a fixed constant, the current implementation could be intentional and working correctly in production. The comment should be removed as it makes assumptions about requirements without strong evidence that case-sensitivity is a problem.
2. src/features/components/sigin-view.tsx:52
  • Draft comment:
    For better accessibility, update the alt text to reflect the actual logo (e.g., 'Verifier Logo') when clientAlias is 'VERIFIER'.
  • Reason this comment was not posted:
    Comment was on unchanged code.

Workflow ID: wflow_2pcEAJTEArFZOqmD

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed b9a1dd1 in 45 seconds. Click for details.
  • Reviewed 17 lines of code in 1 files
  • Skipped 2 files when reviewing.
  • Skipped posting 1 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/features/components/sigin-view.tsx:37
  • Draft comment:
    Consider refactoring duplicated logo assignment logic; also verify that the hardcoded alias 'EDUCREDS' and its logo paths (using .svg) align with expected naming conventions and the case-sensitivity of the query parameter.
  • Reason this comment was not posted:
    Confidence changes required: 50% <= threshold 50% None

Workflow ID: wflow_QLUUI3liyCztBW4g

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed 78a273c in 1 minute and 54 seconds. Click for details.
  • Reviewed 23 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/features/components/sigin-view.tsx:34
  • Draft comment:
    Ensure NEXT_PUBLIC_LOGO_BASE_URL includes a trailing slash; otherwise URL concatenation (e.g. '${process.env.NEXT_PUBLIC_LOGO_BASE_URL}${alias}_logo_dark.svg') may be incorrect.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 50% The comment starts with "Ensure that..." which is a red flag per our rules. It's asking the author to verify something rather than pointing out a definite issue. We don't know if NEXT_PUBLIC_LOGO_BASE_URL already has a trailing slash in the environment config. This is more of a speculative "what if" comment rather than pointing out a clear problem. The comment does raise a valid concern about URL construction. Missing slashes in URLs can cause real problems. While URL construction is important, this comment is speculative and asks for verification rather than pointing out a definite issue. We don't have evidence that this is actually a problem. Delete the comment. It violates our rules by being speculative and asking for verification rather than pointing out a definite issue.
2. src/features/components/sigin-view.tsx:35
  • Draft comment:
    Verify asset naming and format: The VERIFIER dark logo changed from PNG ('/logos/verifier_logo_dark.png') to SVG (using '${alias}_logo_dark.svg'); also EDUCREDS now uses dynamic naming. Confirm these changes match your asset files.
  • Reason this comment was not posted:
    Comment looked like it was already resolved.
3. src/features/components/sigin-view.tsx:40
  • Draft comment:
    Ensure the clientAlias (used as 'alias') is sanitized/validated before using it in the logo URL to prevent potential misuse or broken asset paths.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.

Workflow ID: wflow_4jH5ebMCQEgGom2D

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed 4f62cc7 in 41 seconds. Click for details.
  • Reviewed 36 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/features/components/sigin-view.tsx:30
  • Draft comment:
    The new if(alias) block now accepts any alias, unlike the previous explicit cases. Confirm that allowing arbitrary alias values is intended.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
2. src/features/components/sigin-view.tsx:31
  • Draft comment:
    Ensure NEXT_PUBLIC_LOGO_BASE_URL has a trailing slash to prevent URL concatenation issues.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None

Workflow ID: wflow_GToiGRa5pMx2coth

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed 9fd3cba in 48 seconds. Click for details.
  • Reviewed 247 lines of code in 6 files
  • Skipped 0 files when reviewing.
  • Skipped posting 6 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/app/api/Auth.ts:78
  • Draft comment:
    Add optional 'clientAlias' parameter to forgotPassword payload for verifier-specific behavior.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. src/app/reset-password/ResetPassword.tsx:87
  • Draft comment:
    Refactor logo rendering by replacing static Image with DynamicLogo for consistent theming.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
3. src/features/components/DynamicLogo.tsx:34
  • Draft comment:
    Good dynamic logo logic; consider validating NEXT_PUBLIC_LOGO_BASE_URL to guard against undefined values.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
4. src/features/components/SignUpViewPage.tsx:17
  • Draft comment:
    Replacing the static logo with DynamicLogo ensures consistent branding across pages.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
5. src/features/components/sigin-view.tsx:18
  • Draft comment:
    DynamicLogo integration here improves maintainability over using static image paths.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
6. src/features/components/user-auth-form.tsx:263
  • Draft comment:
    Pass 'clientAlias' from search params to forgotPassword API call to support verifier-specific branding.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_ktVytoICQDyBfx7P

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@sujitaw sujitaw changed the title fix/logo change for verifier login fix: logo change for verifier login Oct 17, 2025
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skipped PR review on ce5f8d4 because no changed files had a supported extension. If you think this was in error, please contact us and we'll fix it right away.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed a61301a in 1 minute and 2 seconds. Click for details.
  • Reviewed 83 lines of code in 4 files
  • Skipped 0 files when reviewing.
  • Skipped posting 4 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/app/reset-password/ResetPassword.tsx:18
  • Draft comment:
    DynamicApplicationLogo import is updated correctly. Ensure consistent branding across pages.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% This comment is asking the PR author to ensure something, which violates the rule against asking the author to ensure behavior. It doesn't provide a specific suggestion or point out a specific issue in the code.
2. src/features/components/DynamicLogo.tsx:8
  • Draft comment:
    Component renamed to DynamicApplicationLogo—consider renaming the file for coherence.
  • Reason this comment was not posted:
    Comment was on unchanged code.
3. src/features/components/SignUpViewPage.tsx:3
  • Draft comment:
    Usage of DynamicApplicationLogo is consistent with the new logo component name.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% This comment is purely informative and does not provide any actionable feedback or suggestions for improvement. It simply states that the usage is consistent, which does not help the PR author improve the code.
4. src/features/components/sigin-view.tsx:3
  • Draft comment:
    DynamicApplicationLogo is used correctly here, ensuring consistency with other auth pages.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% This comment is purely informative, as it only states that something is used correctly without providing any actionable feedback or suggestions for improvement.

Workflow ID: wflow_Gjwu569LCTytc8K4

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@pranalidhanavade pranalidhanavade force-pushed the fix/logo_change_for_verifier_login branch from a61301a to 7cc33fc Compare October 23, 2025 07:59
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed 7cc33fc in 1 minute and 19 seconds. Click for details.
  • Reviewed 98 lines of code in 5 files
  • Skipped 0 files when reviewing.
  • Skipped posting 10 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. .env.demo:35
  • Draft comment:
    Added NEXT_PUBLIC_LOGO_BASE_URL variable; consider providing a default value or a note to ensure it ends with a trailing slash.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
2. src/app/reset-password/ResetPassword.tsx:18
  • Draft comment:
    Replaced DynamicLogo import with DynamicApplicationLogo for clarity and consistency.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
3. src/app/reset-password/ResetPassword.tsx:87
  • Draft comment:
    Updated logo component usage to DynamicApplicationLogo to match the updated import.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
4. src/features/components/DynamicLogo.tsx:8
  • Draft comment:
    Renamed component to DynamicApplicationLogo; ensure the component name and file usage remain consistent across the project.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
5. src/features/components/DynamicLogo.tsx:20
  • Draft comment:
    When using process.env.NEXT_PUBLIC_LOGO_BASE_URL with alias, ensure the URL ends with a trailing slash to avoid broken image paths.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
6. src/features/components/DynamicLogo.tsx:44
  • Draft comment:
    Updated export default to DynamicApplicationLogo after the component renaming.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
7. src/features/components/SignUpViewPage.tsx:3
  • Draft comment:
    Updated import to DynamicApplicationLogo for consistent branding.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
8. src/features/components/SignUpViewPage.tsx:17
  • Draft comment:
    Using DynamicApplicationLogo ensures consistent logo display in the layout.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
9. src/features/components/sigin-view.tsx:3
  • Draft comment:
    Updated import to DynamicApplicationLogo for uniform branding.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
10. src/features/components/sigin-view.tsx:18
  • Draft comment:
    Ensured use of DynamicApplicationLogo for consistent logo display on the sign-in page.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_6fbJ8bPi2r0V2fFD

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@pranalidhanavade pranalidhanavade force-pushed the fix/logo_change_for_verifier_login branch from 7cc33fc to 393fe12 Compare October 23, 2025 08:11
Signed-off-by: sujitaw <[email protected]>
Signed-off-by: pranalidhanavade <[email protected]>
Signed-off-by: sujitaw <[email protected]>
Signed-off-by: pranalidhanavade <[email protected]>
Signed-off-by: sujitaw <[email protected]>
Signed-off-by: pranalidhanavade <[email protected]>
Signed-off-by: sujitaw <[email protected]>
Signed-off-by: pranalidhanavade <[email protected]>
Signed-off-by: sujitaw <[email protected]>
Signed-off-by: pranalidhanavade <[email protected]>
Signed-off-by: sujitaw <[email protected]>
Signed-off-by: pranalidhanavade <[email protected]>
Signed-off-by: sujitaw <[email protected]>
Signed-off-by: pranalidhanavade <[email protected]>
@pranalidhanavade pranalidhanavade force-pushed the fix/logo_change_for_verifier_login branch from 393fe12 to 172e7bc Compare October 23, 2025 08:15
@pranalidhanavade pranalidhanavade merged commit 1db6e52 into main Oct 23, 2025
2 checks passed
@pranalidhanavade pranalidhanavade deleted the fix/logo_change_for_verifier_login branch October 23, 2025 08:17
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.

5 participants