Giter VIP home page Giter VIP logo

Comments (25)

brf153 avatar brf153 commented on July 17, 2024 1

@Nabhag8848 what I understood is
i) I will change the onInstall text to
Screenshot from 2024-01-30 20-17-37
ii) I will simply change the /notion connect text to Connect you Notion Workspace.

Do I need to make any further changes?

from apps.notion.

brf153 avatar brf153 commented on July 17, 2024

Incase of onInstallation message we need to attach the layout to top the the Hey username welcome to notion app message below the layout.

@Nabhag8848 I did not get this

from apps.notion.

Nabhag8848 avatar Nabhag8848 commented on July 17, 2024

Incase of onInstallation message we need to attach the layout to top the the Hey username welcome to notion app message below the layout.

@Nabhag8848 I did not get this

I mean Hey username welcome to notion app that text needs below layout so layout info will stick to top. meaning Hey username welcome to notion app should be first line incase of setting up the notion app..

from apps.notion.

Spiral-Memory avatar Spiral-Memory commented on July 17, 2024

@Nabhag8848 , I feel the issue lies here LayoutBlockType.SECTION only occupies a certain width. Both of the issue you mentioned, in that the text uses the function createSectionBlock and hence causing the issue. I am new to Rocket chat UI Kit, so i am not sure, which will be better to use in this case ?

image

Using getCreator of IModify, full line text can be done, then using createContextBlock that is custom function defined, it can be done.

from apps.notion.

Nabhag8848 avatar Nabhag8848 commented on July 17, 2024

@Nabhag8848 , I feel the issue lies here LayoutBlockType.SECTION only occupies a certain width. Both of the issue you mentioned, in that the text uses the function createSectionBlock and hence causing the issue. I am new to Rocket chat UI Kit, so i am not sure, which will be better to use in this case ?

image

Using getCreator of IModify, full line text can be done, then using createContextBlock that is custom function defined, it can be done.

Hey, I believe @brf153 is working on this issue. + please please please only work on one issue at a time.

from apps.notion.

Spiral-Memory avatar Spiral-Memory commented on July 17, 2024

@Nabhag8848 , Certainly, sir. I apologize if it caused any inconvenience. Well, which issue should I work on, sir? Apart from preserving the message one, as that is a significant issue and requires a lot of discussion to fully understand the implementation. Currently, I am looking for a good first issue to understand the codebase and how RC apps work.

from apps.notion.

brf153 avatar brf153 commented on July 17, 2024

@Nabhag8848 I believe there is an issue. For testing purposes, I created a function named sendNotificationWithBlock.
Screenshot from 2024-01-29 11-54-53

Initially, you can observe that I have commented out some code, and I'm not using any blocks at this point. As shown in the picture below, the text is fully visible and does not break.
Screenshot from 2024-01-29 11-57-12

When I remove the comment (i.e., when I add the block), I only get the block and not the message.
Screenshot from 2024-01-29 12-11-19

The section block, which we were using earlier, does not allow us to increase the width, causing the text to break.

We have two options: either replace the text with something else like Hello!👋 Connect your Notion Workspace without including the name, or consider making an issue in the apps-engine and try to address the problem there.

from apps.notion.

Nabhag8848 avatar Nabhag8848 commented on July 17, 2024

@Nabhag8848 I believe there is an issue. For testing purposes, I created a function named sendNotificationWithBlock. Screenshot from 2024-01-29 11-54-53

Initially, you can observe that I have commented out some code, and I'm not using any blocks at this point. As shown in the picture below, the text is fully visible and does not break. Screenshot from 2024-01-29 11-57-12

When I remove the comment (i.e., when I add the block), I only get the block and not the message. Screenshot from 2024-01-29 12-11-19

The section block, which we were using earlier, does not allow us to increase the width, causing the text to break.

We have two options: either replace the text with something else like Hello!👋 Connect your Notion Workspace without including the name, or consider making an issue in the apps-engine and try to address the problem there.

yep. new uikit sets either text or block at a time.
Can we have button as an attachment does that solve our problem or we would face the same issue ? if that doesn't we can change text to Hey ${username} !.

from apps.notion.

brf153 avatar brf153 commented on July 17, 2024

Oki I will check it

from apps.notion.

brf153 avatar brf153 commented on July 17, 2024

@Nabhag8848 I have implemented the functionality you stated above. I am sending the action block as an attachment. Although the UI might not be perfect, it is working fine.
Screenshot from 2024-01-30 12-09-00

from apps.notion.

brf153 avatar brf153 commented on July 17, 2024

Shall I raise a pr for these changes?

from apps.notion.

Nabhag8848 avatar Nabhag8848 commented on July 17, 2024

Shall I raise a pr for these changes?

Can we make a button variant to primary so we can have a blue background.+ change text to Connect to Workspace to maintain consistency across app. and about OnInstallation feature we have come up with solution and are we able to achieve as we intended ?

