Questions tagged [ui]

User Interface _ the application interface designated for the end users

Filter by
Sorted by
Tagged with
1
vote
3answers
293 views

How do you achieve encapsulation while "separating view and business logic"?

I've been trying to get a better understanding of OOP (I'm not the biggest fan of it, but I still want to understand it). One of the core principles of OOP is encapsulation - you're supposed to ...
0
votes
1answer
139 views

Wrapping the UI framework

I want to write an application where I would delegate certain functionalities to 3rd party libraries. To make sure the code remains modular, I want to put these libraries behind an interface so I can ...
3
votes
0answers
69 views

Is there such a thing as "completeness" theory for UI layout managers? [closed]

Given the often wide variety of layout managers available on any particular UI platform, I was wondering if there is something akin to a "theory of layout completeness" that can be used to ...
3
votes
2answers
120 views

Getting the UI to know about Business Rules for Form Controls

Situation: VB.NET WinForms application, using the WinForms as a presentation layer project. Another class library project containing the business layer, in the form of CQS and Service classes, plus a ...
-2
votes
1answer
56 views

Micro Frontend architecture and different teams

I often get the argument that, if only a single team is working on the UI development, then the UI should not be developed as a set of Micro Frontends, with each one representing a subdomain. I would ...
0
votes
0answers
37 views

Desktop UI builders state of the art studies or papers?

I am quite surprised that searching for advances in the last 30 years of UI builders for desktop applications did not showed interesting results in Google Scholar: https://scholar.google.com/scholar?...
0
votes
1answer
67 views

implement a dynamic frontend UI based on roles

We want to build a new frontend for our existing app with elements shown or hidden based on a users role. Are there any common patterns for this? I see two ways of doing this. The backend sends the ...
-1
votes
1answer
87 views

How to avoid context objects and designing "UI states"

Note: I'm using Dear IMGUI, OpenGL and C++. I have a UI, it has two "modes" one where it records and displays images and information about a recording device (IE camera) and another where it ...
0
votes
0answers
17 views

App Design - Engagement Type selected at beginning, or Radio buttons mid-request?

I am building an app wherein a user will be requesting one of three engagement types: Appointment (no SLA) Consult (2hr SLA) Emergency (10mins SLA) We are considering two different scenarios for ...
-1
votes
1answer
123 views

How to handle pagination in a stateless application having multiple components involved for the data?

This problem statement is around one UI component, 3 service components. The current design of the application is like: UI makes request to Service-A to get data Service-A first makes a call to ...
2
votes
1answer
81 views

Pattern for creating an instance of a class from a UI form

The following is a contrived example of a potential code smell that I've repeatedly encountered when implementing a GUI with which instances of a class created by letting the user fill out a form. The ...
-2
votes
1answer
38 views

Calculating position of menu options with variable sizes

Not entirely sure if this is the most appropriate community for this but... I'm looking for solutions to calculate positions for menu options when the amount of options vary and when each options ...
-3
votes
2answers
750 views

Should I use Flask w/ Javascript OR a Javascript UI that calls a Flask / Connexion API?

I recently wrote a data management tool in Python & SQLAlchemy. Now, I need to put a web UI on it. While I want to start small, there is some need for interactivity, like drag and drop in tables, ...
-1
votes
1answer
88 views

Good representation for list of items that can be grouped together

I am building the frontend of a web app in JavaScript that manages list of past events. It basically has the following requirements: Events are displayed in a vertical list. Events can be moved to ...
6
votes
2answers
433 views

Why don't web browsers know the physical dimensions of a display?

CSS is a syntax for specifying the appearance of text and other web content, sizes and lengths are defined in pixels, however pixels have different sizes in different devices, this is the most notable ...
-1
votes
1answer
885 views

Recommend a way to handle multiple UI frameworks in a pattern library

We are setting up a pattern library. It's use is on the one hand to document and display our UI elements in a web view. On the other hand, it should also be the place where components are built. The ...
0
votes
1answer
90 views

