Inconsistent title for Conversation Opener #4656

Closed
opened 2026-02-21 18:07:25 -05:00 by yindo · 1 comment
Owner

Originally created by @harrywang on GitHub (Jul 17, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.14

Cloud or Self Hosted

Cloud

Steps to reproduce

Inconsistent title:

Screenshot 2024-07-17 at 5 08 03 PM

✔️ Expected Behavior

Should be Conversation Opener

Actual Behavior

inconsistency

Originally created by @harrywang on GitHub (Jul 17, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.6.14 ### Cloud or Self Hosted Cloud ### Steps to reproduce Inconsistent title: <img width="1259" alt="Screenshot 2024-07-17 at 5 08 03 PM" src="https://github.com/user-attachments/assets/021db031-8cb0-4479-8bce-30eeb5524785"> ### ✔️ Expected Behavior Should be Conversation Opener ### ❌ Actual Behavior inconsistency
yindo added the 🐞 bug label 2026-02-21 18:07:25 -05:00
yindo closed this issue 2026-02-21 18:07:25 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jul 17, 2024):

To resolve the issue of an inconsistent title for the "Conversation Opener" feature in the Dify application, ensure that the title is consistently referred to as "Conversation Opening" throughout the documentation and the application interface.

  1. Update Documentation: Ensure that the documentation consistently uses "Conversation Opening" [1].

  2. Update Code: Check and update the title in the code where it is set dynamically. For example, in web/app/components/share/text-generation/index.tsx:

    useEffect(() => {
      if (siteInfo?.title) {
        if (canReplaceLogo)
          document.title = `${siteInfo.title}`
        else
          document.title = `${siteInfo.title} - Powered by Dify`
      }
    }, [siteInfo?.title, canReplaceLogo])
    

    Also, ensure the title is set correctly in other relevant files, such as web/app/(commonLayout)/tools/page.tsx:

    'use client'
    import type { FC } from 'react'
    import { useTranslation } from 'react-i18next'
    import React, { useEffect } from 'react'
    import ToolProviderList from '@/app/components/tools/provider-list'
    
    const Layout: FC = () => {
      const { t } = useTranslation()
    
      useEffect(() => {
        document.title = `${t('tools.title')} - Dify`
      }, [])
    
      return <ToolProviderList />
    }
    export default React.memo(Layout)
    
  3. Update Localization Files: Ensure that the translation files, such as web/i18n/pl-PL/app-overview.ts, are updated to reflect the correct title [2].

  4. CSS and Styling: Check the CSS classes that might affect the display of the title. For example, the Panel component and .title class in style.module.css:

    .title {
      margin-bottom: 8px;
      font-size: 13px;
      line-height: 18px;
      font-weight: 500;
      color: #101828;
      text-transform: capitalize;
    }
    

    Ensure these classes are applied correctly to maintain consistency [3][4].

By following these steps, you can ensure that the title "Conversation Opening" is used consistently across the Dify application.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Jul 17, 2024): <!-- Answer --> To resolve the issue of an inconsistent title for the "Conversation Opener" feature in the Dify application, ensure that the title is consistently referred to as "Conversation Opening" throughout the documentation and the application interface. 1. **Update Documentation**: Ensure that the documentation consistently uses "Conversation Opening" <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/guides/application-orchestrate/app-toolkits/README.md)</sup>. 2. **Update Code**: Check and update the title in the code where it is set dynamically. For example, in `web/app/components/share/text-generation/index.tsx`: ```tsx useEffect(() => { if (siteInfo?.title) { if (canReplaceLogo) document.title = `${siteInfo.title}` else document.title = `${siteInfo.title} - Powered by Dify` } }, [siteInfo?.title, canReplaceLogo]) ``` Also, ensure the title is set correctly in other relevant files, such as `web/app/(commonLayout)/tools/page.tsx`: ```tsx 'use client' import type { FC } from 'react' import { useTranslation } from 'react-i18next' import React, { useEffect } from 'react' import ToolProviderList from '@/app/components/tools/provider-list' const Layout: FC = () => { const { t } = useTranslation() useEffect(() => { document.title = `${t('tools.title')} - Dify` }, []) return <ToolProviderList /> } export default React.memo(Layout) ``` 3. **Update Localization Files**: Ensure that the translation files, such as `web/i18n/pl-PL/app-overview.ts`, are updated to reflect the correct title <sup>[[2]](https://github.com/langgenius/dify/blob/main/web/i18n/pl-PL/app-overview.ts)</sup>. 4. **CSS and Styling**: Check the CSS classes that might affect the display of the title. For example, the `Panel` component and `.title` class in `style.module.css`: ```css .title { margin-bottom: 8px; font-size: 13px; line-height: 18px; font-weight: 500; color: #101828; text-transform: capitalize; } ``` Ensure these classes are applied correctly to maintain consistency <sup>[[3]](https://github.com/langgenius/dify/blob/main/web/app/components/app/configuration/features/chat-group/opening-statement/index.tsx)</sup><sup>[[4]](https://github.com/langgenius/dify/blob/main/web/app/components/app/configuration/config-var/config-modal/style.module.css)</sup>. By following these steps, you can ensure that the title "Conversation Opening" is used consistently across the Dify application. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4656