from apps.notion.

brf153 avatar brf153 commented on July 17, 2024

@Nabhag8848 I have made the changes for onInstall. It looks like
Screenshot from 2024-01-30 14-39-49

from apps.notion.

brf153 avatar brf153 commented on July 17, 2024

Can we add custom css to our code for the ui kit? I am not being able to add the style: "primary" to the attachment's block. But, when I make changes in the devtools of chrome, I am being able to make the required changes.
Screenshot from 2024-01-30 14-49-10

from apps.notion.

brf153 avatar brf153 commented on July 17, 2024

Without custom css our button and message will look like
Screenshot from 2024-01-30 14-56-23

from apps.notion.

Nabhag8848 avatar Nabhag8848 commented on July 17, 2024

Can we add custom css to our code for the ui kit? I am not being able to add the style: "primary" to the attachment's block. But, when I make changes in the devtools of chrome, I am being able to make the required changes. Screenshot from 2024-01-30 14-49-10

we can't as far as i know, hacks can go again RC design principles.

from apps.notion.

Nabhag8848 avatar Nabhag8848 commented on July 17, 2024

Without custom css our button and message will look like Screenshot from 2024-01-30 14-56-23

Are we using PRIMARY button anywhere else except the submit button of modal and Comment Button ? if not, this won't break consistency across app, we are good to go with this.

from apps.notion.

Nabhag8848 avatar Nabhag8848 commented on July 17, 2024

@Nabhag8848 I have made the changes for onInstall. It looks like Screenshot from 2024-01-30 14-39-49

Can we have that greeting on the second message ? also as we see, having two notification on install, can we make it one somehow and match the UI ? Can we have that layout as attachment and look as if it is attached below the notification with setup information like connect to workspace button, if thats possible lemme know.

from apps.notion.

brf153 avatar brf153 commented on July 17, 2024

Without custom css our button and message will look like Screenshot from 2024-01-30 14-56-23

Are we using PRIMARY button anywhere else except the submit button of modal and Comment Button ? if not, this won't break consistency across app, we are good to go with this.

Screenshot from 2024-01-30 19-26-43

Shall I make these the same as I have done for the /notion connect command?

from apps.notion.

brf153 avatar brf153 commented on July 17, 2024

Screenshot from 2024-01-30 19-29-02
By submit button of modal, do you mean these buttons?

from apps.notion.

brf153 avatar brf153 commented on July 17, 2024

@Nabhag8848 I have made the changes for onInstall. It looks like Screenshot from 2024-01-30 14-39-49

Can we have that greeting on the second message ? also as we see, having two notification on install, can we make it one somehow and match the UI ? Can we have that layout as attachment and look as if it is attached below the notification with setup information like connect to workspace button, if thats possible lemme know.

I can make something like
Screenshot from 2024-01-30 20-17-37
I think the layout you are talking about is the preview block which is having the notion's image, the header, the footer, and the text element. I have checked but I did not get anyway to send blocks as the attachment. The only block which we can send is the action block which is already defined in the IMessageAttachment

from apps.notion.

Nabhag8848 avatar Nabhag8848 commented on July 17, 2024

@Nabhag8848 I have made the changes for onInstall. It looks like Screenshot from 2024-01-30 14-39-49

Can we have that greeting on the second message ? also as we see, having two notification on install, can we make it one somehow and match the UI ? Can we have that layout as attachment and look as if it is attached below the notification with setup information like connect to workspace button, if thats possible lemme know.

I can make something like Screenshot from 2024-01-30 20-17-37 I think the layout you are talking about is the preview block which is having the notion's image, the header, the footer, and the text element. I have checked but I did not get anyway to send blocks as the attachment. The only block which we can send is the action block which is already defined in the IMessageAttachment

@brf153 This Looks Good !

from apps.notion.

Nabhag8848 avatar Nabhag8848 commented on July 17, 2024

Without custom css our button and message will look like Screenshot from 2024-01-30 14-56-23

Are we using PRIMARY button anywhere else except the submit button of modal and Comment Button ? if not, this won't break consistency across app, we are good to go with this.

Screenshot from 2024-01-30 19-26-43

Shall I make these the same as I have done for the /notion connect command?

@brf153 having button as attachment would break this buttons variation and will force us to change that to grey (not primary) which we can avoid, as mentioned earlier.

from apps.notion.

Nabhag8848 avatar Nabhag8848 commented on July 17, 2024

@brf153 Lets just have Connect your Notion Workspace
Final

from apps.notion.

Nabhag8848 avatar Nabhag8848 commented on July 17, 2024

@Nabhag8848 what I understood is
i) I will change the onInstall text to
Screenshot from 2024-01-30 20-17-37
ii) I will simply change the /notion connect text to Connect you Notion Workspace.

Do I need to make any further changes?

looks good. Good to go for making changes to PR🚀

from apps.notion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.