pages-core
pages-core copied to clipboard
Enhance build logs UI
User Story
It would be nice if the build logs ui automatically appended logs as they are available without "refreshing" the section of the page and stopped appending when the build is complete.
Acceptance Criteria
- [ ] Build logs automatically append when processing.
- [ ] Change made live via <TODO>.
After evaluating, edit this part:
Level of effort - medium
Implementation outline (if higher than "low" effort):
API
- [ ] Return the build with the build logs
- [ ] Paginate build logs by record
- [ ] Return appropriate pagination metadata with the build logs
The above will provide the frontend with enough information to determine when to request more build logs and which logs to request.
Frontend
- [ ] Update build logs resolver to handle response format that includes build and pagination metadata
- [ ] Update build logs action to fetch build logs correctly with new build log pagination strategy
- [ ] Remove existing "refresh" and "auto refresh" affordances from build logs component
- [ ] Add fetching of paginated build logs until the the build is complete, appending the logs without "refreshing" the UI.
- [ ] Add ability for user (or default) to follow the buildlogs by keeping the UI element scrolled to the bottom.