1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-27 16:00:59 +01:00
phorge-phorge/src/view/phui
epriestley 67482fd19d Continue modernizing application access to user preferences
Summary:
Ref T4103. This is just incremental cleanup:

  - Add "internal" settings, which aren't editable via the UI. They can still do validation and run through the normal pathway. Move a couple settings to use this.
  - Remove `getPreference()` on `PhabricatorUser`, which was a sort of prototype version of `getUserSetting()`.
  - Make `getUserSetting()` validate setting values before returning them, to improve robustness if we change allowable values later.
  - Add a user setting cache, since reading user settings was getting fairly expensive on Calendar.
  - Improve performance of setting validation for timezone setting (don't require building/computing all timezone offsets).
  - Since we have the cache anyway, make the timezone override a little more general in its approach.
  - Move editor stuff to use `getUserSetting()`.

Test Plan:
  - Changed search scopes.
  - Reconciled local and server timezone settings by ignoring and changing timezones.
  - Changed date/time settings, browsed Calendar, queried date ranges.
  - Verified editor links generate properly in Diffusion.
  - Browsed around with time/date settings looking at timestamps.
  - Grepped for `getPreference()`, nuked all the ones coming off `$user` or `$viewer` that I could find.
  - Changed accessiblity to high-contrast colors.
  - Ran all unit tests.
  - Grepped for removed constants.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T4103

Differential Revision: https://secure.phabricator.com/D16015
2016-06-04 14:37:56 -07:00
..
calendar Continue modernizing application access to user preferences 2016-06-04 14:37:56 -07:00
PHUI.php Remove unused call to phui-text 2016-01-29 12:41:04 -08:00
PHUIActionPanelView.php Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
PHUIBadgeBoxView.php PHUIBadgeMiniView 2015-07-10 10:49:28 -07:00
PHUIBadgeMiniView.php Converting badge quality property from color to an integer representation for later sorting purposes 2016-03-30 17:28:34 -07:00
PHUIBadgeView.php Links on badge card should be accessible 2016-04-15 07:55:31 -07:00
PHUIBigInfoView.php Convert all calls to 'IconFont' to just 'Icon' 2016-01-27 20:59:27 -08:00
PHUIBoxView.php Add basic grey and blue styles for PHUIBoxView 2016-01-21 07:14:39 -08:00
PHUIButtonBarView.php [Redesign] Update Inline Comment UI 2015-06-29 14:42:29 -07:00
PHUIButtonView.php Convert all calls to 'IconFont' to just 'Icon' 2016-01-27 20:59:27 -08:00
PHUICrumbsView.php Add fullscreen mode to Workboards 2016-02-10 15:31:02 +00:00
PHUICrumbView.php Put boundary spaces around crumb names so double-clicking doesn't flip out 2016-02-12 11:13:38 -08:00
PHUIDocumentSummaryView.php Add a Read More link to PHUIDocumentSummaryView 2015-12-19 12:49:23 -08:00
PHUIDocumentView.php [Redesign] Move basefont to Lato, remove Source Sans Pro 2015-06-13 20:32:45 +01:00
PHUIDocumentViewPro.php Convert all calls to 'IconFont' to just 'Icon' 2016-01-27 20:59:27 -08:00
PHUIFeedStoryView.php Give application actors in feed reasonable icons 2016-04-20 14:38:55 -07:00
PHUIHeaderView.php Alternate fix for Firefox triple click selection 2016-04-29 16:59:43 -07:00
PHUIHeadThingView.php Update Diffusion UI 2016-03-17 12:05:14 -07:00
PHUIHovercardView.php Fix header tag on Hovercards 2016-03-05 15:25:06 +00:00
PHUIIconCircleView.php Convert all calls to 'IconFont' to just 'Icon' 2016-01-27 20:59:27 -08:00
PHUIIconView.php Update to FontAwesome 4.6.0 2016-04-11 11:34:59 -07:00
PHUIImageMaskView.php Fix AphrontTagView visibility 2015-01-14 06:54:39 +11:00
PHUIInfoPanelView.php Minor linter fixes 2014-12-30 02:48:03 -08:00
PHUIListItemView.php Convert all calls to 'IconFont' to just 'Icon' 2016-01-27 20:59:27 -08:00
PHUIListView.php Improve handle loading semantics for tokenizers 2015-04-02 13:42:01 -07:00
PHUIMainMenuView.php Begin modularizing main menu items 2016-01-04 06:57:09 -08:00
PHUIObjectBoxView.php Solidify PHUITwoColumnView as a page layout 2016-03-01 07:23:08 -08:00
PHUIObjectItemListView.php Update Phortune for two column, spruce up UI 2016-03-23 11:05:50 -07:00
PHUIObjectItemView.php Add a coverImage field to PHUIObjectItemView 2016-02-06 12:04:50 -08:00
PHUIPagerView.php Improve rendering of commit branching graph 2016-01-08 11:52:07 -08:00
PHUIPinboardItemView.php Convert all calls to 'IconFont' to just 'Icon' 2016-01-27 20:59:27 -08:00
PHUIPinboardView.php [Redesign] Center Pinboard Items 2015-05-31 14:28:16 -07:00
PHUIPropertyGroupView.php PHUIPropertyListView 2013-10-11 07:53:56 -07:00
PHUIPropertyListView.php Disambiguate isEmpty() 2016-01-31 15:20:04 -08:00
PHUIRemarkupPreviewPanel.php Use PHUIRemarkupPreviewView in Phame 2015-11-23 10:36:02 -08:00
PHUISegmentBarSegmentView.php Add a basic progress bar for milestones 2016-02-08 18:50:22 -08:00
PHUISegmentBarView.php First cut of progress bars (PHUISegmentBarView) 2016-02-08 15:28:09 -08:00
PHUIStatusItemView.php Update Calendar for PHUITwoColumnView 2016-03-02 18:12:42 -08:00
PHUIStatusListView.php Fix AphrontTagView visibility 2015-01-14 06:54:39 +11:00
PHUITagView.php Move PhabricatorHovercard to PHUIHovercard 2016-02-03 16:26:30 +00:00
PHUITimelineEventView.php Changing criteria for showing badges in object timeline view 2016-03-30 11:35:21 -07:00
PHUITimelineView.php Changing criteria for showing badges in object timeline view 2016-03-30 11:35:21 -07:00
PHUITwoColumnView.php Update Settings/Config UI 2016-04-08 22:00:38 +00:00
PHUIWorkboardView.php Only prevent drag-scroll in the Y direction on workboards 2016-02-08 10:05:39 -08:00
PHUIWorkpanelView.php Expand scope of addActionItem in PHUIHeaderView 2016-03-04 18:35:05 -08:00