Skip to content

Conversation

@berezovskyi
Copy link
Member

@berezovskyi berezovskyi commented Jan 18, 2025

I spent 3 hours updating Angular 10 to 11 yesterday and the migration is not fully complete. Mind you, the current version of Angular is 19 and the recommendation is to upgrade only one major version at a time.

Now I spent just 2 hours to write a complete delegated dialog implementation using HTMX instead of making AJAX requests and using Angular to dynamically render results.

Instead, HTMX is a hypermedia framework that is declaratively configured to make HTTP requests and place responses into the HTML DOM. OSLC, being an LDP REST API built with hypermedia principles at heart is perfectly aligned with HTMX. A lot of code can be removed as a result.

One of the best things is that HTMX does not intend to make breaking change like modern frontend frameworks and be more like jQuery in terms of stability. I think it's a perfect fit for the refimpl that needs to reduce the maintenance burden.

Screen.Recording.2025-01-18.at.14.23.29.mov

Comment on lines +22 to +34
<aside>
<nav>
<ul>
<c:forEach var="requirement" items="${resources}">
<li>
<a href="${requirement.about}"
onclick="sendOslcSelectionPostMessage(this, event)"
>${requirement.title}</a>
</li>
</c:forEach>
</ul>
</nav>
</aside>
Copy link
Member Author

Choose a reason for hiding this comment

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

this tiny bit of HTML is what gets rendered every time HTMX makes a search request and it dynamically replaces the contents of the #search-results div with this content returned by the server. Simple and easy.

@github-actions github-actions bot force-pushed the b-htmx branch 2 times, most recently from 7f598be to b3d8e02 Compare January 23, 2025 07:41
@github-actions github-actions bot force-pushed the b-htmx branch 2 times, most recently from 513467a to d3a4031 Compare February 22, 2025 07:41
@github-actions github-actions bot force-pushed the b-htmx branch 2 times, most recently from b25d924 to 4cb0c01 Compare March 5, 2025 07:42
@github-actions github-actions bot force-pushed the b-htmx branch 2 times, most recently from ab8d340 to b8d6411 Compare April 15, 2025 07:43
@github-actions github-actions bot force-pushed the b-htmx branch 3 times, most recently from 72e2710 to 707ebc9 Compare May 16, 2025 07:42
@github-actions github-actions bot force-pushed the b-htmx branch 2 times, most recently from 254d884 to fc40afc Compare June 28, 2025 07:42
@github-actions github-actions bot force-pushed the b-htmx branch 2 times, most recently from 024f893 to 74ba99c Compare July 6, 2025 07:42
@github-actions github-actions bot force-pushed the b-htmx branch 2 times, most recently from 66bcc5a to b610c33 Compare July 13, 2025 07:44
@github-actions github-actions bot force-pushed the b-htmx branch 2 times, most recently from b91907a to d1c1216 Compare July 20, 2025 07:44
@github-actions github-actions bot force-pushed the b-htmx branch 3 times, most recently from 3485858 to 44a1d94 Compare August 10, 2025 07:43
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.

1 participant