Structuring code to support console output and WPF views

Premise: This is for learning purpose. I'm trying to adapt my Console Application code to be served through a WPF Application GUI that I would like to create. One problem is struggling me. Actually ...
0
votes
2answers
162 views

How is fast-scroll simulated?

I've noticed on web and mobile apps, when scrolling down to the bottom of a list with thousands of entries it reaches the bottom instantly but appears to be scrolling through every entry. How is ...
1
vote
2answers
2k views

Why and how are Server-side Web MVC and client-side/desktop MVC not the same?

In MVC, does the view component deliver a new view to the user directly or indirectly via the controller component? says The first thing to realize is that Server-side Web MVC (e.g. ASP.NET MVC &...
-1
votes
1answer
670 views

building a frontend for a microservice backend: architectures? (spring boot stack)

to summarize a bit my current situation: I am building a backend based on microservices using spring boot. These are aggregated behind an api-gateway. My intention is to consume these api's from both ...
10
votes
5answers
676 views

Presentation Layer Accessing Business Logic

I've been reading a lot of material lately about DDD (business entity objects) and other common patterns in n-tiered(layered) architecture. One thing I have issue with is, most articles, blogs, ...
2
votes
1answer
86 views

Design of dropdown lists to handle optional selection

Consider the following example in a CRUD application. A user can select their favourite food from a dropdown list ("Burgers", "Pies", "Chips"). This is an optional field i.e. not mandatory. Thus a ...
5
votes
2answers
434 views

balance between UI responsiveness and avoiding race conditions

To keep scope small I will talk about UI race conditions initiated by the same user in the same app sessions. The question is general and not specific to mobile, web or desktop UI. The issue Modern ...
1
vote
4answers
3k views

C# How to correctly work with ProgressBar? Architecture look

I am wondering about the correct architecture to work with a progress bar in C#. But maybe it applies not only to C#, because I need an architectural look at this. I'll explain my question with an ...
0
votes
0answers
43 views

Do I need provide translation for an UI library

I have a library for a lockscreen in Android, that includes diferent dilogs for fingerprints, texts and all that stuff. My question is: What the best practice to provide localization. Should I have ...
0
votes
2answers
763 views

Is testing UI components considered to be unit testing? [closed]

My UI components are tightly coupled with my UI framework (i.e. Vue + Vuetify). The framework provides some testing utilities that allow you to fake the rendering of these components without the need ...
0
votes
1answer
254 views

Designing a WPF / MVVM architecture where view behavior changes in different states

As part of my bachelors thesis, I'm trying to develop something akin to a painting program. That means, I have a toolset, be it selection, drawing, highlighting, etc. I'll have a canvas that displays ...
1
vote
1answer
258 views

Are automated UI tests necessary? What should be tested?

Our small team writes desktop apps using WPF + Prism. Most of the team members are not so familiar with professional software developing process. I'm trying to adopt some agile techniques to make the ...
1
vote
0answers
166 views

Save data from multiple Qt components scattered around multiple QML files

I would like to save the current "value" property of several components (e.g. a Slider) as a configuration profile when the user clicks on the Save button in my application. However, the Save button ...
4
votes
1answer
214 views

Self describing data with UI

I have a use case where my team owns a web UI to aggregate data from 10+ service teams and present it to the customer in order to collect more information . This data (which is in json format) is very ...
7
votes
2answers
1k views

TDD for Graphics application

I have googled and read few articles about the TDD for UI. I am not very much clear about how to start the implementation of the Graphics Application using Test Driven Development or how to write unit ...
3
votes
1answer
2k views

can I send message to the actor in sequence diagram

Is it correct for the user(actor) in sequence diagram to receive a message from object while<< UI>> is exist in the diagram for example user will request to edit some data ..so the request will ...
1
vote
0answers
64 views

Separate UI applications vs single with logic for showing/hiding functionality

Currently my company has a single internal application that our support agents use. It only supports one product at this time. Tech stack is angular on the front end and spring micro services for ...
0
votes
1answer
62 views

Web designer equivalent in Android and iOS worlds?

When web came, for years designers would create stunning designs in Photoshop, and developers would try to translate those designs to HTML/CSS/JS. This had many problems with itself. Lack of ...
1
vote
3answers
109 views

If either html+css or an image can achieve my desired decoration, which one should I prefer to use?

For example, to create flow indicator like: Step 1 > Step 2 > Step 3 I can either: 1.Use html+css .concave{ border-left:1em solid transparent; border-top:1em solid orange; border-bottom:...
0
votes
1answer
214 views

UI Architecture

I'm confused in architecture solution for boolean expression tree. Business logic has algo to parse config and make a tree from such expressions. (a && b || c) && d || (e && f)...
1
vote
1answer
806 views

Windows Service with authentication, some UI required

I have to build a Windows Service which requires OAuth2 authentication. The service is intended (like all services should be) to run unattended (no user need to be logged in in Windows). The problem ...
2
votes
2answers
438 views

Get value from UI element or from variable

I had a debate with a friend and I'm looking for a way to resolve it and decide which approach is better for maintenance and whether there's some consensus about a best practice regarding it: If an ...
1
vote
1answer
288 views

how should the MVP pattern handle views created at runtime?

how should the MVP pattern handle views created at runtime ? for example There is a mainView (that has a model and presenter) that needs to display a list, each item in the list is represented by it'...
4
votes
2answers
744 views

End-to-end and UI testing in microservice-architecture?

We're in a process of moving from a huge old monolithic architecture towards microservice one. UI-centric Product Our product (which is mostly a large single-page app) is quite UI-centric. Thus the ...
0
votes
1answer
39 views

Real time update as user entering information like what Google doc do or use a save button

I am making a design decision to real time hit API to save all the fields in a form when user make an change even if hes not finished yet. Or, use a save button like most app does. Any pros and cons ...
0
votes
3answers
215 views

easy way of preventing multiple users of working on the same task

Our client has a software, where tickets come in. Multiple employees are responsible for answering these tickets (via phone), in a short amount of time (call back within X minutes). What would be the ...
2
votes
2answers
261 views

Search page design with logical operators

I have a page that displays a set of records. The page has filter section to search records. currently the logical operator AND is applied between all the filter conditions. Now the requirement for ...
2
votes
1answer
1k views

How to manage multiple views in a single page JavaScript Application without a 3rd party library [closed]

I am building a JavaScript application that makes AJAX requests to a PHP API Back-end to load JSON data for different views. The app UI consist mainly of a left sidebar menu which has items loaded ...
5
votes
4answers
4k views

Should I put UI and logic in separate classes?

I currently work on a hobby project which I use to learn more about Android/Java programming and programming in general. Recently, I decided to integrate jUnit into the project. Just getting it in ...
1
vote
1answer
33 views

NPM downloadable package with only high level brand styles [closed]

I've been tasked to create an NPM package that our Frontend teams can make use of that has styling for the companys UI elements: Layout Grid unit proportions, gutters and spacing. Typography ...
1
vote
0answers
50 views

Pros and cons of asserting on the DB level in selenium tests

Consider a Selenium test that does some steps on the UI (e.g. fill a field and then click a save button), and afterwards checks with a DB query if the data entered in the new field was really saved ...
-2
votes
1answer
78 views

How to handle a complete UI redesign of a web product? [closed]

Sorry for the codeless post, but I am wondering how to handle a complete UI redesign for a big web product? Maybe somebody have experience and could actually determine the steps on how you would do ...
3
votes
0answers
128 views

Interface Methods vs Data Objects

Building a UI editor for Android and basically there are interfaces such as this: interface Item { fun decorate() fun translate(x: Int, y: Int) fun rotate(rotation: Float) fun scale(...
1
vote
1answer
344 views

Knowledge base UI pattern

In our database backed (C# WPF / Entity Framework) application, we want to build a system to enter, store, display and search arbitrary content linked to our main entity. The challenge here is to find ...