Skip to content

Conversation

@Lukecsharpwalker
Copy link
Owner

This pull request includes multiple changes across the codebase, focusing on improving naming conventions, enhancing functionality, fixing bugs, and cleaning up unused code. The most important changes involve renaming form controls for consistency, integrating new services for Supabase API interactions, and introducing utility functions for date formatting.

Naming Conventions and Consistency:

  • Renamed form controls in AddPostComponent (isDraftis_draft, datecreated_at) to align with database field names. ([[1]](https://github.com/Lukecsharpwalker/angularBlog/pull/43/files#diff-c7419c7b6835a28b5746e7f621d2c9cf648789a98c53c902308cab9760286560L65-R67), [[2]](https://github.com/Lukecsharpwalker/angularBlog/pull/43/files#diff-c7419c7b6835a28b5746e7f621d2c9cf648789a98c53c902308cab9760286560L98-R101), [[3]](https://github.com/Lukecsharpwalker/angularBlog/pull/43/files#diff-0041ce219fa2aaa696ac7bd5d13bbd0b8e85cb2bdf238a33078bb8f7b23d68efL7-R8), [[4]](https://github.com/Lukecsharpwalker/angularBlog/pull/43/files#diff-f82eec266eaf33e513b66b49a230898345a13330c8841599c260fa54aea083f4L7-R7))

Supabase Integration:

  • Added SupabaseService to AdminApiService and implemented addPost and updatePost methods to interact with the Supabase database. ([[1]](https://github.com/Lukecsharpwalker/angularBlog/pull/43/files#diff-0e734707fd40a3ea09fae6911816ef9a614a9a06793720889de91daabaaf7cc5R6-R21), [[2]](https://github.com/Lukecsharpwalker/angularBlog/pull/43/files#diff-0e734707fd40a3ea09fae6911816ef9a614a9a06793720889de91daabaaf7cc5L42-R55))

Date Handling:

  • Introduced formatDateToDDMMYYYY utility function for consistent date formatting across the application. ([src/app/utlis/date-utils.tsR1-R12](https://github.com/Lukecsharpwalker/angularBlog/pull/43/files#diff-61d095bd2a9eea85aa47e6ebecb8b3334e1c565dd97e09955d31965066628d69R1-R12))
  • Replaced date string in PostComponent with a computed signal to use the formatted created_at date. ([[1]](https://github.com/Lukecsharpwalker/angularBlog/pull/43/files#diff-0f93657f033516ff4b8ab4a1e27dd13403bfa0a8e6bb6e6baf22aaec50858c2fL38-R38), [[2]](https://github.com/Lukecsharpwalker/angularBlog/pull/43/files#diff-9bbc7239b2fe97b5ae652326a80842df36c98374f9407a5d807029b1edc6cefdL2-R20), [[3]](https://github.com/Lukecsharpwalker/angularBlog/pull/43/files#diff-9bbc7239b2fe97b5ae652326a80842df36c98374f9407a5d807029b1edc6cefdR29-R37))

Bug Fixes:

  • Resolved a merge conflict in add-post.component.html and ensured proper button rendering. ([src/app/admin/_components/add-post/add-post.component.htmlL11-L22](https://github.com/Lukecsharpwalker/angularBlog/pull/43/files#diff-dbb6af2c0d1f89647f98ab72a8406cb47686fd02e7a250ed0136790d3804f662L11-L22))
  • Fixed an issue with the src attribute in post.component.html to correctly call the date() function. ([src/app/reader/_components/main-page/post/post.component.htmlL6-R6](https://github.com/Lukecsharpwalker/angularBlog/pull/43/files#diff-d78893b493c4c9070c315c08ce7e143c0035cd954f5ee9306f764469cbe0db72L6-R6))

Cleanup and Miscellaneous:

  • Removed unused dependencies, such as quill-delta, from angular.json. ([angular.jsonL25](https://github.com/Lukecsharpwalker/angularBlog/pull/43/files#diff-2d2675bb4687601a5c7ccf707455132f90f3516a33716185687e5c41df59ac7dL25))
  • Updated reset-password.ts to use tsx instead of ts-node. ([reset-password.tsL9-R9](https://github.com/Lukecsharpwalker/angularBlog/pull/43/files#diff-ebcef6e9356f751e35b74520a7cfbf3dfad838d1b5cbfa1ab3d9b03c71e5f111L9-R9))

@Lukecsharpwalker Lukecsharpwalker merged commit c31fb67 into main May 9, 2025
1 check 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.

2 participants