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

feat: share to twitter after post and add preview on menu item #342

Merged
merged 2 commits into from Apr 14, 2023

Conversation

Innei
Copy link
Member

@Innei Innei commented Apr 14, 2023

WHAT

🤖 Generated by Copilot at 9c2063f

This pull request adds the ability to preview and share pages from the dashboard menu. It modifies the PagesManagerMenu component and adds a helper function to src/lib/helpers.ts to generate page URLs from notes.

🤖 Generated by Copilot at 9c2063f

Preview and share pages
PagesManagerMenu grows
Autumn leaves fall fast

WHY

image

HOW

🤖 Generated by Copilot at 9c2063f

  • Import helper functions and types for generating page URLs and tweet texts (link, link)
  • Define Item interface for menu items and use useGetSite hook to fetch site data (link, link)
  • Add "Preview" and "Share to Twitter" menu items that use helper functions to open new windows (link)

Signed-off-by: Innei <tukon479@gmail.com>
@vercel
Copy link

vercel bot commented Apr 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
xlog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2023 4:45pm

@Innei
Copy link
Member Author

Innei commented Apr 14, 2023

image

@Innei Innei requested a review from DIYgod April 14, 2023 16:39
Signed-off-by: Innei <tukon479@gmail.com>
@DIYgod DIYgod merged commit 52f2335 into Crossbell-Box:dev Apr 14, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants