The fish farmers' shared phone: a long Angular form that must not lose input or send twice. 15 levels, played right in the browser with nothing to install.
What the levels ask
Pokdakan Mina Rukun, the lele farmers' group at the end of Kepundung Lane, orders fry through Pesan Benih, the Angular app Mr. Restu built, on one cheap phone kept in the hut by the ponds. Today Mr. Tono orders 1000 fry. Fill ▢ ikat on the name field so what Mr. Tono types lands in form.nama and reaches the group's server.
The name field must be filled. Mrs. Sari likes to tap the name field, move straight on to the fry field, type 800, try Kirim, and only then come back for her name. Fill ▢ syarat so the red line shows once she has passed the empty name field by, and goes the moment her name is in. Before she touches anything, the screen is clean.
A pond's name must not match another member's pond, and the list of names lives on the group's server, so namaBebas asks the server through HttpClient. The hut has one bar of signal. Mr. Bayu types Kolam Wetan (taken), moves on, then changes it to Kolam Bayu. Fill ▢ kapan so each name is checked once, and the phone says Kolam Wetan is taken as soon as Mr. Bayu moves on.
The signal is slow: a pond name check takes six seconds. Mrs. Ijah tries Kirim before filling anything in, then types Kolam Lor (taken) and 1500 fry, and taps Kirim straight away while the check runs. After the phone says the name is taken, she changes it to Kolam Ijah. Fill ▢ jaga in the Kirim button's [disabled] so no empty order and no taken pond name reaches the server.
Mrs. Lastri has two tarpaulin ponds, and each is ordered with its own number of fry. The order form now has an array, kolam, and the + Kolam button adds a row. Fill ▢ tambah in tambah() so the second row has controls of its own, and the server gets both of Mrs. Lastri's ponds.
So nobody has to scroll, Mr. Restu shows the newest pond on top, and each row has a Hapus button that slides it away. Mr. Karim fills in Kolam Bambu, Kolam Sumur, then by mistake Kolam Sumur again with 500, and removes that last one. Fill ▢ lacak and ▢ hapus so the pond that leaves the form and the row that slides off the screen are both the row he tapped.
Each member may order at most 3000 fry, summed over all their ponds. Mr. Harun fills in Kolam Barat 2000 and Kolam Timur 1500, tries Kirim, then brings Kolam Timur down to 1000. The function in total.ts sums the fry of every row. Fill ▢ aturan on the kolam array so the quota line shows and Kirim is off while the sum is over 3000.
A pond is drained first, and fry may go in no sooner than 3 days later. kurasDulu in tanggal.ts reads the draining date and the stocking date. Mrs. Yanti picks stocking on the 4th (draining is on the 3rd), changes it to the 7th, moves draining to the 6th, tries Kirim, then picks stocking on the 9th. Fill ▢ pasang in the constructor so every time stocking is too soon, the phone says so and Kirim is off.
A pellet order is now typed as Pesanan (nama: string, pelet: number), and after each order the form is reset() for the next member. Mr. Tono orders 2 sacks, then Mrs. Ijah orders the starting amount, 1 sack. Fill ▢ buat so ng build accepts the code and Mrs. Ijah's order arrives with 1 sack. Today the app is built first with the real ng build (Angular CLI 22.2.3, TypeScript 6.0.3).
Bagas made pilih-tanggal, a row of day buttons easier to tap than the phone's calendar. Grandma Marni taps Rab 4, then fills in 600 fry. Fill ▢ pakai in the template and ▢ sedia in Bagas's component so the day she tapped reaches form.tebar, the strip counts as touched once she moves on, and her order goes.
The signal comes and goes. Mrs. Ijah taps Kirim, and since no answer comes, taps it again. Then Mr. Harun orders while the signal is gone, sees Belum terkirim, and tries again when the signal is back. Fill ▢ mulai and ▢ akhir so every tap that gets through makes exactly one order, and Kirim comes back on after a failed send.
The group's server only answers requests that carry this phone's token (Authorization: Bearer ...). Until now every service wrote the token itself. Mr. Restu moves it into one interceptor, pakaiToken, and takes it out of the services. Bagas registers Kolam Belakang with 1000 fry. Fill ▢ daftar in app.config.ts and ▢ teruskan in token.ts so Bagas's name check and order arrive with the token.