[PR #74] [MERGED] [pinterest] Add Support for Pinterest #78

Closed
opened 2025-10-31 16:56:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/feeddeck/feeddeck/pull/74
Author: @ricoberger
Created: 11/25/2023
Status: Merged
Merged: 11/25/2023
Merged by: @ricoberger

Base: mainHead: pinterest-add-support-for-pinterest


📝 Commits (1)

  • 3dbcf62 [pinterest] Add Support for Pinterest

📊 Changes

20 files changed (+641 additions, -11 deletions)

View changed files

📝 app/fonts/FDIcons.ttf (+0 -0)
📝 app/lib/models/source.dart (+13 -0)
📝 app/lib/utils/fd_icons.dart (+2 -0)
📝 app/lib/widgets/item/details/item_details.dart (+6 -0)
app/lib/widgets/item/details/item_details_pinterest.dart (+40 -0)
📝 app/lib/widgets/item/details/utils/item_title.dart (+4 -0)
📝 app/lib/widgets/item/preview/item_preview.dart (+6 -0)
app/lib/widgets/item/preview/item_preview_pinterest.dart (+50 -0)
📝 app/lib/widgets/item/preview/utils/item_description.dart (+4 -0)
📝 app/lib/widgets/source/add/add_source.dart (+9 -4)
app/lib/widgets/source/add/add_source_pinterest.dart (+128 -0)
📝 app/lib/widgets/source/source_icon.dart (+7 -0)
📝 app/templates/iconfont/config.json (+14 -0)
📝 app/templates/iconfont/iconfont.afdesign (+0 -0)
app/templates/iconfont/pinterest.svg (+7 -0)
📝 landing/app/page.tsx (+19 -0)
📝 supabase/functions/_shared/feed/feed.ts (+15 -0)
supabase/functions/_shared/feed/pinterest.ts (+309 -0)
📝 supabase/functions/_shared/feed/rss.ts (+0 -1)
📝 supabase/functions/_shared/models/source.ts (+8 -6)

📄 Description

This commit adds a new source type "pinterest", which can be used to follow the post of an user or a board on Pinterest. To use the new source type a user can select the "Pinterest" item in the add source modal. In the form a user can provide the username or board he wants to follow via FeedDeck.

In the corresponding Supabase function we then convert the input provided by the user to an valid RSS feed url for Pinterest. This means that we have to add /feed.rss for users and .rss for boards to the Pinterest url.

Then we generate the source and items as for the other sources and reuse the existing components to render the preview and details item. We had to adjust the rendering logic for these items, to ignore empty values, from which also other sources will benefit.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/feeddeck/feeddeck/pull/74 **Author:** [@ricoberger](https://github.com/ricoberger) **Created:** 11/25/2023 **Status:** ✅ Merged **Merged:** 11/25/2023 **Merged by:** [@ricoberger](https://github.com/ricoberger) **Base:** `main` ← **Head:** `pinterest-add-support-for-pinterest` --- ### 📝 Commits (1) - [`3dbcf62`](https://github.com/feeddeck/feeddeck/commit/3dbcf62e0b383fb28ae8b48cdc947f46b53f5c51) [pinterest] Add Support for Pinterest ### 📊 Changes **20 files changed** (+641 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `app/fonts/FDIcons.ttf` (+0 -0) 📝 `app/lib/models/source.dart` (+13 -0) 📝 `app/lib/utils/fd_icons.dart` (+2 -0) 📝 `app/lib/widgets/item/details/item_details.dart` (+6 -0) ➕ `app/lib/widgets/item/details/item_details_pinterest.dart` (+40 -0) 📝 `app/lib/widgets/item/details/utils/item_title.dart` (+4 -0) 📝 `app/lib/widgets/item/preview/item_preview.dart` (+6 -0) ➕ `app/lib/widgets/item/preview/item_preview_pinterest.dart` (+50 -0) 📝 `app/lib/widgets/item/preview/utils/item_description.dart` (+4 -0) 📝 `app/lib/widgets/source/add/add_source.dart` (+9 -4) ➕ `app/lib/widgets/source/add/add_source_pinterest.dart` (+128 -0) 📝 `app/lib/widgets/source/source_icon.dart` (+7 -0) 📝 `app/templates/iconfont/config.json` (+14 -0) 📝 `app/templates/iconfont/iconfont.afdesign` (+0 -0) ➕ `app/templates/iconfont/pinterest.svg` (+7 -0) 📝 `landing/app/page.tsx` (+19 -0) 📝 `supabase/functions/_shared/feed/feed.ts` (+15 -0) ➕ `supabase/functions/_shared/feed/pinterest.ts` (+309 -0) 📝 `supabase/functions/_shared/feed/rss.ts` (+0 -1) 📝 `supabase/functions/_shared/models/source.ts` (+8 -6) </details> ### 📄 Description This commit adds a new source type "pinterest", which can be used to follow the post of an user or a board on Pinterest. To use the new source type a user can select the "Pinterest" item in the add source modal. In the form a user can provide the username or board he wants to follow via FeedDeck. In the corresponding Supabase function we then convert the input provided by the user to an valid RSS feed url for Pinterest. This means that we have to add `/feed.rss` for users and `.rss` for boards to the Pinterest url. Then we generate the source and items as for the other sources and reuse the existing components to render the preview and details item. We had to adjust the rendering logic for these items, to ignore empty values, from which also other sources will benefit. <!-- Keep PR title verbose enough and add prefix telling about what source it touches e.g "[rss] Add feature xyz" or if the the PR is not realated to a source use "[core]", e.g. "[core] Fix xyz". If you add a breaking change within your PR you should add ":warning:" to the title, e.g. ":warning: [core] My breaking change" --> <!-- Description of what have been changed. Please also reference an issue, when available. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-10-31 16:56:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/feeddeck#78