brwong
pushed to master at brwong/playlist-extension
7f18c6c57b manually added channel categories; formatted code
c42fa43d3c feat: add save channel functionality with curl command generation
at the bottom of the popup, add a new button called "save channel". clicking it will switch to a new view (or page). the view is only active if the currently open tab's url contains `youtube.com.*/videos`. at the top of the view, there is a texteditable field with a copy button. the copy button will copy the contents of the field to the clipboard (add clipboard permission to the extension manifest *IF* necessary). underneath the field and the copy button is a list of "categories", and clicking on the categories will modify the contents of the field. the field will be populated with the following string:
```
curl -X POST -H 'content-type: application/json' -d '{"query": "mutation add{ addChannel(details: {category: \"<category>\", checkInterval: 14, name: \"<title>\", url: \"<url>\"}){name} } "}' localhost:8543/data | jq '.'
```
where `<category>` is the currently selected category (defaulting to the first one), `<title>` is the page title of the currently active tab with the trailing " - YouTube" removed, and `<url>` is the url of the currently active tab. for now, start with these categories: "FOR BOTH", "CHANNELS", and "CREATIVE".
```git-revs
6c2f424 (Base revision)
5b16600 Add clipboard permission for copy functionality in save channel feature
87abcf9 Add save channel header and view to HTML
ea7f26a Add save channel view container to HTML
5d4c522 Add Save Channel button to the main view
1084413 Add save channel properties to Alpine.js data object
7e79988 Update getCurrentTab to detect YouTube videos pages and initialize curl command
b179fae Add save channel methods after updateAddCurrentPageButtonText method
9b92ab9 Add save channel view header binding
d8ef0c0 Add save channel container binding
ef7c3f1 Add save channel button binding
aeda96c Add save channel specific bindings (copy button, category buttons, notice)
60289eb Add CSS styles for save channel functionality
041a0cb Create documentation file for save channel feature
2836498 Add disabled state to copy button when not on YouTube videos page
09b60b0 Add disabled state styling for copy button
3d383a3 Rename isCurrentTabYoutubeVideos to isCurrentTabChannelPage in property declaration
912a230 Rename isCurrentTabYoutubeVideos to isCurrentTabChannelPage in getCurrentTab method
192dd0c Rename isCurrentTabYoutubeVideos to isCurrentTabChannelPage in updateCurlCommand method
b8294b5 Rename isCurrentTabYoutubeVideos to isCurrentTabChannelPage in copyCurlButton binding
6cdcee1 Rename isCurrentTabYoutubeVideos to isCurrentTabChannelPage in saveChannelNotice binding
d8e9fdd Add checkInterval property to save channel properties
fca7889 Update updateCurlCommand to use checkInterval property
a993eda Add method to update check interval
52c3488 Add interval input section between copy button and categories
84ebdf2 Add interval input binding for two-way data binding
bc4e3e0 Add CSS styling for interval input section
354c388 Add active state CSS for copy button visual feedback
HEAD Update documentation with interval input feature and editable textarea consideration
```
codemcp-id: 12-feat-add-save-channel-functionality-with-curl-comm
1d54c30a54 feat: explore adding open tabs to playlist export
the popup menu has a button to "export" the playlists. it currently puts the `playlists` and the `playbackHistory` into a json object along with the `exportDate`, and triggers the browser to download it. how feasible would it be to add `openTabs` to the export, containing a url and page title for each? don't make any code changes yet, just propose a plan for now.
```git-revs
9466114 (Base revision)
bc083a3 Document analysis and plan for adding open tabs to playlist export
bf804c5 Add open tabs collection to export functionality
45eec6c Mark open tabs export feature as completed in TODO list
HEAD Add implementation details to documentation
```
codemcp-id: 11-feat-explore-adding-open-tabs-to-playlist-export
8fc3478533 feat: add reference, to rewatch, and to save tags to history view
in the history view of the popup menu, there are toggleable tags for each video. currently only "notable" is an option; add three more: "reference", "to rewatch", and "to save".
```git-revs
7a1cb3b (Base revision)
eb406c5 Add three new tag buttons to history view: reference, to rewatch, and to save
HEAD Save codemcp conversation log for adding history tags feature
```
codemcp-id: 10-feat-add-reference-to-rewatch-and-to-save-tags-to-
a217556e4d adjusted codemcp instructions; adjusted to-do list
- View comparison for these 7 commits »
1 year ago