Home
Software
Writings
Day 24: dialog refactoring
in: Diary of a solo dev building a web app
Jul 02, 2022
💡
This is a dev diary of implementing Filerion, a web-based file manager for online storage (Dropbox, OneDrive, Google Drive, s3 and more).
So far I’ve created 8 dialogs. They are very similar so I was making new ones by copy & paste an existing dialog.
Today I’ve refactored them by creating a base dialog class and converted all the dialogs to use it.
The amount of code reused is not big but it makes it easier to change the style of dialogs.
I’ve changed the style of the dialogs a bit by adding gray background to the bottom area and adding close button.
The new look:
Written on Jul 2 2022.
home
Found a mistake, have a comment? Let me know.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you: