Week 3 #3

Merged
lubba64 merged 13 commits from week2-additional into main 2026-06-24 16:36:44 +00:00
Owner

Finishing some extra features before week 3 content so there's more stuff to test in the app.

Finishing some extra features before week 3 content so there's more stuff to test in the app.
lubba64 self-assigned this 2026-06-20 01:19:30 +00:00
Author
Owner

working on app locking up. due to the way egui works, we can't really put the long sync task off to another thread (as far as I know). the main reason the thread locks is because the server takes quite a while to give its response in some cases. This makes sense because one of the routes does OCR, e.t.c. I'm going to figure out how to return early and send the task to a different async task on the server.

working on app locking up. due to the way egui works, we can't really put the long sync task off to another thread (as far as I know). the main reason the thread locks is because the server takes quite a while to give its response in some cases. This makes sense because one of the routes does OCR, e.t.c. I'm going to figure out how to return early and send the task to a different async task on the server.
Author
Owner

this is going to create some problems when dealing with feedback for loading/errors but my hand has been forced, plus we can figure it out.

this is going to create some problems when dealing with feedback for loading/errors but my hand has been forced, plus we can figure it out.
fix: Fix the app freezing due to long async process times
Some checks failed
CI / compliance (pull_request) Failing after 10m11s
1808c9f5d2
Author
Owner

that appears to have solved the issue...

that appears to have solved the issue...
Author
Owner

going to focus on feedback for status plus errors now.

going to focus on feedback for status plus errors now.
Author
Owner

I'm feeling tired, I'll pick up again in the morning.

I'm feeling tired, I'll pick up again in the morning.
Author
Owner

back at it, I have a bad habit of getting distracted.

back at it, I have a bad habit of getting distracted.
Author
Owner

lets do some features and take care of status later

lets do some features and take care of status later
fix: Fix duplicate start dates replace with actual end date
Some checks failed
CI / compliance (pull_request) Failing after 10m14s
f0ff4fa5ff
fix: Fix issue with date format, change default dates for manual picker to be Local::now()
Some checks failed
CI / compliance (pull_request) Failing after 10m44s
b2a9ff9850
refactor: Make crate for common err logic, refactor. add schema for labels
Some checks failed
CI / compliance (pull_request) Failing after 10m27s
377b484d6a
feat: Label routes
Some checks failed
CI / compliance (pull_request) Failing after 10m26s
0daf4fbaca
feat: routes/tables for task labels
Some checks failed
CI / compliance (pull_request) Has been cancelled
40f1c5bb3d
refactor: Move some scripts around, add missing scripts back
Some checks failed
CI / compliance (pull_request) Failing after 10m42s
f55374a1f7
Author
Owner

I think composing objects on the server is probably better, but eh, I can always refactor later. I didn't make all those routes for nothing (we need them anyways for editing etc)

I think composing objects on the server is *probably* better, but eh, I can always refactor later. I didn't make all those routes for nothing (we need them anyways for editing etc)
Author
Owner

composing objects on the server is going to be easier I suppose since the client side logic for resolving promises is terrible.

composing objects on the server is going to be easier I suppose since the client side logic for resolving promises is terrible.
lubba64 changed title from Week 2 Cleanup to Week 2 Additional Features 2026-06-21 01:10:57 +00:00
chore: Save progress on labels server infrastructure
Some checks failed
CI / compliance (pull_request) Failing after 10m25s
c600ed4281
fix: Fix refreshing being borked
Some checks failed
CI / compliance (pull_request) Failing after 10m15s
8823c8823c
lubba64 changed title from Week 2 Additional Features to Week 3 2026-06-21 02:24:42 +00:00
feat: basic label adding
Some checks failed
CI / compliance (pull_request) Failing after 10m16s
f5b014b125
chore: Save while some bs happens
Some checks failed
CI / compliance (pull_request) Failing after 10m11s
33bd51e1ac
Author
Owner

another 4 hours and the feature is mostly complete.... however, the window is now failing to create between the second to last commit and the current one, going to get some sleep and tackle this in the morning. I will likely move forward with a version for the think aloud tests that does not have the labels so I can make sure my time is used effectively.

another 4 hours and the feature is mostly complete.... however, the window is now failing to create between the second to last commit and the current one, going to get some sleep and tackle this in the morning. I will likely move forward with a version for the think aloud tests that does not have the labels so I can make sure my time is used effectively.
chore: Save bs
Some checks failed
CI / compliance (pull_request) Failing after 11m21s
895fe15705
Author
Owner

I'm going to fix the bug, merge it and make a new pr

I'm going to fix the bug, merge it and make a new pr
Author
Owner

apparently egui hated my attempt to be DRY with this blob, couldn't tell you why that is.

        let cloned_refresh = self.last_refresh.clone();
        let mut fetch = || {
            self.get_tasks = Some(get_json("task/getallfull".to_string()));
            self.get_labels = Some(get_json::<Label>("/label/getall".to_string()));
            match cloned_refresh.lock() {
                Ok(mut instant) => *instant = Some(Instant::now()),
                Err(_err) => {}
            }
        };

        match self.last_refresh.lock() {
            Ok(instant) => match *instant {
                Some(instant) => {
                    if instant.elapsed() > Duration::from_secs(1) {
                        fetch()
                    }
                }
                None => fetch(),
            },
            Err(_err) => {}
apparently `egui` hated my attempt to be DRY with this blob, couldn't tell you why that is. ```rust let cloned_refresh = self.last_refresh.clone(); let mut fetch = || { self.get_tasks = Some(get_json("task/getallfull".to_string())); self.get_labels = Some(get_json::<Label>("/label/getall".to_string())); match cloned_refresh.lock() { Ok(mut instant) => *instant = Some(Instant::now()), Err(_err) => {} } }; match self.last_refresh.lock() { Ok(instant) => match *instant { Some(instant) => { if instant.elapsed() > Duration::from_secs(1) { fetch() } } None => fetch(), }, Err(_err) => {} ```
fix: Fix window not creating due to some unknown bs
Some checks failed
CI / compliance (pull_request) Has been cancelled
a64a2a7935
Sign in to join this conversation.
No description provided.