Project

General

Profile

Actions

Bug #34312

open

mgr/dashboard: Style guide for frontend/Angular coding conventions

Added by Patrick Seidensal over 5 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Let's start the discussion about coding conventions as it seems we don't have at least the following topic covered yet or no clear coding conventions at all. Please feel free to add topics to be discussed here as well as your opinion on the topic mentioned below.

I have noticed that the models seems to be everywhere in the code (which might make sense, but I don't know if it makes sense). There's a central shared location for models and there are models in module and component directories. The models have very different names. Some indicate that they are models by having a `.model.` string in their name, others don't. This together makes it hard to find particular models or even get a list of available/existing models to be reviewed or used.

I personally feel that, if it makes sense to have models basically everywhere, we should at least stick to a naming convention so that they can easily be found. `.model.` feels natural to me as components and services follow this convention, too. What are your thoughts about that and other topics?


Related issues 3 (1 open2 closed)

Related to Dashboard - Feature #27218: mgr/dashboard: Style guide to give a the UI an overall look and feelResolvedIshan Rai

Actions
Related to Dashboard - Feature #34530: mgr/dashboard: CdSubmitButton should be disabled if the form was not modifiedClosed

Actions
Related to Dashboard - Cleanup #35683: mgr/dashboard: Refactoring of Modal DialogsNew

Actions
Actions

Also available in: Atom PDF