Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Simplify docs feedback interaction #39075

Merged
merged 12 commits into from
Sep 25, 2023

Conversation

alexfauquette
Copy link
Member

The goal is to add actions directly into messages, such that with a single click, you can:

  • delete useless messages -> will be saved to see later if there is some pattern
  • open an issue
  • save it in a sheet (if the message is insightful but is not something to fix)

@alexfauquette alexfauquette added the scope: docs-infra Specific to the docs-infra product label Sep 20, 2023
@mui-bot
Copy link

mui-bot commented Sep 20, 2023

Netlify deploy preview

https://deploy-preview-39075--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 6521791

Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

netlify/functions/feedback-management.js Outdated Show resolved Hide resolved
type: 'plain_text',
text: 'Save',
},
action_id: 'save_message',
Copy link
Member

@oliviertassinari oliviertassinari Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel I will stop using this action. But it sounds fair to keep both, at the very least for the sake of continuity & experimenting with GitHub issues.

@oliviertassinari oliviertassinari added the enhancement This is not a bug, nor a new feature label Sep 20, 2023
@alexfauquette alexfauquette marked this pull request as ready for review September 21, 2023 10:49
Co-authored-by: Jan Potoms <[email protected]>
Signed-off-by: Alexandre Fauquette <[email protected]>
message,
} = body;

const { quote, links } = getQuoteAndLinks(message);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a suggestion, but I quickly skimmed this doc

I may be misunderstanding it, but it looks like you can specify a value to pass along as payload when clicking the delete button. If so, that could offer a more structured way of passing along this information?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not use it because it only accepts a string and I need multiple values.

But now I see it could be used with JSON.stringify({ quote, links }) and JSON.parse

Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, I added one suggestion where you could look into to improve a bit passing data from the original slack message to the delete action. I could be wrong though. If you feel like looking deeper into it, happy to rereview your changes, otherwise good to merge.

Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

docs/src/modules/components/AppLayoutDocsFooter.js Outdated Show resolved Hide resolved
Co-authored-by: Olivier Tassinari <[email protected]>
Signed-off-by: Alexandre Fauquette <[email protected]>
Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is much neater, great improvement!

@alexfauquette alexfauquette merged commit de50413 into mui:master Sep 25, 2023
9 checks passed
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Sep 25, 2023
Co-authored-by: Jan Potoms <[email protected]>
Co-authored-by: Olivier Tassinari <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is not a bug, nor a new feature scope: docs-infra Specific to the docs-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants