RocketChat / Rocket.Chat.Apps-engine

The Rocket.Chat Apps engine and definitions.

Home Page:https://rocketchat.github.io/Rocket.Chat.Apps-engine/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Registered button in Livechat room is not visible

cuonghuunguyen opened this issue · comments

Precondition

  • Don't enable any extra Room Action for the livechat (like canned response)

Reproduce

  • Register a button to the Livechat Room action bar
configurationExtend.ui.registerButton({
			actionId: "test-button",
			labelI18n: "Test Button",
			context: UIActionButtonContext.ROOM_ACTION,
			when: {
				roomTypes: [RoomTypeFilter.LIVE_CHAT]
			}
		});

It will appear invisible like this:
image

The button is still clickable but the user cannot see it.

Due to the guidelines here: https://developer.rocket.chat/apps-engine/extend-app-capabilities/apps-engine-user-interface/apps-engine-ui-guidelines and the code here https://github.com/RocketChat/Rocket.Chat/blob/develop/apps/meteor/client/views/room/providers/hooks/useAppsRoomActions.ts#L26. We cannot specify an icon for the register button.

Do you have any recommendation or should we allow adding icon for the registered button to solve this case?

i am new to this Apps-engine project, and i want to contribute to this project as a newbie.
As i have not found any community channel specific to this project, so if it is there please share it with me
And also please guide me in how can i contribute here

i want to work on this issue, so please assign it to me