Commit 394e46b
committed
refactor: replace deep relative imports with application aliases
Rewrite 4,107 deep module references in app code and stories while keeping
all 3,454 existing sibling and single-parent references unchanged. Enforce
the ../../** restriction in Oxlint, including its TypeScript override.
Keep the root-level app-supportedversions.json as the shared source of
truth. Add app/supportedversions.ts as a one-level re-export and use its
alias in the consumer and both Jest mocks. Keep scripts/pinned-shortnames
in place for the emoji generator; app/pinned-shortnames.ts re-exports that
same module for the emoji data test. Neither root file is copied or moved.
Validation: format/lint/typecheck, full Jest suite, deliberate restricted
import rejection, iOS and Android Metro release bundles, AST preservation
audit, and CI test-map validation. No deep relative references remain.1 parent 01aceac commit 394e46b
905 files changed
Lines changed: 4141 additions & 4117 deletions
File tree
- app
- containers
- ActionSheet
- ActionSheetContentWithInputAndSubmit
- AudioPlayer
- Avatar
- BackgroundContainer
- Button
- Chip
- CollapsibleText
- CustomFields
- CustomIcon
- DirectoryItem
- DotsLoader
- EmojiPicker
- Header
- components
- HeaderButton
- HeaderContainer
- HeaderTitle
- ImageViewer
- InAppNotification
- IncomingCallNotification
- List
- Loading
- LoginServices
- __tests__
- MediaCallHeader
- components
- MessageActions
- MessageComposer
- components
- Attachments
- Autocomplete
- Buttons
- Quotes
- RecordAudio
- Toolbar
- Unfocused
- helpers
- hooks
- NativeButton
- NewMediaCall
- Passcode
- Base
- PasswordPolicies
- components
- Radio
- ReactionsList
- RoomHeader
- RoomItem
- RoomTypeIcon
- SearchBox
- SelectedUsers
- ServerItem
- SwipeableDeleteItem
- Status
- SupportedVersions
- Switch
- TabView
- TextInput
- TwoFactor
- UIKit
- MultiSelect
- VideoConferenceBlock
- components
- UnreadBadge
- markdown
- components
- code
- emoji
- inline
- list
- mentions
- message
- __tests__
- components
- Attachments
- Image
- Content
- Layout
- Message
- RightIcons
- Touchable
- __tests__
- stories
- RightIcons
- __tests__
- hooks
- __tests__
- stores
- __tests__
- definitions
- redux
- rest/v1
- ee/omnichannel
- actions
- containers/OmnichannelHeader
- lib
- subscriptions
- reducers
- sagas
- selectors
- views
- lib
- constants/emojis
- database
- model/servers
- services
- encryption
- helpers
- helpers
- hooks
- useNewMediaCall
- usePreviewFormatText
- useShortnameToUnicode
- useVideoConf
- methods
- helpers
- fileUpload
- log
- sendFileMessage
- subscriptions
- __tests__
- uploadAvatar
- notifications
- videoConf
- services
- __tests__
- twoFactor
- voip
- store
- __tests__
- testUtils
- sagas/__tests__
- stacks/MasterDetailStack
- views
- AccessibilityAndAppearanceView
- components
- AddExistingChannelView
- AdminPanelView
- AutoTranslateView
- CallView
- components
- Dialpad
- CannedResponsesListView
- DepartmentFilter
- ChangeAvatarView
- ChangePasswordView
- CreateChannelView
- RoomSettings
- CreateDiscussionView
- utils
- DefaultBrowserView
- DirectoryView
- hooks
- DiscussionsView
- E2EEToggleRoomView
- E2EEncryptionSecurityView
- ForwardMessageView
- InviteUsersEditView
- InviteUsersView
- JitsiMeetView
- LanguageView
- LoginView
- MediaAutoDownloadView
- MessagesView
- NewMessageView
- NewServerView
- components
- CertificatePicker
- ServerInput
- ServersHistoryActionSheetContent
- ServersHistoryItem
- hooks
- methods
- utils
- NotificationPreferencesView
- ProfileView
- components
- ConfirmEmailChangeActionSheetContent
- DeleteAccountActionSheetContent
- methods
- PushTroubleshootView
- components
- ReadReceiptView
- RegisterView
- ReportUserView
- RoomActionsView
- components
- RoomInfoEditView
- hooks
- RoomInfoView
- components
- RoomMembersView
- components
- RoomView
- List
- components
- hooks
- LoadMore
- components
- services
- RoomsListView
- components
- contexts
- hooks
- SearchMessagesView
- SelectedUsersView
- SettingsView
- SidebarView
- components
- methods
- StatusView
- ClearAfterPicker
- ThreadMessagesView
- UserNotificationPreferencesView
- UserPreferencesView
- WorkspaceView
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
60 | 72 | | |
61 | 73 | | |
62 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments