Methods, apparatuses, devices, medium and product for information display and information sending
Embodiments of the disclosure relate to methods, apparatuses, devices, medium and product for information display and information sending. The method for information display includes: in response to receiving a sent OKR link in a session, obtaining OKR display information corresponding to the OKR link, wherein the OKR display information includes at least one objective information and/or key result information corresponding to the objective information; displaying the OKR display information in a first display area of the session based on a predetermined display rule. According to embodiments of the present disclosure, after receiving the OKR link, the instant messaging client can directly browse the OKR information without opening the OKR system, which improves the speed of the user obtaining information and improves the user experience.
1 . A method for information display, comprising:
receiving, at an instant messaging client implemented at an electronic device, an objective and key result (OKR) link in a session, the OKR link indicating an address link of OKR information in an OKR system;
parsing, at the instant messaging client, the OKR information based on the OKR link via a communication framework between the instant messaging client and the OKR system, wherein the OKR information comprises at least one of: OKR summary information or OKR display information, and the OKR display information comprises at least one objective information and/or key result information corresponding to the at least one objective information;
determining whether a user corresponding to the session has the right to view the OKR display information based on the OKR link;
displaying, on a first display page displayed on the electronic device, the OKR information comprising the OKR display information, in a first display area of the first display page based on a predetermined display rule, in accordance with the user having the right to review the OKR display information, wherein the first display page corresponds to the session of the instant messaging client,
wherein if the OKR link is a periodic OKR link, the OKR display information comprises at least one objective information within a period, and wherein displaying the OKR display information in the first display area based on the predetermined display rule comprises: displaying at least one objective information within the period in the first display area, the objective information comprising at least one of: an objective serial number, an objective content, and a user link related to the objective content, and
wherein if the OKR display information comprises a plurality of objective information within the period, the method further comprises: in accordance with a determination that the user corresponding to the session has a viewing right for any one of the objective information in the period, displaying the objective information corresponding to the viewing right; and
jumping, in response to detecting a user operation on the first display area, from the first display page to an OKR page displayed on the electronic device to display the OKR display information in a first manner on the OKR page, the OKR page corresponding to the OKR system,
wherein within a first predetermined duration from obtaining the OKR display information for the first time, the viewing right is updated in real time based on a modification of the viewing right by the OKR system, or
wherein after the first predetermined duration from obtaining the OKR display information for the first time, the viewing right is delayed updated based on the modification of the viewing right by the OKR system.
2 . The method of claim 1 , wherein displaying the OKR information in a first display area based on a predetermined display rule comprises:
displaying card information in the first display area, the card information comprising: the OKR summary information and/or the OKR display information, the OKR summary information comprising: an OKR period and an OKR creator.
3 . The method of claim 1 , wherein if the OKR link is a single OKR link, the OKR display information comprises one objective information and/or at least one key result information corresponding to the objective information,
wherein displaying the OKR display information in the first display area based on the predetermined display rule comprises:
displaying the objective information and/or the at least one key result information corresponding to the objective information in the first display area, the objective information comprising at least one of: an objective serial number, an objective content, and a user link related to the objective content, the key result information comprising at least one of: a key result serial number, a key result content, and a user link related to the key result content.
4 . The method of claim 3 , wherein if the OKR display information comprises one objective information and at least one key result information corresponding to the objective information, the method further comprises:
in accordance with a determination that the user corresponding to the session has the right to view the objective information, displaying the objective information and the key result information corresponding to the objective information; and/or
in accordance with a determination that the user corresponding to the session has a viewing right for any of the key result information, displaying the key result information corresponding to the viewing right and the objective information corresponding to the key result information.
5 . The method of claim 1 , further comprising:
in accordance with a determination that the user corresponding to the session does not have the right to view the OKR display information, displaying first prompt information to prompt the user that he does not have the right to view the OKR display information.
6 . The method of claim 1 , wherein displaying the OKR display information in the first manner on the OKR page comprises:
displaying one of the objective information and at least one key result information corresponding to the objective information in the OKR page in an objective display manner, the objective display manner being different from a display manner of other objective information and at least one key result corresponding to the objective information.
7 . The method of claim 1 , further comprising:
in accordance with a determination that an OKR creator corresponding to the OKR link does not belong to a same organizational structure as a user in the session, displaying the OKR link in the session.
8 . An electronic device comprising
one or more processors;
a storage device for storing one or more programs;
when the one or more programs are executed by the one or more processors, causing the one or more processors to implement a method comprising:
receiving, at an instant messaging client implemented at the electronic device, an objective and key result (OKR) link in a session, the OKR link indicating an address link of OKR information in an OKR system;
parsing, at the instant messaging client, the OKR information based on the OKR link via a communication framework between the instant messaging client and the OKR system, wherein the OKR information comprises OKR summary information and/or OKR display information, and the OKR display information comprises at least one objective information and/or key result information corresponding to the at least one objective information;
determining whether a user corresponding to the session has the right to view the OKR display information based on the OKR link;
displaying, on a first display page displayed on the electronic device, the OKR information comprising the OKR display information, in a first display area of the first display page based on a predetermined display rule, in accordance with the user having the right to review the OKR display information, wherein the first display page corresponds to the session of the instant messaging client,
wherein if the OKR link is a periodic OKR link, the OKR display information comprises at least one objective information within a period, and wherein displaying the OKR display information in the first display area based on the predetermined display rule comprises: displaying at least one objective information within the period in the first display area, the objective information comprising at least one of: an objective serial number, an objective content, and a user link related to the objective content, and
wherein if the OKR display information comprises a plurality of objective information within the period, the method further comprises: in accordance with a determination that the user corresponding to the session has a viewing right for any one of the objective information in the period, displaying the objective information corresponding to the viewing right; and
jumping, in response to detecting a user operation on the first display area, from the first display page to an OKR page displayed on the electronic device to display the OKR display information in a first manner on the OKR page, the OKR page corresponding to the OKR system,
wherein within a first predetermined duration from obtaining the OKR display information for the first time, the viewing right is updated in real time based on a modification of the viewing right by the OKR system, or
wherein after the first predetermined duration from obtaining the OKR display information for the first time, the viewing right is delayed updated based on the modification of the viewing right by the OKR system.
9 . The electronic device of claim 8 , wherein displaying the OKR information in a first display area based on a predetermined display rule comprises:
displaying card information in the first display area, the card information comprising: the OKR summary information and/or the OKR display information, the OKR summary information comprising: an OKR period and an OKR creator.
10 . The electronic device of claim 8 , wherein if the OKR link is a single OKR link, the OKR display information comprises one objective information and/or at least one key result information corresponding to the objective information;
displaying the OKR display information in the first display area based on the predetermined display rule comprises:
displaying the objective information and/or the at least one key result information corresponding to the objective information in the first display area, the objective information comprising at least one of: an objective serial number, an objective content, and a user link related to the objective content, the key result information comprising at least one of: a key result serial number, a key result content, and a user link related to the key result content.
11 . The electronic device of claim 8 , further comprising:
in accordance with a determination that the user corresponding to the session does not have the right to view the OKR display information, displaying first prompt information to prompt the user that he does not have the right to view the OKR display information.
12 . The electronic device of claim 8 , wherein displaying the OKR display information in the first manner on the OKR page comprises:
displaying one of the objective information and at least one key result information corresponding to the objective information in the OKR page in an objective display manner, the objective display manner being different from a display manner of other objective information and at least one key result corresponding to the objective information.
13 . The electronic device of claim 8 , further comprising:
in accordance with a determination that an OKR creator corresponding to the OKR link does not belong to a same organizational structure as a user in the session, displaying the OKR link in the session.
14 . A non-transitory computer-readable storage medium with a computer program stored thereon, the computer program when executed by a processor, cause the processor to implement a method comprising:
causing an instant messaging client to receive an objective and key result (OKR) link in a session, the OKR link indicating an address link of OKR information in an OKR system;
causing the instant messaging client to parse the OKR information based on the OKR link via a communication framework between the instant messaging client and the OKR system, wherein the OKR information comprises OKR summary information and/or OKR display information, and the OKR display information comprises at least one objective information and/or key result information corresponding to the at least one objective information;
causing to determine whether a user corresponding to the session has the right to view the OKR display information based on the OKR link;
causing to display, on a first display page, the OKR information comprising the OKR display information, in a first display area within the first display page based on a predetermined display rule, in accordance with the user having the right to review the OKR display information, wherein the first display page corresponds to the session of the instant messaging client,
wherein if the OKR link is a periodic OKR link, the OKR display information comprises at least one objective information within a period, and wherein displaying the OKR display information in the first display area based on the predetermined display rule comprises: displaying at least one objective information within the period in the first display area, the objective information comprising at least one of: an objective serial number, an objective content, and a user link related to the objective content, and
wherein if the OKR display information comprises a plurality of objective information within the period, the method further comprises: in accordance with a determination that the user corresponding to the session has a viewing right for any one of the objective information in the period, displaying the objective information corresponding to the viewing right; and
causing to jump, in response to detecting a user operation on the first display area, from the first display page to an OKR page to display the OKR display information in a first manner on the OKR page, the OKR page corresponding to the OKR system,
wherein within a first predetermined duration from obtaining the OKR display information for the first time, the viewing right is updated in real time based on a modification of the viewing right by the OKR system, or
wherein after the first predetermined duration from obtaining the OKR display information for the first time, the viewing right is delayed updated based on the modification of the viewing right by the OKR system.