RestyaPlatform / board

Trello like kanban board. Based on Restya platform.
http://restya.com/board/
Open Software License 3.0
2.04k stars 381 forks source link

Feature request: Put board name before site name #4406

Open laryn opened 2 years ago

laryn commented 2 years ago

Expected Behavior

If I have multiple boards open in multiple tabs, it would be nice to be able to tell them apart based on the small preview of the page title in the tab.

Current Behavior

Currently if you click into a card, the tab title is changed. But if you have the page open to the board overview, it displays as "Sitename's Restyaboard | Board - Boardname" and all tabs look identical even if they have different boards open.

Possible Solution

I suggest a default pattern of "Boardname | Sitename's Restyaboard" for page titles when viewing the board overview page (ie. not clicked into a specific card).

laryn commented 2 years ago

This appears to be where the code sets the page title:

https://github.com/RestyaPlatform/board/blob/dev/client/js/common.js#L21-L30

laryn commented 2 years ago

So it looks like the sitename first is intentional, but I suggest changing that.

    var title_format = (Iscardview === true) ? "%s | %s's Restyaboard" : "%s's Restyaboard | %s";
    var title_content = (Iscardview === true) ? [title, SITE_NAME] : [SITE_NAME, title];

Am I missing a reason why having the sitename first is preferable?

sridhar391 commented 2 years ago

@laryn We have site name first in the title of Restyaboard pages to differentiate the Restyaboard page from other tabs and thanks for the suggestion and we will discuss within the team